arXiv ScienceSearch

arXiv subjects

Weiyi Sun

Publications and source records attributed to Weiyi Sun.

18 recordsLinked to original sources

MXAttention: Data-Free Optimal Scaling and Pre-Normalization Quantization for MXFP4 Attention

The quadratic cost of attention is a major bottleneck in diffusion-based video generation models. MXFP4 attention provides a promising path toward efficient inference, but direct MXFP4 quantization often degrades generation quality due to two numerical issues: the clipping-underflow trade-off from power-of-two scaling and the row-wise normalization error introduced in the softmax loop. We propose MXAttention, a data-free post-training quantization framework for MXFP4 attention. MXAttention introduces two components: Universal Optimal Scaling (UOS), which exploits the periodic structure of power-of-two microscaling to derive a distribution-independent optimal scaling boundary Qmax=7.25 without calibration or search, and Pre-Normalization Quantization (PNQ), which quantizes unnormalized softmax exponentials before row-wise summation to preserve normalization by construction. Experiments on Wan2.2 and HunyuanVideo show that MXAttention closes at least 95% of the VBench Imaging Quality gap between OCP MXFP4 and FP16, substantially improves frame-level similarity, and preserves FP16-level generation quality with less than 0.01 absolute degradation on all reported VBench metrics. MXAttention also achieves performance competitive with strong NVFP4-based baselines with negligible overhead when fused into the attention pipeline. The implementation is publicly available in MindIE-SD.

cs.LG

GSM-SEM: Benchmark and Framework for Generating Semantically Variant Augmentations

Benchmarks like GSM8K are popular measures of mathematical reasoning, but leaderboard gains can overstate true capability due to memorization of fixed test sets. Most robustness variants apply surface-level perturbations (paraphrases, renamings, number swaps, distractors) that largely preserve the underlying facts, and static releases can themselves become memorization targets over time. We introduce GSM-SEM, a reusable and stochastic framework for generating semantically diverse benchmark variants with substantially higher semantic variance than prior approaches. GSM-SEM perturbs problem statements by modifying entities, attributes, and/or relationships, frequently altering underlying facts and requiring models to recompute solutions under new conditions, while constraining generation to preserve the original calculations/answer and approximate problem difficulty. GSM-SEM generates fresh variants on each run without requiring re-annotation, reducing reliance on static public benchmarks for evaluation and thereby lowering the bias of memorization. We apply GSM-SEM on GSM8K and two existing variation suites (GSM-Symbolic and GSM-Plus), producing GSM8K-SEM, GSM-Symbolic-SEM, and GSM-Plus-SEM. Evaluating 14 SOTA LLMs, we observe consistent performance drops with larger decline when semantic perturbations are coupled with symbolic/plus variations (average drop rate 28% in maximum strictness configuration of GSM-SEM). We publicly release the three SEM variants as fully human-validated datasets. Finally, to demonstrate applicability beyond GSM-style math problems, we apply GSM-SEM to additional benchmarks including BigBenchHard, LogicBench, and NLR-BIRD.

cs.CL

JTPRO: A Joint Tool-Prompt Reflective Optimization Framework for Language Agents

Large language model (LLM) agents augmented with external tools often struggle as number of tools grow large and become domain-specific. In such settings, ambiguous tool descriptions and under-specified agent instructions frequently lead to tool mis-selection and incorrect slot/value instantiation. We hypothesize that this is due to two root causes: generic, one-size-fits-all prompts that ignore tool-specific nuances, and underspecified tool schemas that lack clear guidance on when and how to use each tool and how to format its parameters. We introduce Joint Tool-Prompt Reflective Optimization (JTPRO), a framework for improving tool-calling reliability in trace-supervised settings by iteratively using rollout-driven reflection to co-optimize global instructions and per-tool schema/argument descriptions for accurate tool selection and argument instantiation in large tool inventories. JTPRO is designed to preserve only tool-local cues needed for correct disambiguation and slot filling. We evaluate JTPRO across multi-tool benchmarks, which account for different number of tools using three metrics: Tool Selection Accuracy (TSA), Slot Filling Accuracy(SFA), and Overall Success Rate(OSR) (correct tool + correct slots + correct values). JTPRO consistently outperforms strong baselines, including CoT-style agents, and reflective prompt optimizers such as GEPA by 5%-20% (relative) on OSR. Ablations show that joint optimization of instructions and tool schemas is more effective and robust than optimizing either component in isolation.

