Search arXiv⌕ Search

arXiv subjects

Xiao-Hui Li

Publications and source records attributed to Xiao-Hui Li.

At least 19 recordsLinked to original sources

ProgramGen: Scalable Environment Construction for Long-Horizon Coding Agents

Coding agents are moving from issue-level fixes to long-horizon development, but training environments with real-project complexity, clear goals, runnable workspaces, and reliable evaluation remain scarce. We introduce ProgramGen, a scalable and efficient pipeline that turns real repositories into such environments, where coding agents learn forward and reverse engineering. In forward mode, the agent implements a repository from a specification, and the repository tests grade the result. In reverse mode, the agent reimplements a reference program without seeing the source code, and tests generated by the proposed pipeline grade the result. ProgramGen constructs both modes in three steps: building the repository, generating the task, and validating the result. To keep the cost low, ProgramGen regenerates only the parts of a task that fail validation and uses rule-based programs to install dependencies, extract interfaces, and run the checks. Empirically, we show that with merely 2,585 trajectories, the mean pass rates of Qwen3.8-27B can be effectively boosted, i.e., $39.3\% \rightarrow 46.6\%$ on NL2Repo and $48.0\% \rightarrow 61.0\%$ on ProgramBench, respectively. The model also exhibits good generalization on SWE-related benchmarks, e.g., $41.6\% \rightarrow 60.2\%$ on DeepSWE, $60.7\% \rightarrow 70.8\%$ on Terminal-Bench 2.1, and $76.5\% \rightarrow 84.3\%$ on SWE-bench Pro V2 Hard. We open source the tasks, trajectories, model, and code for community research.

cs.SE↗

LegoReview: Scaling Code Review Data with Verification from Pull Request Histories

As coding agents write a growing share of software, automated code review becomes increasingly necessary. Training capable reviewers calls for scaling verifiable tasks and verified trajectories. However, code review produces open-ended, natural-language findings whose correctness cannot be verified simply by running tests. We observe that pull request (PR) histories provide an implicit verification signal: discussions, code revisions, and other actions reveal which findings were accepted or fixed and which were withdrawn or rejected. Therefore, we introduce LegoReview, a pipeline that reconstructs reviewed code snapshots from merged GitHub PRs and uses their discussions and revisions to construct verifiable review tasks and verify training trajectories. From 556k merged PRs, we build 168k review tasks and 60k verified trajectories, spanning eight programming languages and eight finding categories such as correctness, maintainability, and design. Fine-tuning Qwen3.5-35B-A3B-Base on just 1k verified trajectories raises F1 score from 5.7 to 43.1 on our proposed LegoReview-Bench, and scaling to 60k raises it further to 56.1. Further, the benefits of review training extend to coding tasks like feature implementation and issue resolution: compared to coding-only training, joint training with review trajectories raises scores from 26.5 to 31.9 on DeepSWE and from 62.8 to 70.6 on SWE-bench Pro V2 Hard. Behavioral analysis suggests that review training encourages more frequent code checks during implementation and improves the recognition and revision of incorrect patches.

cs.SE↗

Benchmark Everything Everywhere All at Once

Benchmarks provide standardized measures for evaluating and advancing large language models (LLMs) and multimodal LLMs (MLLMs). As models improve, existing benchmarks can approach saturation, making it harder to challenge models and distinguish among them. While reusing annotated datasets can reduce data collection and labeling effort, constructing new benchmarks remains labor-intensive, and existing agent-based approaches often target specific tasks or automate only parts of the process. To address these challenges, we introduce BenchHarness, an autonomous harness for end-to-end benchmark customization. It coordinates multiple agents and tools to analyze user requirements, search for suitable datasets, and construct validated benchmarks, with support for refinement based on model performance. To evaluate BenchHarness, we construct 16 benchmarks spanning diverse tasks and modalities. Human review and LLM-as-a-judge assessments indicate high benchmark quality, while evaluations across multiple models reveal challenging tasks and meaningful performance differences. In comparisons with source benchmarks, the generated benchmarks yield lower scores and larger performance gaps, even when the originals approach saturation. BenchHarness thus provides a reusable approach to benchmark construction, supporting informative evaluation as model capabilities and user needs evolve. Our code and benchmarks are publicly available.

cs.AI↗

Minimizing Modality Gap from the Input Side: Your Speech LLM Can Be a Prosody-Aware Text LLM

