arXiv ScienceSearch

arXiv subjects

Pin Lyu

Publications and source records attributed to Pin Lyu.

At least 19 recordsLinked to original sources

SDO: Structure-Aware Data Organization for Efficient LLM Post-Training

Post-training of large language models is expensive, and existing efficiency improvements mainly focus on selecting informative samples or designing training schedules. However, data organization itself is usually treated as a static preprocessing step: embedding-based grouping methods construct fixed partitions before training and cannot adapt to the evolving sample exposure during optimization. As a result, all samples receive similar exposure despite their different optimization needs, leading to redundant updates for some samples while leaving others under-optimized. To address this problem, we propose SDO (Structure-Aware Data Organization), a plug-and-play data organization framework with an exposure-driven feedback mechanism that organizes mini-batch composition and sample exposure according to representation-space structure. SDO operates epoch by epoch on frozen external embeddings, avoiding model warm-up training overhead: within each epoch, locality-aware batching forms coherent mini-batches via KNN neighborhood traversal; across epochs, exposure-balanced scheduling records per-sample participation and reduces the sampling probability of over-exposed samples to preserve long-term coverage. Across SFT, DPO, and GRPO, SDO accelerates convergence, with the largest gains observed in the early-to-mid phase, producing more coherent gradients and more balanced accuracy across question types without permanently excluding training samples.

cs.LG

GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging

Beyond scratch coding, exploiting large-scale code repositories (e.g., GitHub) for practical tasks is vital in real-world software development, yet current benchmarks rarely evaluate code agents in such authentic, workflow-driven scenarios. To bridge this gap, we introduce GitTaskBench, a benchmark designed to systematically assess this capability via 54 realistic tasks across 7 modalities and 7 domains. Each task pairs a relevant repository with an automated, human-curated evaluation harness specifying practical success criteria. Beyond measuring execution and task success, we also propose the alpha-value metric to quantify the economic benefit of agent performance, which integrates task success rates, token cost, and average developer salaries. Experiments across three state-of-the-art agent frameworks with multiple advanced LLMs show that leveraging code repositories for complex task solving remains challenging: even the best-performing system, OpenHands+Claude 3.7, solves only 48.15% of tasks (recent progress has pushed the frontier further, with RepoMaster+Claude 3.5 achieving a new record of 62.96%). Error analysis attributes over half of failures to seemingly mundane yet critical steps like environment setup and dependency resolution, highlighting the need for more robust workflow management and increased timeout preparedness. By releasing GitTaskBench, we aim to drive progress and attention toward repository-aware code reasoning, execution, and deployment -- moving agents closer to solving complex, end-to-end real-world tasks. The benchmark and code are open-sourced at https://github.com/QuantaAlpha/GitTaskBench.

cs.SE

RepoMaster: Autonomous Exploration and Understanding of GitHub Repositories for Complex Task Solving

The ultimate goal of code agents is to solve complex tasks autonomously. Although large language models (LLMs) have made substantial progress in code generation, real-world tasks typically demand full-fledged code repositories rather than simple scripts. Building such repositories from scratch remains a major challenge. Fortunately, GitHub hosts a vast, evolving collection of open-source repositories, which developers frequently reuse as modular components for complex tasks. Yet, existing frameworks like OpenHands and SWE-Agent still struggle to effectively leverage these valuable resources. Relying solely on README files provides insufficient guidance, and deeper exploration reveals two core obstacles: overwhelming information and tangled dependencies of repositories, both constrained by the limited context windows of current LLMs. To tackle these issues, we propose RepoMaster, an autonomous agent framework designed to explore and reuse GitHub repositories for solving complex tasks. For efficient understanding, RepoMaster constructs function-call graphs, module-dependency graphs, and hierarchical code trees to identify essential components, providing only identified core elements to the LLMs rather than the entire repository. During autonomous execution, it progressively explores related components using our exploration tools and prunes information to optimize context usage. Evaluated on the adjusted MLE-bench, RepoMaster achieves a 110% relative boost in valid submissions over the strongest baseline OpenHands. On our newly released GitTaskBench, RepoMaster lifts the task-pass rate from 40.7% to 62.9% while reducing token usage by 95%. Our code and demonstration materials are publicly available at https://github.com/QuantaAlpha/RepoMaster.

cs.SE

Atomically-precise Vacancy-assembled Quantum Antidots