cs.AI

MT-OSC: Path for LLMs that Get Lost in Multi-Turn Conversation

Large language models (LLMs) suffer significant performance degradation when user instructions and context are distributed over multiple conversational turns, yet multi-turn (MT) interactions dominate chat interfaces. The routine approach of appending full chat history to prompts rapidly exhausts context windows, leading to increased latency, higher computational costs, and diminishing returns as conversations extend. We introduce MT-OSC, a One-off Sequential Condensation framework that efficiently and automatically condenses chat history in the background without disrupting the user experience. MT-OSC employs a Condenser Agent that uses a few-shot inference-based Condenser and a lightweight Decider to selectively retain essential information, reducing token counts by up to 72% in 10-turn dialogues. Evaluated across 13 state-of-the-art LLMs and diverse multi-turn benchmarks, MT-OSC consistently narrows the multi-turn performance gap - yielding improved or preserved accuracy across datasets while remaining robust to distractors and irrelevant turns. Our results establish MT-OSC as a scalable solution for multi-turn chats, enabling richer context within constrained input spaces, reducing latency and operational cost, while balancing performance.

cs.CL

DiffuMask: Diffusion Language Model for Token-level Prompt Pruning

In-Context Learning and Chain-of-Thought prompting improve reasoning in large language models (LLMs). These typically come at the cost of longer, more expensive prompts that may contain redundant information. Prompt compression based on pruning offers a practical solution, yet existing methods rely on sequential token removal which is computationally intensive. We present DiffuMask, a diffusion-based framework integrating hierarchical shot-level and token-level pruning signals, that enables rapid and parallel prompt pruning via iterative mask prediction. DiffuMask substantially accelerates the compression process via masking multiple tokens in each denoising step. It offers tunable control over retained content, preserving essential reasoning context and achieving up to 80\% prompt length reduction. Meanwhile, it maintains or improves accuracy across in-domain, out-of-domain, and cross-model settings. Our results show that DiffuMask provides a generalizable and controllable framework for prompt compression, facilitating faster and more reliable in-context reasoning in LLMs.

cs.CL

Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth

Transformers have become the foundational architecture for a broad spectrum of sequence modeling applications, underpinning state-of-the-art systems in natural language processing, vision, and beyond. However, their theoretical limitations in discrete reasoning tasks, such as arithmetic, logical inference, and algorithmic composition, remain a critical open problem. In this survey, we synthesize recent studies from three theoretical perspectives: circuit complexity, approximation theory, and communication complexity, to clarify the structural and computational barriers that transformers face when performing symbolic computations. By connecting these established theoretical frameworks, we provide an accessible and unified account of why current transformer architectures struggle to implement exact discrete algorithms, even as they excel at pattern matching and interpolation. We review key definitions, seminal results, and illustrative examples, highlighting challenges such as depth constraints, difficulty approximating discontinuities, and bottlenecks in inter-token communication. Finally, we discuss implications for model design and suggest promising directions for overcoming these foundational limitations.

cs.CL

Can LLMs Narrate Tabular Data? An Evaluation Framework for Natural Language Representations of Text-to-SQL System Outputs

In modern industry systems like multi-turn chat agents, Text-to-SQL technology bridges natural language (NL) questions and database (DB) querying. The conversion of tabular DB results into NL representations (NLRs) enables the chat-based interaction. Currently, NLR generation is typically handled by large language models (LLMs), but information loss or errors in presenting tabular results in NL remains largely unexplored. This paper introduces a novel evaluation method - Combo-Eval - for judgment of LLM-generated NLRs that combines the benefits of multiple existing methods, optimizing evaluation fidelity and achieving a significant reduction in LLM calls by 25-61%. Accompanying our method is NLR-BIRD, the first dedicated dataset for NLR benchmarking. Through human evaluations, we demonstrate the superior alignment of Combo-Eval with human judgments, applicable across scenarios with and without ground truth references.

