Searcharxiv⌕ Search

arXiv subjects

Xiao Cheng

Publications and source records attributed to Xiao Cheng.

26 records · Page 2Linked to original sources

Tracing Errors, Constructing Fixes: Repository-Level Memory Error Repair via Typestate-Guided Context Retrieval

Memory-related errors in C programming continue to pose significant challenges in software development, primarily due to the complexities of manual memory management inherent in the language. These errors frequently serve as vectors for severe vulnerabilities, while their repair requires extensive knowledge of program logic and C's memory model. Automated Program Repair (APR) has emerged as a critical research area to address these challenges. Traditional APR approaches rely on expert-designed strategies and predefined templates, which are labor-intensive and constrained by the effectiveness of manual specifications. Deep learning techniques offer a promising alternative by automatically extracting repair patterns, but they require substantial training datasets and often lack interpretability. This paper introduces LTFix, a novel approach that harnesses the potential of Large Language Models (LLMs) for automated memory error repair, especially for complex repository-level errors that span multiple functions and files. We address two fundamental challenges in LLM-based memory error repair: a limited understanding of interprocedural memory management patterns and context window limitations for repository-wide analysis. Our approach utilizes a finite typestate automaton to guide the tracking of error-propagation paths and context trace, capturing both spatial (memory states) and temporal (execution history) dimensions of error behavior. This typestate-guided context retrieval strategy provides the LLM with concise yet semantically rich information relevant to erroneous memory management, effectively addressing the token limitation of LLMs.

cs.SE↗

Simulating Vibrationally-Resolved X-ray Photoelectron Spectra of Flexible Molecules: Linear Alkanes C$_{n}$H$_{2n+2}$ ($n$=1-8)

We integrated full core-hole density functional theory with Franck-Condon calculations, considering Duschinsky rotation, to simulate vibrationally-resolved C1s X-ray photoelectron spectra (XPS) of eight linear alkanes, from methane to octane (C$_{n}$H$_{2n+2}$, $n$=1--8). Results align excellently with experimental absolute binding energies and profiles. The spectrum of ethane serves as a ``spectral seed'', with each longer alkane's atom-specific spectrum displaying similar characteristics, albeit with shifts and slight intensity adjustments. Detailed assignments clarify the distinct spectra in short alkanes ($n$=1--4) and their stabilization in long alkanes ($n$=5--8). Carbons are classified as central or distal (C$_1$ and C$_2$), with central carbons contributing nearly identically to the lowest-energy feature A, while distal carbons contribute to the second lowest-energy feature B (both are 0-0 transitions). Increasing molecule size adds more central carbons, enhancing feature A and weakening feature B. Our analysis identifies two dominant Franck-Condon-active vibrations: C$^*$--H stretching ($\sim$3400-3500 cm$^{-1}$) and bending ($\sim$1400-1500 cm$^{-1}$) modes. Structural analysis shows that core ionization minimally affects alkane geometry, less than in ring compounds from previous studies. This work extends our protocol from rigid ring compounds to flexible molecules, contributing to building a high-resolution theoretical XPS library and enhancing the understanding of vibronic coupling.

physics.chem-ph↗

CodeR: Issue Resolving with Multi-Agent and Task Graphs

GitHub issue resolving recently has attracted significant attention from academia and industry. SWE-bench is proposed to measure the performance in resolving issues. In this paper, we propose CodeR, which adopts a multi-agent framework and pre-defined task graphs to Repair & Resolve reported bugs and add new features within code Repository. On SWE-bench lite, CodeR is able to solve 28.33% of issues, when submitting only once for each issue. We examine the performance impact of each design of CodeR and offer insights to advance this research direction.

cs.CL↗

Steady and dynamic magnetic phase transitions in interacting quantum dots arrays coupled with leads

We apply the Hubbard model, non-equilibrium Green's function (NEGF) theory, exact diagonalization (ED) and the hierarchical equations of motion (HEOM) method to investigate abundant magnetic phase transitions in the 1D interacting quantum dots arrays (QDA) sandwiched by non-interaction leads. The spin polarization phase transitions are firstly studied with a mean-field approximation. The many-body calculation of the ED method is then used to verify such transitions. We find with the weak device-leading couplings, the anti-ferromagnetic (AF) state only exists in the uniform odd-numbered QDA or the staggered-hopping QDA systems. With increasing the coupling strength or the bias potentials, there exists the magnetism-to non-magnetism phase transition. With the spin-resolved HEOM method we also investigate the detailed dynamic phase transition process of these lead-QDA-lead systems.

