Searcharxiv⌕ Search

arXiv subjects

Haoran Xue

Publications and source records attributed to Haoran Xue.

At least 19 recordsLinked to original sources

How Effectively Do Security Skills Guide Coding Agents in Vulnerability Detection in Linux Kernel?

Large language model (LLM) coding agents, such as Claude Code, are increasingly used for security auditing, with task-specific skills providing reusable vulnerability-analysis procedures. However, their effectiveness in detecting real vulnerabilities and the reasons for their failures remain unclear. We conduct the first large-scale empirical study of 37 security skills using Claude Code with four underlying LLMs on 100 real Linux kernel vulnerabilities across ten classes, totaling 14800 runs. We evaluate vulnerability detection at the function, statement, and vulnerability-class levels. Results show that 24.4 percent of runs locate the correct function, 18.3 percent identify both the function and responsible statement, and 15.7 percent correctly classify the vulnerability. Our failure analysis reveals limitations in evidence acquisition, state-relation reasoning, code interpretation, candidate verification, investigation coverage, and reporting. Based on these findings, we propose SKILL-SIF, a self-improving framework that iteratively evolves security skills by learning from missed vulnerabilities and failure patterns. We evolve five top-performing skills using the original benchmark and evaluate them on 100 previously unseen vulnerabilities. SKILL-SIF improves fully correct vulnerability detection by up to eight times (from 2 percent to 16 percent) on unseen vulnerabilities, while aggregate accuracy across four LLMs increases by 1.85 times (from 6.05 percent to 11.20 percent). These findings highlight the limitations of existing security skills and demonstrate the potential of failure-driven skill evolution to improve vulnerability detection in coding agents.

cs.CR↗

Non-Hermitian Cooperation Induced Chern Insulator

Conventional Chern insulators rely on breaking time-reversal symmetry via magnetic fields or synthetic gauge fields. Here we introduce a fundamentally different paradigm: a static lattice without any gauge field becomes a Chern insulator solely through the cooperation of two non-Hermitian ingredients: on-site loss and non-reciprocal coupling. Neither effect alone suffices; only their synergy opens a topological gap and gives rise to robust chiral edge states with a nonzero Chern number. The underlying mechanism originates from a non-Hermitian chiral molecule formed by the lossy sites, whose dynamically dominant mode carries an orbital angular momentum that effectively generates a synthetic flux after the fast-decaying degrees of freedom are eliminated. Our results establish non-Hermitian cooperation as a versatile resource for inducing Chern topology without external fields or temporal modulations, opening a new route to topological phases in open classical and quantum systems.

quant-ph↗

Magnon-induced phononic Chern insulator

High-frequency artificial phononic crystals offer a low-loss platform compatible with on-chip integration, yet realizing Chern phononic phases at GHz frequencies remains challenging. Here, we propose a magnon-induced phononic Chern insulator in a honeycomb phononic crystal hybridized with ferromagnetic islands at the hexagon centers. A circularly polarized Kittel mode couples to the surrounding phonons with a phase winding, which breaks time-reversal symmetry and opens a full Chern gap. In the large-detuning regime, this mechanism leads to an effective Haldane-type phononic model with magnon-induced complex hopping. By tuning the magnon-phonon interaction, the full hybrid system accesses Chern phases with tunable Chern numbers |C|=1 and |C|=2. The predicted gaps can exceed realistic phonon and magnon linewidths, enabling their observation in GHz acoustic devices. Our work establishes chiral magnon--phonon hybridization as a route to magnetically reconfigurable topological phononics.

cond-mat.mes-hall↗

Realization of Arbitrary Gauge Fields via Symmetry-Protected Zero Modes

Gauge fields are fundamental to modern physics, but prescribed gauge configurations are often difficult to implement in artificial systems. Here, we present a general scheme for realizing arbitrary static $\mathrm{O}(N)$ lattice gauge configurations using symmetry-protected zero modes of sublattice-imbalanced bipartite units. The target $\mathrm{O}(N)$ link on each bond is encoded in the connectivity and strengths of positive microscopic couplings. By decoupling the zero-mode manifold from the remaining modes, the target gauge Hamiltonian forms an exact spectral block of the microscopic tight-binding model rather than a perturbative approximation. We experimentally demonstrate this framework in acoustic crystals through a $\mathbb{Z}_2$ quadrupole topological insulator, an $\mathrm{SO}(2)$ Hofstadter model, and an $\mathrm{SO}(3)$ non-Abelian topological insulator. Our results provide a general and accessible route to gauge-field physics in artificial systems.