cs.CL

Open Agent Specification (Agent Spec): A Unified Representation for AI Agents

The proliferation of agent frameworks has led to fragmentation in how agents are defined, executed, and evaluated. Existing systems differ in their abstractions, data flow semantics, and tool integrations, making it difficult to share or reproduce workflows. We introduce Open Agent Specification (Agent Spec), a declarative language that defines AI agents and agentic workflows in a way that is compatible across frameworks, promoting reusability, portability and interoperability of AI agents. Agent Spec defines a common set of components, control and data flow semantics, and schemas that allow an agent to be defined once and executed across different runtimes. Agent Spec also introduces a standardized Evaluation harness to assess agent behavior and agentic workflows across runtimes - analogous to how HELM and related harnesses standardized LLM evaluation - so that performance, robustness, and efficiency can be compared consistently across frameworks. We demonstrate this using four distinct runtimes (LangGraph, CrewAI, AutoGen, and WayFlow) evaluated over three different benchmarks (SimpleQA Verified, $\tau^2$-Bench and BIRD-SQL). We provide accompanying toolsets: a Python SDK (PyAgentSpec), a reference runtime (WayFlow), and adapters for popular frameworks (e.g., LangGraph, AutoGen, CrewAI). Agent Spec bridges the gap between model-centric and agent-centric standardization & evaluation, laying the groundwork for reliable, reusable, and portable agentic systems.

cs.AI

Temperature Dependence of Gain and Time Resolution in LGAD Detectors

Low-Gain Avalanche Diodes (LGADs) provide moderate internal gain and time resolutions of a few tens of picoseconds, making them a key technology for ultrafast timing in high-energy physics and beyond. However, both their gain and timing characteristics vary strongly with reverse-bias voltage and temperature. This work establishes a compact analytical framework that describes multi-temperature LGAD gain and timing behavior through an equivalent representation of the gain layer. The non-uniform multiplication region is replaced by an equivalent rectangular gain layer, from which a first-order bias-compensation relation for constant gain is derived and validated. Using multi-temperature measurements of LGADs designed by IHEP and fabricated by IME, together with an independent HPK dataset, we show that the gain-voltage curve family can be reconstructed from a reference-temperature main curve, substantially reducing characterization effort. The same idea is then extended to timing by decomposing the total time resolution into jitter and intrinsic components and representing their temperature dependences as component-wise equivalent bias offsets. The resulting framework provides a function-level description of multi-temperature LGAD time-resolution curves and offers a practical tool for calibration, operation, and reduced-density characterization of LGAD-based ultrafast timing systems.

physics.ins-det

Flexible delivery of broadband, 100-fs mid-infrared pulses in the water-absorption band using hollow-core photonic crystal fibre

High quality free-space and over-fibre transmission of mid-IR light is limited by factors such as material-related absorption, diffraction, light leakage and nonlinearity. Conventional vacuum apparatus can be utilized for high-quality laser-beam delivery to address these issues, the deployment of such apparatus would, however, increase the system complexity, being detrimental to their practical applications. Here we report the successful use of evacuated hollow-core photonic crystal fibre (PCF) to flexibly transmit ultrafast mid-IR pulses over several meters, while preserving exceptional spatial, spectral and temporal fidelity. The PCF was engineered to feature a low-loss transmission band within the water absorption range, and an evacuated 5-m length was used to transmit Watt-level, 100 fs pulses centred at around 2.8 microns. A comparison between free-space transmission and air-filled PCF highlights the superior performance of the evacuated hollow-core PCF, indicating its strong suitability for the flexible delivery of sub-ps laser pulses in the mid-IR.

physics.optics

Three-stage dynamics of nonlinear pulse amplification in ultrafast mid-infrared fiber amplifier with anomalous dispersion