Speech large language models (SLMs) are typically built from text large language model (TLM) checkpoints, yet they still suffer from a substantial modality gap. Prior work has mainly attempted to reduce this gap from the output side by making speech generation more text-like, but the gap remains. We argue that the key remaining bottleneck lies on the input side. We propose TextPro-SLM, an SLM that makes spoken input more closely resemble that of a prosody-aware text LLM. TextPro-SLM combines WhisperPro, a unified speech encoder that produces synchronized text tokens and prosody embeddings, with an LLM backbone trained to preserve the semantic capabilities of the original TLM while learning paralinguistic understanding. Experiments show that TextPro-SLM achieves the lowest modality gap among leading SLMs at both 3B and 7B scales, while also delivering strong overall performance on paralinguistic understanding tasks. These gains are achieved with only roughly 1,000 hours of LLM training audio, suggesting that reducing the modality gap from the input side is both effective and data-efficient. Code is available at https://github.com/dreamtheater123/TextPro-SLM

cs.CL↗

ChartEvo: Self-Evolving Agent Harnesses for Long-Tail Chart Reasoning

Multimodal large language models (MLLMs) have substantially advanced chart understanding and reasoning, yet their performance remains highly uneven across chart types. While modern MLLMs perform well on common charts, their accuracy drops sharply on long-tail charts with diverse visual structures and reasoning requirements. Tool-augmented agents can improve complex chart reasoning by introducing specialized visual capabilities, but manually engineering strategies and tools for the heterogeneous and evolving long tail is difficult to scale. We introduce \textbf{ChartEvo}, a recursive self-improvement framework that enables chart agents to adapt to underperforming chart types through experience-driven harness-level self-improvement. ChartEvo jointly evolves reusable chart-specific Skills and executable Tools, while learning reusable local tool-call chains to compose evolved capabilities and control the inference overhead of tool-augmented reasoning. On long-tail charts from ChartBench and ChartX, ChartEvo improves accuracy over its base MLLM, Qwen3.7-Plus, by \textbf{45.6\%} and \textbf{32.5\%}, respectively, demonstrating the effectiveness of recursive self-improvement for long-tail chart adaptation.

cs.AI↗

EfficientAgent: What Makes KV Cache Offloading Work for Concurrent Agents?

LLM agents resend their whole conversation on every turn, and most of it was already processed on the previous turn. Serving systems avoid recomputing it by caching its key-value (KV) state and, when GPU memory runs out, by offloading that state to host memory. For agents, offloading gives inconsistent results: on the same coding-agent workload it speeds up one deployment, slows down another, and changes nothing on a third, even where loading a token back is several times cheaper than recomputing it. The reason is that cached state must survive until it is used again. While one agent waits for its tool, the server processes the contexts of all other agents, so an agent's prefix is reused only if the host tier holds the reusable context of the whole agent pool, which we call the reuse working set. A smaller tier keeps writing state that is evicted before anyone reads it. We present EfficientAgent, which sizes and manages the host tier by this working set. A stack-distance model estimates the working set from agent histories to size the host tier; its predictions, made before the experiments, located the capacity at which offloading starts to pay. When the tier is too small, a runtime policy stops writing large refills of evicted context and keeps extending prefixes that are still cached; when the tier is large enough, it writes everything. On SWE-bench Verified coding agents, a host tier sized to the estimated working set cuts recomputed prompt tokens by 93% and end-to-end time by 39%. With a small fixed tier, the policy cuts recomputation by 35%; with a large tier, it avoids the 4.3-fold increase caused by always filtering writes. Across three GPU types and two models, offloading pays off when the GPU has little compute per byte of host bandwidth and the host tier holds the working set. Code is available at https://github.com/KunmingSHAO/efficientagent_release.

cs.DC↗

Box dimension of the graphs of recurrent fractal interpolation functions

Let $f$ be a generalized affine recurrent fractal interpolation function with vertical scaling functions. In this paper, by introducing underlying local iterated function systems of $f$, we define restricted vertical scaling matrices. Then we prove the monotonicity of spectral radii of these matrices without additional conditions. We also prove the irreducibility of these matrices under the assumption that vertical scaling functions are positive. With these results, we estimate the upper and lower box dimensions of the graphs of $f$ by the limits of spectral radii of restricted vertical scaling matrices. In particular, we obtain an explicit formula of the box dimension of the graph of $f$ under certain constraint conditions.

math.CA↗

LongDocURL: a Comprehensive Multimodal Long Document Benchmark Integrating Understanding, Reasoning, and Locating