Patterning antidots ("voids") into well-defined antidot lattices creates an intriguing class of artificial structures for the periodic modulation of 2D electron systems, leading to anomalous transport properties and exotic quantum phenomena as well as enabling the precise bandgap engineering of 2D materials to address technological bottleneck issues. However, realizing such atomic-scale quantum antidots (QADs) is infeasible by current nanolithographic techniques. Here, we report an atomically-precise bottom-up fabrication of a series of atomic-scale QADs with elegantly engineered quantum states through a controllable assembly of a chalcogenide single vacancy (SV) in 2D PtTe2, a type-II Dirac semimetal. Te SVs as atomic-scale "antidots" undergo thermal migration and assembly into highly-ordered SV lattices spaced by a single Te atom, reaching the ultimate downscaling limit of antidot lattices. Increasing the number of SVs in QADs strengthens the cumulative repulsive potential and consequently enhances collective interference of multiple-pocket scattered quasiparticles inside QADs, creating multi-level quantum hole states with tunable gap from telecom to far-infrared regime. Moreover, precisely engineered quantum hole states of QADs are symmetry-protected and thus survive upon atom-by-atom oxygen substitutional doping. Therefore, SV-assembled QADs exhibit unprecedented robustness and property tunability, which not only holds the key to their future applications but also embody a wide variety of material technologies.

cond-mat.mes-hall

Discrete gradient structure of a second-order variable-step method for nonlinear integro-differential models

The discrete gradient structure and the positive definiteness of discrete fractional integrals or derivatives are fundamental to the numerical stability in long-time simulation of nonlinear integro-differential models. We build up a discrete gradient structure for a class of second-order variable-step approximations of fractional Riemann-Liouville integral and fractional Caputo derivative. Then certain variational energy dissipation laws at discrete levels of the corresponding variable-step Crank-Nicolson type methods are established for time-fractional Allen-Cahn and time-fractional Klein-Gordon type models. They are shown to be asymptotically compatible with the associated energy laws of the classical Allen-Cahn and Klein-Gordon equations in the associated fractional order limits.Numerical examples together with an adaptive time-stepping procedure are provided to demonstrate the effectiveness of our second-order methods.

math.NA

Giant gate-tunable renormalization of spin-correlated flat-band states and bandgap in a 2D magnetic insulator

Emergent quantum phenomena in two-dimensional van der Waal (vdW) magnets are largely governed by the interplay between the exchange and Coulomb interactions. The ability to tune the Coulomb interaction in such strongly correlated materials enables the precise control of spin-correlated flat-band states, bandgap (Eg) and unconventional magnetism, all of which are crucial for next-generation spintronics and magnonics applications. Here, we demonstrate a giant gate-tunable renormalization of spin-correlated flat-band states and bandgap in magnetic chromium tribromide (CrBr3) monolayers grown on graphene. Our gate-dependent scanning tunneling spectroscopy (STS) studies reveal that the inter-flat-band spacing and bandgap of CrBr3 can be continuously tuned by 120 meV and 240 meV respectively via electrostatic injection of carriers into the hybrid CrBr3/graphene system, equivalent to the modulation of the Cr on-site Coulomb repulsion energy by 500 meV. This can be attributed to the self-screening of CrBr3 arising from the gate-induced carriers injected into CrBr3, which dominates over the opposite trend from the remote screening of the graphene substrate. Precise tuning of the spin-correlated flat-band states and bandgap in 2D magnets via electrostatic modulation of Coulomb interactions not only provides new strategies for optimizing the spin transport channels but also may exert a crucial influence on the exchange energy and spin-wave gap, which could raise the critical temperature for magnetic order.

cond-mat.mes-hall

Visualization of Strain-Induced Landau Levels in a Graphene - Black Phosphorus Heterostructure

Strain-induced pseudo magnetic fields offer the possibility of realizing zero magnetic field Quantum Hall effect in graphene, possibly up to room temperature, representing a promising avenue for lossless charge transport applications. Strain engineering on graphene has been achieved via random nanobubbles or artificial nanostructures on the substrate, but the highly localized and non-uniform pseudomagnetic fields can make spectroscopic probes of electronic structure difficult. Heterostructure engineering offers an alternative approach: By stacking graphene on top of another van der Waals material with large lattice mismatch at a desired twist angle, it is possible to generate large strain-induced pseudo magnetic fields uniformly over the entire heterostructure. Here, we report using nano-angle resolved photoemission spectroscopy (nano-ARPES) to probe the electronic bandstructure of a graphene/black phosphorus heterostructure (G/BP). By directly measuring the iso-energy contours of graphene and black phosphorus we determine a twist angle of 20-degrees in our heterostructure. High-resolution nano-ARPES of the graphene bands near the Fermi level reveals the emergence of flat bands located within the Dirac cone. The spacing of the flat bands is consistent with Landau level formation in graphene, and corresponds to a pseudo-field of 11.36 T. Our work provides a new way to study quantum Hall phases induced by strain in 2D materials and heterostructures.