cond-mat.mes-hall↗

Developer Experiences with Cursor AI-native IDE

AI-powered integrated development environments (IDEs) are increasingly positioned as practical tools for software development, integrating AI assistance into everyday activities such as editing, refactoring, and debugging. However, how developers evaluate AI IDEs as working environments, what frictions shape their adoption, and which aspects of the experience matter most in everyday use remain underexplored. Prior evidence on adoption and use is mainly controlled tasks, small interview samples, and short observation windows, which offer limited visibility into longitudinal, community-driven experience and the workflow drift that emerges in everyday practice. To bridge this gap, we conduct a large-scale longitudinal study of Cursor, a prominent AI-native IDE, through its official public forum, where users report bugs, request features, and discuss everyday use. Our analysis covers 14,714 forum posts collected over more than two years. We find that discussion is dominated by workflow-critical mechanisms (71%) such as context indexing, model routing, and agent workflows, which are also the main sources of both perceived value and frustration. Negative experiences center on usability, pricing, and dependability, including installation and setup, usage limits and consumption, crashes, and latency. Over time, the focus of friction shifts from early access and setup barriers toward pricing, robustness, and sustained workflow reliability.

cs.SE↗

Universal valley filtering via uniform dissipation and velocity contrast

Valley, as a ubiquitous degree of freedom in lattices, has found wide applications in both electronic and classical-wave devices in recent years. However, achieving valley-polarized states, a prerequisite for valley-based operations, still remains challenging. Here, we propose and experimentally demonstrate a universal non-Hermitian mechanism for valley filtering using only uniform background dissipation, which creates a propagation length contrast between valleys through their intrinsic group velocity differences. We implement this concept in an acoustic crystal, observing switchable and robust valley polarization of sound through large-scale field mapping. Remarkably, our approach is solely based on uniform loss, without the need for any special lattice structures, tailored excitations, or external fields. We further provide designs of our non-Hermitian valley filter on photonic and electronic platforms. Our results offer a simple and effective solution to valley-polarized state generation and may advance the development of novel valley-based devices in both classical and quantum regimes.

cond-mat.mes-hall↗

Observation of localization reversal and harmonic generation in nonlinear non-Hermitian skin effect

The interplay between band topology and material nonlinearity gives rise to a variety of novel phenomena, such as topological solitons and nonlinearity-induced topological phase transitions. However, most previous studies fall within the Hermitian regime, leaving the impact of nonlinearity on non-Hermitian topology seldom explored. Here, we investigate the effects of nonlinearity on the non-Hermitian skin effect, a well-known non-Hermitian phenomenon induced by the point-gap topology unique to non-Hermitian systems. Interestingly, we discover a nonlinearity-induced point-gap topological phase transition accompanied by a reversal of the skin mode localization, which is distinct from previous nonlinearity-induced line-gap topological phases. This phenomenon is experimentally demonstrated in a nonlinear microwave metamaterial, where electromagnetic waves are localized around one end of the sample under a low-intensity pump, whereas at a high-intensity pump, the waves are localized around the other end. Our results open a new route towards nonlinear topological physics in non-Hermitian systems and are promising for reconfigurable topological wave manipulation.

cond-mat.mes-hall↗

Topological antilaser

Coherent perfect absorption (CPA)-the time-reversed operation of lasing at threshold-relies on finely tuned interference and is intrinsically fragile to disorder and structural imperfections. Whether absorption can be endowed with topological protection, by analogy to topological lasing, has remained an open question. Here, we experimentally demonstrate a topological antilaser: the time-reversed counterpart of a topological laser, in which chiral edge modes of a photonic lattice enable perfect light absorption protected by topology. Using a nonreciprocal microwave network with low intrinsic loss, we show that the topological antilaser preserves near-unity absorption under strong disorder, and, unlike conventional antilasers, remains functional for arbitrary placements of dissipation and input ports, even when the lattice is strongly perturbed. This robustness arises from the disorder-immune propagation and stable spatial profile of the topological edge modes. Our results establish topologically protected absorption as the missing counterpart of topological lasing, opening new directions for studying robust energy dissipation, wave control, and coherent-absorption-based detection technologies.