Large vision language models (LVLMs) have improved the document understanding capabilities remarkably, enabling the handling of complex document elements, longer contexts, and a wider range of tasks. However, existing document understanding benchmarks have been limited to handling only a small number of pages and fail to provide a comprehensive analysis of layout elements locating. In this paper, we first define three primary task categories: Long Document Understanding, numerical Reasoning, and cross-element Locating, and then propose a comprehensive benchmark, LongDocURL, integrating above three primary tasks and comprising 20 sub-tasks categorized based on different primary tasks and answer evidences. Furthermore, we develop a semi-automated construction pipeline and collect 2,325 high-quality question-answering pairs, covering more than 33,000 pages of documents, significantly outperforming existing benchmarks. Subsequently, we conduct comprehensive evaluation experiments on both open-source and closed-source models across 26 different configurations, revealing critical performance gaps in this field.

cs.AI↗

Electric-Field Induced Spin Wave Nonreciprocity in Noncoplanar Magnets

We show that an electric field can induce nonreciprocal spin wave dispersion in magnetic insulators with negligible spin-orbit coupling. The electric field controls the direction and magnitude of nonreciprocity through a nonlinear magnetoelectric effect without switching the magnetic ground state. By deriving spin space group symmetry constraints, we find only a subset of noncoplanar magnets exhibits this property, and identify a few candidates. For the example of hexagonal lattice tetrahedral antiferromagnet, our effective field theory analysis and microscopic model calculation yield results that are fully consistent with the symmetry analysis.

cond-mat.str-el↗

DocSAM: Unified Document Image Segmentation via Query Decomposition and Heterogeneous Mixed Learning

Document image segmentation is crucial for document analysis and recognition but remains challenging due to the diversity of document formats and segmentation tasks. Existing methods often address these tasks separately, resulting in limited generalization and resource wastage. This paper introduces DocSAM, a transformer-based unified framework designed for various document image segmentation tasks, such as document layout analysis, multi-granularity text segmentation, and table structure recognition, by modelling these tasks as a combination of instance and semantic segmentation. Specifically, DocSAM employs Sentence-BERT to map category names from each dataset into semantic queries that match the dimensionality of instance queries. These two sets of queries interact through an attention mechanism and are cross-attended with image features to predict instance and semantic segmentation masks. Instance categories are predicted by computing the dot product between instance and semantic queries, followed by softmax normalization of scores. Consequently, DocSAM can be jointly trained on heterogeneous datasets, enhancing robustness and generalization while reducing computational and storage resources. Comprehensive evaluations show that DocSAM surpasses existing methods in accuracy, efficiency, and adaptability, highlighting its potential for advancing document image understanding and segmentation across various applications. Codes are available at https://github.com/xhli-git/DocSAM.

cs.CV↗

QG-VTC: Question-Guided Visual Token Compression in MLLMs for Efficient VQA

Recent advances in Multi-modal Large Language Models (MLLMs) have shown significant progress in open-world Visual Question Answering (VQA). However, integrating visual information increases the number of processed tokens, leading to higher GPU memory usage and computational overhead. Images often contain more redundant information than text, and not all visual details are pertinent to specific questions. To address these challenges, we propose QG-VTC, a novel question-guided visual token compression method for MLLM-based VQA tasks. QG-VTC employs a pretrained text encoder and a learnable feed-forward layer to embed user questions into the vision encoder's feature space then computes correlation scores between the question embeddings and visual tokens. By selecting the most relevant tokens and softly compressing others, QG-VTC ensures fine-tuned relevance to user needs. Additionally, a progressive strategy applies this compression across different vision encoder layers, gradually reducing token numbers. This approach maximizes retention of question-relevant information while discarding irrelevant details. Experimental results show that our method achieves performance on par with uncompressed models using just 1/8 of the visual tokens. The code and model will be publicly available on GitHub.

cs.CV↗

Time-domain interferometry of electron weak localization through terahertz nonlinear response

We study theoretically the nonlinear optical response of disordered electrons in the regime of weak (anti)localization. Our analytical and numerical calculations reveal that, in orthogonal/symplectic class systems, two consecutive, phase coherent optical pulses generates an electric current echo that appears after the second pulse, and at a time equal to the pulse delay time. The current echo reflects the quantum interference between a self-intersecting electron path and its time reversal partner, and, therefore, provide a time-domain interferometry of weak (anti)localization. Our results can be potentially tested on disordered metal films by using terahertz two-dimensional coherent spectroscopy or ultrafast transport measurements.