cond-mat.mes-hall

Gate-tunable artificial nucleus in graphene

We report an atomically-precise integration of individual nitrogen (N) dopant as an in-plane artificial nucleus in a graphene device by atomic implantation to probe its gate-tunable quantum states and correlation effects. The N dopant creates the characteristic resonance state in the conduction band, revealing a giant carrier-dependent energetic renormalization up to 350 meV with respect to the Dirac point, accompanied by the observation of long-range screening effects. Joint density functional theory and tight-binding calculations with modified perturbation potential corroborate experimental findings and highlight the short-range character of N-induced perturbation.

cond-mat.mtrl-sci

A high-order and fast scheme with variable time steps for the time-fractional Black-Scholes equation

In this paper, a high-order and fast numerical method is investigated for the time-fractional Black-Scholes equation. In order to deal with the typical weak initial singularities of the solution, we construct a finite difference scheme with variable time steps, where the fractional derivative is approximated by the nonuniform Alikhanov formula and the sum-of-exponentials (SOE) technique. In the spatial direction, an average approximation with fourth-order accuracy is employed. The stability and the convergence with second-order in time and fourth-order in space of the proposed scheme are religiously derived by the energy method. Numerical examples are given to demonstrate the theoretical statement.

math.NA

Electronic Self-passivation of Single Vacancy in Black Phosphorus via a Controlled Ionization

We report that mono-elemental black phosphorus presents a new electronic self-passivation scheme of single vacancy (SV). By means of low-temperature scanning tunneling microscopy and bond-resolved non-contact atomic force microscopy, we demonstrate that the local reconstruction and ionization of SV into negatively charged $\mathrm{SV}^-$ leads to the passivation of dangling bonds and thus the quenching of in-gap states, which can be achieved by mild thermal annealing or STM tip manipulation. SV exhibits a strong and symmetric Friedel oscillation (FO) pattern, while $\mathrm{SV}^-$ shows an asymmetric FO pattern with local perturbation amplitude reduced by one order of magnitude and a faster decay rate. The enhanced passivation by forming $\mathrm{SV}^-$ can be attributed to its weak dipole-like perturbation, consistent with density-functional theory and numerical calculations. Therefore, self-passivated $\mathrm{SV}^-$ is electronically benign and acts as a much weaker scattering center, which may hold the key to further enhance the charge mobility of BP and its analogs.

cond-mat.mtrl-sci

Second-order and nonuniform time-stepping schemes for time fractional evolution equations with time-space dependent coefficients

The numerical analysis of time fractional evolution equations with the second-order elliptic operator including general time-space dependent variable coefficients is challenging, especially when the classical weak initial singularities are taken into account. In this paper, we introduce a concise technique to construct efficient time-stepping schemes with variable time step sizes for two-dimensional time fractional sub-diffusion and diffusion-wave equations with general time-space dependent variable coefficients. By means of the novel technique, the nonuniform Alikhanov type schemes are constructed and analyzed for the sub-diffusion and diffusion-wave problems. For the diffusion-wave problem, our scheme is constructed by employing the recently established symmetric fractional-order reduction (SFOR) method. The unconditional stability of proposed schemes is rigorously discussed under mild assumptions on variable coefficients and, based on reasonable regularity assumptions and weak time mesh restrictions, the second-order convergence is obtained with respect to discrete $H^1$-norm. Numerical experiments are given to demonstrate the theoretical statements.

math.NA

A symmetric fractional-order reduction method for direct nonuniform approximations of semilinear diffusion-wave equations

We introduce a symmetric fractional-order reduction (SFOR) method to construct numerical algorithms on general nonuniform temporal meshes for semilinear fractional diffusion-wave equations. By using the novel order reduction method, the governing problem is transformed to an equivalent coupled system, where the explicit orders of time-fractional derivatives involved are all $\alpha/2$ $(1<\alpha<2)$. The linearized L1 scheme and Alikhanov scheme are then proposed on general time meshes. Under some reasonable regularity assumptions and weak restrictions on meshes, the optimal convergence is derived for the two kinds of difference schemes by $H^2$ energy method. An adaptive time stepping strategy which based on the (fast linearized) L1 and Alikhanov algorithms is designed for the semilinear diffusion-wave equations. Numerical examples are provided to confirm the accuracy and efficiency of proposed algorithms.