Nonlinear pulse amplification in optical fiber, with capability of breaking the gain-bandwidth limitation, is a key technique for high-energy, ultrafast pulse generation. In the longer wavelength region (including 1.55 {\mu}m, 2 {\mu}m and 2.8 {\mu}m) where the gain fiber has normally strong anomalous dispersion, the nonlinear amplification process over fiber exhibits more complicated dynamics than that of its 1-{\mu}m counterpart, and the underlying mechanism of the nonlinear pulse propagation process in high-gain anomalous fiber is still elusive so far. Here, we demonstrate an in-depth study on the nonlinear amplification process in high-gain ultrafast mid-infrared fiber, providing clear physical understanding on the debate of adiabatic soliton compression. We unveil that under the high-gain condition, the ultrafast pulse launched into the anomalous gain fiber experiences successively three distinct stages, named as the balance between linear and nonlinear chirp, high-order-soliton-like pulse compression and pulse splitting due to high-order effects. While a relatively-clean ultrafast pulse can be obtained immediately after the high-order-soliton-like compression stage, excessive gain fiber length could hardly enhance further the pulse peak power due to soliton splitting. Our findings can provide several critical guidelines for designing high-power ultrafast fiber amplifiers at near- and mid-infrared wavelengths.

physics.optics

Development of the strip LGAD detector with double-end readout for future colliders

The Low-Gain Avalanche Diode (LGAD) is a new silicon detector and holds wide application prospects in particle physics experiments due to its excellent timing resolution. The LGAD with a pixel size of 1.3 mm $\times$ 1.3 mm was used to construct a High Granularity Timing Detector (HGTD) in ATLAS experiments to solve the pile-up problem. Meanwhile, the Circular Electron Positron Collider (CEPC) also proposes detectors using the LGAD. However, pixel LGAD exhibits higher readout electronics density and cost, which somewhat limits the application of LGADs. To decrease the readout electronics density, the Institute of High Energy Physics (IHEP) of the Chinese Academy of Sciences has designed strip LGADs with larger areas. These strip LGADs are all 19 mm in length but with different widths of 1.0 mm, 0.5 mm, and 0.3 mm. This article provides a detailed introduction to the design parameters of these strip LGADs and tests their electrical characteristics, including leakage current, break-down voltage, depletion capacitance, etc. The timing resolution and signal-to-noise ratio of the three strip LGAD sensors were investigated using a beta source test system. The position resolution parallel to the strip direction was tested and analyzed for the first time using a pico-second laser test system. Tests have demonstrated that the timing resolution of strip LGADs can reach about 37.5 ps, and position resolution parallel to the strip direction is better than 1 mm.

physics.ins-det

Performance of AC-LGAD strip sensor designed for the DarkSHINE experiment

AC-coupled Low Gain Avalanche Detector (AC-LGAD) is a new precise detector technology developed in recent years. Based on the standard Low Gain Avalanche Detector (LGAD) technology, AC-LGAD sensors can provide excellent timing performance and spatial resolution. This paper presents the design and performance of several prototype AC-LGAD strip sensors for the DarkSHINE tracking system, as well as the electrical characteristics and spatial resolution of the prototype sensors from two batches of wafers with different $n^+$ dose.The range of spatial resolutions of 6.5$\mathrm{\mu m}$ $\sim$ 8.2$\mathrm{\mu m}$ and 8.8$\mathrm{\mu m}$ $\sim$ 12.3$\mathrm{\mu m}$ are achieved by the AC-LGAD sensors with 100$\mu m$ pitch size.

physics.ins-det

The Performance of AC-coupled Strip LGAD developed by IHEP

The AC-coupled Strip LGAD (Strip AC-LGAD) is a novel LGAD design that diminishes the density of readout electronics through the use of strip electrodes, enabling the simultaneous measurement of time and spatial information. The Institute of High Energy Physics has designed a long Strip AC-LGAD prototype with a strip electrode length of 5.7 mm and pitches of 150 $\mu m$, 200 $\mu m$, and 250 $\mu m$. Spatial and timing resolutions of the long Strip AC-LGAD are studied by pico-second laser test and beta source tests. The laser test demonstrates that spatial resolution improves as the pitch size decreases, with an optimal resolution achieved at 8.3 $\mu$m. Furthermore, the Beta source test yields a timing resolution of 37.6 ps.

physics.ins-det

Characterization of the response of IHEP-IME LGAD with shallow carbon to Gamma Irradiation