physics.optics↗

Non-diffusion transport in decoherent non-Hermitian quasicrystals

Disorder and coherence jointly govern wave transport in complex media. In Hermitian systems, a long-established paradigm since Anderson's work holds that disorder-induced localization relies on phase-coherent interference, and that the loss of coherence inevitably suppresses localization and restores featureless diffusive transport at long times. Whether this intuition remains valid in non-Hermitian systems, where transport can be governed by dissipation rather than interference, has remained largely open. Here we theoretically and experimentally demonstrate that this paradigm fundamentally breaks down in decoherent non-Hermitian quasicrystals. Using a programmable photonic lattice with independently engineered dissipation and fully programmable dephasing, we access regimes spanning from fully coherent to fully incoherent dynamics. While decoherence washes out localization and enforces structureless diffusion in Hermitian lattices, we find that decoherent non-Hermitian quasicrystals retain nontrivial, non-diffusive transport structures even in the incoherent limit. These include dissipation-induced localization, diffusion-localization transitions, and decoherence-induced mobility edges, phenomena with no counterparts in Hermitian disordered systems. We develop a unified theoretical framework that captures the ensemble-averaged dynamics across the entire coherence landscape, continuously connecting coherent and incoherent regimes, and reveals how dissipation and decoherence cooperate to shape transport. Our results establish decoherent non-Hermitian lattices as a distinct class of transport systems, in which dissipation and incoherence generate structured, non-diffusive phases, beyond the conventional Anderson picture.

physics.optics↗

Unsupervised Classification of Non-Hermitian Topological Phases under Symmetries

The integration of artificial intelligence (AI) into fundamental science has opened new possibilities to address long-standing scientific challenges rooted in mathematical limitations. For example, topological invariants are used to characterize topology, but there is no universally applicable one. This limitation explains why, in the past decades-long classification of topological phases of matter -- mainly focused on Hermitian systems -- many phases initially classified ``trivial" were later identified as topological. Recently, the discovery of non-Hermitian band topology has spurred substantial efforts in non-Hermitian topological classification, including the development of new topological invariants. However, such classifications similarly risk overlooking key topological features. Here, without relying on any topological invariant, we develop an AI-based unsupervised classification of symmetry-protected non-Hermitian topological phases. This algorithm distinguishes topological differences among non-Hermitian Hamiltonians with symmetries, and constructs, in an unsupervised manner, a topological periodic table for non-Hermitian systems. Additionally, it can account for the boundary effects, enabling the exploration of open-boundary effects on the topological phase diagram. These results introduce an unsupervised approach for classifying symmetry-protected non-Hermitian topological phases without omission and provide valuable guidance for the development of theories and experiments.

cond-mat.mes-hall↗

An Empirical Study of Reasoning Steps in Thinking Code LLMs

Thinking Large Language Models (LLMs) generate explicit intermediate reasoning traces before final answers, potentially improving transparency, interpretability, and solution accuracy for code generation. However, the quality of these reasoning chains remains underexplored. We present a comprehensive empirical study examining the reasoning process and quality of thinking LLMs for code generation. We evaluate six state-of-the-art reasoning LLMs (DeepSeek-R1, OpenAI-o3-mini, Claude-3.7-Sonnet-Thinking, Gemini-2.0-Flash-Thinking, Gemini-2.5-Flash, and Qwen-QwQ) across 100 code generation tasks of varying difficulty from BigCodeBench. We quantify reasoning-chain structure through step counts and verbosity, conduct controlled step-budget adjustments, and perform a 21-participant human evaluation across three dimensions: efficiency, logical correctness, and completeness. Our step-count interventions reveal that targeted step increases can improve resolution rates for certain models/tasks, while modest reductions often preserve success on standard tasks, rarely on hard ones. Through systematic analysis, we develop a reasoning-problematic taxonomy, identifying completeness as the dominant failure mode. Task complexity significantly impacts reasoning quality; hard problems are substantially more prone to incompleteness than standard tasks. Our stability analysis demonstrates that thinking LLMs maintain consistent logical structures across computational effort levels and can self-correct previous errors. This study provides new insights into the strengths and limitations of current thinking LLMs in software engineering.