cond-mat.str-el↗

Fonduer: Knowledge Base Construction from Richly Formatted Data

We focus on knowledge base construction (KBC) from richly formatted data. In contrast to KBC from text or tabular data, KBC from richly formatted data aims to extract relations conveyed jointly via textual, structural, tabular, and visual expressions. We introduce Fonduer, a machine-learning-based KBC system for richly formatted data. Fonduer presents a new data model that accounts for three challenging characteristics of richly formatted data: (1) prevalent document-level relations, (2) multimodality, and (3) data variety. Fonduer uses a new deep-learning model to automatically capture the representation (i.e., features) needed to learn how to extract relations from richly formatted data. Finally, Fonduer provides a new programming model that enables users to convert domain expertise, based on multiple modalities of information, to meaningful signals of supervision for training a KBC system. Fonduer-based KBC systems are in production for a range of use cases, including at a major online retailer. We compare Fonduer against state-of-the-art KBC approaches in four different domains. We show that Fonduer achieves an average improvement of 41 F1 points on the quality of the output knowledge base---and in some cases produces up to 1.87x the number of correct entries---compared to expert-curated public knowledge bases. We also conduct a user study to assess the usability of Fonduer's new programming model. We show that after using Fonduer for only 30 minutes, non-domain experts are able to design KBC systems that achieve on average 23 F1 points higher quality than traditional machine-learning-based KBC approaches.

cs.DB↗

Second-order LOD multigrid method for multidimensional Riesz fractional diffusion equation

We propose a locally one dimensional (LOD) finite difference method for multidimensional Riesz fractional diffusion equation with variable coefficients on a finite domain. The numerical method is second-order convergent in both space and time directions, and its unconditional stability is strictly proved. Comparing with the popular first-order finite difference method for fractional operator, the form of obtained matrix algebraic equation is changed from $(I-A)u^{k+1}=u^k+b^{k+1}$ to $(I-{\widetilde A})u^{k+1}=(I+{\widetilde B})u^k+{\tilde b}^{k+1/2}$; the three matrices $A$, ${\widetilde A}$ and ${\widetilde B}$ are all Toeplitz-like, i.e., they have completely same structure and the computational count for matrix vector multiplication is $\mathcal{O}(N {log} N)$; and the computational costs for solving the two matrix algebraic equations are almost the same. The LOD-multigrid method is used to solve the resulting matrix algebraic equation, and the computational count is $\mathcal{O}(N {log} N)$ and the required storage is $\mathcal{O}(N)$, where $N$ is the number of grid points. Finally, the extensive numerical experiments are performed to show the powerfulness of the second-order scheme and the LOD-multigrid method.

math.NA↗

Stochastic resonance of a nanomagnet excited by spin transfer torque

Spin transfer torque from spin-polarized electrical current can excite large-amplitude magnetization dynamics in metallic ferromagnets of nanoscale dimensions. Since magnetic anisotropy energies of nanomagnets are comparable to the thermal energy scale, temperature can have a profound effect on the dynamics of a nanomagnet driven by spin transfer torque. Here we report the observation of unusual types of microwave-frequency nonlinear magnetization dynamics co-excited by alternating spin transfer torque and thermal fluctuations. In these dynamics, temperature amplifies the amplitude of GHz-range precession of magnetization and enables excitation of highly nonlinear dynamical states of magnetization by weak alternating spin transfer torque. We explain these thermally activated dynamics in terms of non-adiabatic stochastic resonance of magnetization driven by spin transfer torque. This type of magnetic stochastic resonance may find use in sensitive nanometer-scale microwave signal detectors.

cond-mat.mes-hall↗

Resonant Nonlinear Damping of Quantized Spin Waves in Ferromagnetic Nanowires

We use spin torque ferromagnetic resonance to measure the spectral properties of dipole-exchange spin waves in permalloy nanowires. Our measurements reveal that geometric confinement has a profound effect on the damping of spin waves in the nanowire geometry. The damping parameter of the lowest-energy quantized spin wave mode depends on applied magnetic field in a resonant way and exhibits a maximum at a field that increases with decreasing nanowire width. This enhancement of damping originates from a nonlinear resonant three-magnon confluence process allowed at a particular bias field value determined by quantization of the spin wave spectrum in the nanowire geometry.

cond-mat.mes-hall↗