Low Gain Avalanche Detectors (LGAD) for the High-Granularity Timing Detector (HGTD) are crucial in reducing pileups in the High-Luminosity Large Hadron Collider. Numerous studies have been conducted on the bulk irradiation damage of LGADs. However, few studies have been carried out on the surface irradiation damage of LGAD sensors with shallow carbon implantation. In this paper, the IHEP-IME LGADs with shallow carbon implantation were irradiated up to 2 MGy using gamma irradiation to investigate surface damage. Important characteristic parameters, including leakage currents, breakdown voltage (BV), inter-pad resistances, and capacitances, were tested before and after irradiation. The results showed that the leakage current and BV increased after irradiation, whereas overall inter-pad resistance exhibited minimal change and remained above $10^9\ \Omega$ before and after irradiation. Capacitance was found to be less than 4.5 pF with a slight decrease in the gain layer depletion voltage (V$_{gl}$) after irradiation. No parameter affected by the inter-pad separation was observed before and after irradiation. All characteristic parameters meet the requirements of HGTD, and this design can be used to further optimization.

physics.ins-det

The performance of large-pitch AC-LGAD with different N+ dose

AC-Coupled LGAD (AC-LGAD) is a new 4D detector developed based on the Low Gain Avalanche Diode (LGAD) technology, which can accurately measure the time and spatial information of particles. The Institute of High Energy Physics (IHEP) designed a large-size AC-LGAD with a pitch of 2000~\SI{}{\micro\metre} and AC pad of 1000~\SI{}{\micro\metre}, and explored the effect of N+ layer dose on the spatial resolution and time resolution. The spatial resolution varied from 36~\SI{}{\micro\metre} to 16~\SI{}{\micro\metre} depending on N+ dose for a charge corresponding to about 12 minimum ionizing particles. The jitter component of the time resolution does not change significantly with different N+ doses, and it is about 15-17 ps measured by laser. The AC-LGAD with a low N+ dose has a large attenuation factor and better spatial resolution in the central region between pads. In these specific conditions, large signal attenuation factor and low noise level are beneficial to improve the spatial resolution of the AC-LGAD sensor.

physics.ins-det

Towards Generalizable Semantic Product Search by Text Similarity Pre-training on Search Click Logs

Recently, semantic search has been successfully applied to e-commerce product search and the learned semantic space(s) for query and product encoding are expected to generalize to unseen queries or products. Yet, whether generalization can conveniently emerge has not been thoroughly studied in the domain thus far. In this paper, we examine several general-domain and domain-specific pre-trained Roberta variants and discover that general-domain fine-tuning does not help generalization, which aligns with the discovery of prior art. Proper domain-specific fine-tuning with clickstream data can lead to better model generalization, based on a bucketed analysis of a publicly available manual annotated query-product pair da

cs.IR

Normalization of Relative and Incomplete Temporal Expressions in Clinical Narratives

We analyze the RI-TIMEXes in temporally annotated corpora and propose two hypotheses regarding the normalization of RI-TIMEXes in the clinical narrative domain: the anchor point hypothesis and the anchor relation hypothesis. We annotate the RI-TIMEXes in three corpora to study the characteristics of RI-TMEXes in different domains. This informed the design of our RI-TIMEX normalization system for the clinical domain, which consists of an anchor point classifier, an anchor relation classifier and a rule-based RI-TIMEX text span parser. We experiment with different feature sets and perform error analysis for each system component. The annotation confirmed the hypotheses that we can simplify the RI-TIMEXes normalization task using two multi-label classifiers. Our system achieves anchor point classification, anchor relation classification and rule-based parsing accuracy of 74.68%, 87.71% and 57.2% (82.09% under relaxed matching criteria) respectively on the held-out test set of the 2012 i2b2 temporal relation challenge. Experiments with feature sets reveals some interesting findings such as the verbal tense feature does not inform the anchor relation classification in clinical narratives as much as the tokens near the RI-TIMEX. Error analysis shows that underrepresented anchor point and anchor relation classes are difficult to detect. We formulate the RI-TIMEX normalization problem as a pair of multi-label classification problems. Considering only the RI-TIMEX extraction and normalization, the system achieves statistically significant improvement over the RI-TIMEX results of the best systems in the 2012 i2b2 challenge.

cs.CL