math.NA

A fast implicit difference scheme for solving the generalized time-space fractional diffusion equations with variable coefficients

In this paper, we first propose an unconditionally stable implicit difference scheme for solving generalized time-space fractional diffusion equations (GTSFDEs) with variable coefficients. The numerical scheme utilizes the $L1$-type formula for the generalized Caputo fractional derivative in time discretization and the second-order weighted and shifted Gr\"{u}nwald difference (WSGD) formula in spatial discretization, respectively. Theoretical results and numerical tests are conducted to verify the $(2 - \gamma)$-order and 2-order of temporal and spatial convergence with $\gamma\in(0,1)$ the order of Caputo fractional derivative, respectively. The fast sum-of-exponential approximation of the generalized Caputo fractional derivative and Toeplitz-like coefficient matrices are also developed to accelerate the proposed implicit difference scheme. Numerical experiments show the effectiveness of the proposed numerical scheme and its good potential for large-scale simulation of GTSFDEs.

math.NA

An efficient second-order convergent scheme for one-side space fractional diffusion equations with variable coefficients

In this paper, a second order finite difference scheme is investigated for time-dependent one-side space fractional diffusion equations with variable coefficients. The existing schemes for the equation with variable coefficients have temporal convergence rate no better than second order and spatial convergence rate no better than first order, theoretically. In the presented scheme, the Crank-Nicolson temporal discretization and a second-order weighted-and-shifted Gr\"unwald-Letnikov spatial discretization are employed. Theoretically, the unconditional stability and the second-order convergence in time and space of the proposed scheme are established under some conditions on the diffusion coefficients. Moreover, a Toeplitz preconditioner is proposed for linear systems arising from the proposed scheme. The condition number of the preconditioned matrix is proven to be bounded by a constant independent of the discretization step-sizes so that the Krylov subspace solver for the preconditioned linear systems converges linearly. Numerical results are reported to show the convergence rate and the efficiency of the proposed scheme.

math.NA

A fast linearized finite difference method for the nonlinear multi-term time-fractional wave equation

In this paper, we study a fast and linearized finite difference method to solve the nonlinear time-fractional wave equation with multi fractional orders. We first propose a discretization to the multi-term Caputo derivative based on the recently established fast L2-1{\sigma} formula and a weighted approach. Then we apply the discretization to construct a fully fast linearized discrete scheme for the nonlinear problem under consideration. The nonlinear term, which just fulfills the Lipschitz condition, will be evaluated on the previous time level. Therefore only linear systems are needed to be solved for obtaining numerical solutions. The proposed scheme is shown to have second-order unconditional convergence with respect to the discrete H1-norm. Numerical examples are provided to justify the efficiency.

math.NA

A linearized second-order scheme for nonlinear time fractional Klein-Gordon type equations

We consider difference schemes for nonlinear time fractional Klein-Gordon type equations in this paper. A linearized scheme is proposed to solve the problem. As a result, iterative method need not be employed. One of the main difficulties for the analysis is that certain weight averages of the approximated solutions are considered in the discretization and standard energy estimates cannot be applied directly. By introducing a new grid function, which further approximates the solution, and using ideas in some recent studies, we show that the method converges with second-order accuracy in time.

math.NA

On a second order scheme for space fractional diffusion equations with variable coefficients

We study a second order scheme for spatial fractional differential equations with variable coefficients. Previous results mainly concentrate on equations with diffusion coefficients that are proportional to each other. In this paper, by further study on the generating function of the discretization matrix, second order convergence of the scheme is proved for diffusion coefficients satisfying a certain condition but are not necessary to be proportional. The theoretical results are justified by numerical tests.

math.NA

Size effect of Ruderman-Kittel-Kasuya-Yosida interaction mediated by electrons in nanoribbons

We calculated the Ruderman-Kittel-Kasuya-Yosida (RKKY) interaction between the magnetic impurities mediated by electrons in nanoribbons. It was shown that the RKKY interaction is strongly dependent on the width of the nanoribbon and the transverse positions of the impurities. The transverse confinement of electrons is responsible for the above size effect of the RKKY interaction. It provides a potential way to control the RKKY interaction by changing nanostructure geometry.

cond-mat.mes-hall