cs.AI↗

Topological photonic crystal fibre

Photonic crystal fibres (PCFs) are optical fibres that guide light using a modulated dielectric medium. They provide an exceptionally versatile platform for various applications, thanks to the flexibility with which light-guiding can be customised by modifying the fibre geometry. Here, we realise a PCF with guided modes produced by photonic bandstructure topology rather than conventional mode-trapping mechanisms. The design, which is compatible with the stack-and-draw fabrication process, consists of a cross-sectional photonic topological crystalline insulator with a disclination. A bulk-defect correspondence produces degenerate topological modes, lying below the cladding light line. We use various theoretical methods to confirm their topological origins, including a spectral localiser that makes minimal assumptions about the bandstructure. Our experiments on the fabricated topological fibre show it transmitting visible to near-infrared light with low losses of 10--20 dB/km, which do not increase much when the fibre is bent. A comparable solid-core PCF of conventional design exhibits substantially higher bending losses. Optical fibres based on topological modes thus hold promise for improved performance and novel functionalities.

physics.optics↗

Non-Hermitian edge burst of sound

Non-Hermitian band topology can give rise to phenomena with no counterparts in Hermitian systems. A well-known example is the non-Hermitian skin effect (NHSE), where Bloch eigenstates localize at a boundary, induced by a nontrivial spectrum winding number. In contrast, recent studies on lossy non-Hermitian lattices have uncovered an unexpected boundary-localized loss probability-a phenomenon that requires not only non-Hermitian band topology but also the closure of the imaginary (dissipative) gap. Here, we demonstrate the non-Hermitian edge burst in a classical-wave metamaterial: a lossy nonreciprocal acoustic crystal. We show that, when the imaginary gap remains closed, edge bursts can occur at the right boundary, left boundary, or both boundaries simultaneously, all under the same non-Hermitian band topology; the latter scenario is known as a bipolar edge burst. The occurrence of each scenario depends on the number and location of the imaginary gap closure points in the eigenenergy spectra. These findings generalize the concept of edge burst from quantum to classical wave systems, establish it as an intrinsic material property, and enrich the physics of the complex interplay between non-Hermitian band topology and other physical properties in non-Hermitian systems.

cond-mat.mes-hall↗

Observation of Embedded Topology in a Trivial Bulk via Projective Crystal Symmetry

Bulk-boundary correspondence is the foundational principle of topological physics, first established in the quantum Hall effect, where a $D$-dimensional topologically nontrivial bulk gives rise to $(D-1)$-dimensional boundary states. The advent of higher-order topology has generalized this principle to a hierarchical chain, enabling topological states to appear at $(D-2)$ or even lower-dimensional boundaries. To date, all known realizations of topological systems must require a topologically nontrivial bulk to initiate the chain of action for bulk-boundary correspondence. Here, in an acoustic crystal platform, we experimentally demonstrate an exception to this paradigm--embedded topology in a trivial bulk--where the bulk-boundary correspondence originates from a trivial bulk. Rather than relying on global symmetries, we employ projective crystal symmetry, which induces nontrivial topology not at the outset in the $D$-dimensional bulk, but midway through the correspondence hierarchy in lower-dimensional boundaries. We further realize a three-dimensional system exhibiting embedded topology that supports zero-dimensional topological states, achieving the longest possible chain of action for such an unconventional bulk-boundary correspondence in physical space. Our work experimentally establishes a new form of bulk-boundary correspondence initiated from a trivial bulk, opening additional degrees of freedom for the design of robust topological devices.

cond-mat.mes-hall↗

PAGENT: Learning to Patch Software Engineering Agents

LLM Agents produce patches automatically to resolve an issue. However, they can generate inaccurate patches. Little is known about the root causes behind those failed patches or how those could be fixed. This paper reports an empirical study of the failed patches generated by seven top LLM code agents. We collected 114 issues from the SWE-bench Lite dataset that remained unresolved across the agents. The seven agents produced a total of 769 failed patches for those issues, which we checked with a combination of GPT-4o and manual analysis. We present a taxonomy of the failure reasons across the patches. The taxonomy contains six categories, with several sub-categories under each category. For example, a frequently observed category is the inability of an LLM to correctly infer/produce the appropriate variable type in the produced patch. As a first step towards addressing such type-related errors, we designed PAGENT (Patch Agent). PAGENT utilizes program analysis techniques like CFG creation and exploration to infer the type of information of a patch. PAGENT does this by applying repository-level static code analysis techniques. Then, PAGENT refines the inferred type by further utilizing an LLM-based inference technique. We tested PAGENT on all 127 type-related failed patches from the top three agents in our study. PAGENT could fix 29 of the 127 failed patches.