cond-mat.mes-hall↗

Two-Stage Holistic and Contrastive Explanation of Image Classification

The need to explain the output of a deep neural network classifier is now widely recognized. While previous methods typically explain a single class in the output, we advocate explaining the whole output, which is a probability distribution over multiple classes. A whole-output explanation can help a human user gain an overall understanding of model behaviour instead of only one aspect of it. It can also provide a natural framework where one can examine the evidence used to discriminate between competing classes, and thereby obtain contrastive explanations. In this paper, we propose a contrastive whole-output explanation (CWOX) method for image classification, and evaluate it using quantitative metrics and through human subject studies. The source code of CWOX is available at https://github.com/vaynexie/CWOX.

cs.CV↗

ViT-CX: Causal Explanation of Vision Transformers

Despite the popularity of Vision Transformers (ViTs) and eXplainable AI (XAI), only a few explanation methods have been designed specially for ViTs thus far. They mostly use attention weights of the [CLS] token on patch embeddings and often produce unsatisfactory saliency maps. This paper proposes a novel method for explaining ViTs called ViT-CX. It is based on patch embeddings, rather than attentions paid to them, and their causal impacts on the model output. Other characteristics of ViTs such as causal overdetermination are also considered in the design of ViT-CX. The empirical results show that ViT-CX produces more meaningful saliency maps and does a better job revealing all important evidence for the predictions than previous methods. The explanation generated by ViT-CX also shows significantly better faithfulness to the model. The codes and appendix are available at https://github.com/vaynexie/CausalX-ViT.

cs.CV↗

Example Perplexity

Some examples are easier for humans to classify than others. The same should be true for deep neural networks (DNNs). We use the term example perplexity to refer to the level of difficulty of classifying an example. In this paper, we propose a method to measure the perplexity of an example and investigate what factors contribute to high example perplexity. The related codes and resources are available at https://github.com/vaynexie/Example-Perplexity.

cs.LG↗

Quantitative Evaluations on Saliency Methods: An Experimental Study

It has been long debated that eXplainable AI (XAI) is an important topic, but it lacks rigorous definition and fair metrics. In this paper, we briefly summarize the status quo of the metrics, along with an exhaustive experimental study based on them, including faithfulness, localization, false-positives, sensitivity check, and stability. With the experimental results, we conclude that among all the methods we compare, no single explanation method dominates others in all metrics. Nonetheless, Gradient-weighted Class Activation Mapping (Grad-CAM) and Randomly Input Sampling for Explanation (RISE) perform fairly well in most of the metrics. Utilizing a set of filtered metrics, we further present a case study to diagnose the classification bases for models. While providing a comprehensive experimental study of metrics, we also examine measuring factors that are missed in current metrics and hope this valuable work could serve as a guide for future research.

cs.AI↗

Generalized Falicov-Kimball Models

In this paper we extend the Falicov-Kimball model (FKM) to the case where the "quasi-particles" entering the FKM are not "ordinary" fermions. As an example we first discuss how the FKM can be generalized to the case with spin-dependent hopping. Afterwards we discuss several cases where the "quasi-particles" entering the FKM are Majorana fermions (extended Majorana-Falicov-Kimball Model (MFKM). Two examples of extended MFKM are discussed in detail: (i) a $p$-wave BCS superconductor on a bipartite lattice and (ii) a BCS-Anderson model. We also discuss the most general forms of extended MFKM, including a brief discussion on the case where the Majorana fermions represent spins, but not real fermion particles.

cond-mat.str-el↗

Orbital Limit and Gaussian Fluctuation Effects in Flat Band Superconductors with PseudoMagnetic Fields

In this work, we study a molecular graphene model on the top of a superconductor in the presence of pseudomagnetic fields induced by coplanar strain fields. With the pseudomagnetic fields and the attractive interaction induced from the substrate, a flat band superconductor can be achieved according to mean field analysis on the effective Hamiltonian. Based on a semiclassical approximation, we first show that the orbital limit is hugely enhanced by the pseudomagnetic fields. The physical reason is that the orbital angular momenta locking at $K$ and $K'$ valleys due to the pseudomagnetic fields suppress the orbital magnetization from external magnetic fields. Considering the vanishing band width in this system, we then study the effects of Gaussian fluctuations in both Hartree and pairing channels. We show that in the dilute limit, the phase transition is dominated by collective modes with critical temperatures much lower than the mean field results. At half filling, our method gives no corrections to the mean field critical temperatures.

cond-mat.supr-con↗