cs.SE↗

Three-dimensional flat Landau levels in an inhomogeneous acoustic crystal

When electrons moving in two-dimensions (2D) are subjected to a strong uniform magnetic field, they form flat bands called Landau levels, which are the basis for the quantum Hall effect. Landau levels can also arise from pseudomagnetic fields (PMFs) induced by lattice distortions; for example, mechanically straining graphene causes its Dirac quasiparticles to form a characteristic set of unequally-spaced Landau levels, including a zeroth Landau level. In three-dimensional (3D) systems, there has thus far been no experimental demonstration of Landau levels or any other type of flat band. For instance, applying a uniform magnetic field to materials hosting Weyl quasiparticles, the 3D generalizations of Dirac quasiparticles, yields bands that are non-flat in the direction of the field. Here, we report on the experimental realization of a flat 3D Landau level in an acoustic crystal. Starting from a lattice whose bandstructure exhibits a nodal ring, we design an inhomogeneous distortion corresponding to a specific pseudomagnetic vector potential (PVP) that causes the nodal ring states to break up into Landau levels, with a zeroth Landau level that is flat along all three directions. These findings point to the possibility of using nodal ring materials to generate 3D flat bands, to access strong interactions and other interesting physical regimes in 3D.

cond-mat.mes-hall↗

Observation of returning Thouless pumping

Introduced by David Thouless in 1983, Thouless pumping exemplifies topological properties in topological systems, where the transported charge is quantized by the Chern number. Recently, returning Thouless pumping was theoretically proposed, in which quantized charge is pumped during the first half of the cycle but returns to zero in the second half. This mechanism leads to crystalline symmetry-protected delicate topological insulators. Unlike conventional topological bands, a delicate topological band is Wannierizable but not atomically obstructed, which features multicellular Wannier functions extending beyond a single unit cell. Here, by replacing the second dimension with a synthetic dimension, we realize a two-dimensional delicate topological insulator via a set of one-dimensional acoustic crystals with fine-tuned geometric parameters. Through acoustic bands and wavefunction measurements, we directly observe returning Thouless pumping and symmetric multicellular Wannier functions, followed by establishing the bulk-boundary correspondence between sub-Brillouin zone Chern numbers and gapless boundary modes. As enriched by crystalline symmetries, our experimental demonstration of returning Thouless pumping expands the current understanding of topological phases of matter.

cond-mat.mes-hall↗

Observation of disorder-induced boundary localization

Bloch wavefunctions in crystals experience localization within the bulk when disorder is introduced, a phenomenon commonly known as Anderson localization. This effect is considered universal, being applicable to all types of waves, quantum or classical. However, the interaction between disorder and topology -- a concept that has profoundly transformed many branches of physics -- necessitates revisiting the original Anderson localization picture. For instance, in the recently discovered topological Anderson insulator, the introduction of disorder induces topological boundary states that can resist localization due to protection from line-gap topology. While line-gap topology applies to both Hermitian and non-Hermitian systems, non-Hermitian systems uniquely exhibit point-gap topology, which has no Hermitian counterparts and leads to the non-Hermitian skin effect. Here, we experimentally demonstrate disorder-induced point-gap topology in a non-Hermitian acoustic crystal. This crystal, with non-Hermitian disorder in nearest-neighbor couplings, exhibits the non-Hermitian skin effect, where all eigenstates localize at a boundary. Interestingly, the boundary where localization occurs -- either the left or right -- depends on the strength of the disorder. As the disorder strength increases, the direction of boundary localization can be reversed. Additionally, we observe a ``bipolar" skin effect, where boundary localization occurs at both the left and right boundaries when disorder is introduced in next-nearest-neighbor couplings. These findings experimentally reveal a non-Hermitian mechanism of disorder-induced localization that goes beyond the conventional framework of Anderson localization.

physics.class-ph↗