SearcharxivSearch

arXiv subjects

Yanqi Zhang

Publications and source records attributed to Yanqi Zhang.

At least 19 recordsLinked to original sources

You Only Index Once: Cross-Layer Sparse Attention with Shared Routing

Long-context inference in modern LLMs is increasingly constrained by decoding efficiency, especially in reasoning-heavy settings where models generate long intermediate chains of thought. Existing sparse attention methods often face a practical efficiency-quality trade-off. Structured block sparse methods typically provide stronger acceleration but incur noticeable quality loss, while token sparse methods are usually more accurate yet deliver limited end-to-end speedup because top-k routing over the full cache remains expensive. In this work, we propose cross-layer sparse attention (CLSA), which is built on top of KV-sharing architectures such as YOCO. The core idea is to share not only the KV cache across cross-decoder layers, but also the routing index. A single indexer computes token-level top-k selection once and reuses the resulting index across layers, thereby preserving the fine-grained selectivity of token sparse attention while amortizing the routing overhead. The resulting architecture improves all major inference bottlenecks jointly, including pre-filling, KV-cache storage, and long-context decoding. Experiments across short-context and long-context benchmarks show that CLSA is both accurate and efficient, achieving up to 7.6x decoding speedup and 17.1x overall throughput improvement at 128K context. These results suggest a more complete architectural solution for long-context LLMs that jointly advances model quality and inference efficiency.

cs.CL

Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving

Long-context LLM serving is bottlenecked by the cost of attending over ever-growing KV caches. Dynamic sparse attention promises relief by accessing only a small, query-dependent subset of the KV state per decoding step and extending the KV storage to CPU memory. In practice, however, these algorithmic savings rarely translate into end-to-end system-level gains because sparse methods typically operate at different granularities and thus rely on ad hoc, per-algorithm implementations. At the same time, hierarchical KV storage introduces a new systems bottleneck: retrieving fine-grained, irregular KV subsets across the GPU-CPU boundary can easily erase the benefits of sparsity. We present SPIN, a sparse-attention-aware inference framework that co-designs the execution pipeline with hierarchical KV storage through three techniques: (1) a unified partition abstraction that maps different sparsity granularities onto a shared page-based KV substrate; (2) a locality-aware KV cache manager that dynamically sizes per-request HBM budgets and uses a GPU-friendly bucketed LRU policy to cut PCIe round-trips; and (3) a two-level hierarchical metadata layout sized to the active working set rather than the worst-case address space. Built on vLLM with three representative sparse attention algorithms, SPIN delivers 1.66-5.66x higher end-to-end throughput and 7-9x lower TTFT than vLLM, and reduces TPOT by up to 58% over the original sparse-attention implementations.

cs.LG

Contrast-Space Projection for Network Meta-Analysis: An Exact and Invariant Study-Based Decomposition of Direct and Indirect Contributions

Network meta-analysis (NMA) combines direct and indirect comparisons across a treatment network, but exact contribution decompositions that reproduce NMA estimates are lacking, especially for multi-arm trials with correlated contrasts. We develop a contrast-space projection formulation of NMA that expresses the estimator as a linear mapping of observed pairwise contrasts onto the consistency-constrained contrast space. Building on this representation, we define direct and indirect evidence through a canonical within-study reduction that removes algebraic redundancy and yields a unique, invariant study-level decomposition. The resulting covariance-aware weights exactly reconstruct the NMA estimator and can be further resolved into indirect path-level components. Under fixed effects, the same projection also represents the generalized Cochran Q decomposition into within-design heterogeneity and between-design inconsistency. The framework yields diagnostic and graphical tools, including forest plots, tension plots, and path-based visualizations. Applications to empirical networks illustrate how the approach provides a reproducible and interpretable account of evidence contributions in NMA.

stat.ME

DiffKV: Differentiated Memory Management for Large Language Models with Parallel KV Compaction

Large language models (LLMs) demonstrate remarkable capabilities but face substantial serving costs due to their high memory demands, with the key-value (KV) cache being a primary bottleneck. State-of-the-art KV cache compression techniques, such as quantization and pruning, apply uniform treatment to both keys and values, and discard unimportant tokens entirely, overlooking the fine-grained distinctions in the significance of individual KV cache components. To address such limitations, we introduce \textit{DiffKV}, a novel framework for efficient KV cache compression that exploits three levels of differentiation in the KV cache: (1) the differing impact of keys and values on attention computation, (2) the varying importance of tokens, and (3) the diverse dynamic sparsity patterns across attention heads. These levels of differentiation introduce irregular memory usage patterns across different requests and attention heads, posing significant scalability challenges for memory management. To address these challenges, DiffKV proposes an on-GPU memory manager that compacts fragmented free memory list into contiguous regions in parallel, effectively translating sparsity in the KV cache into performance gains. We evaluate DiffKV on several mainstream LLMs, including the emerging thinking models that generate extended chains of thought. DiffKV is able to compress the KV cache by $2.7\times$ to $5.7\times$ with near-lossless accuracy on complex workloads requiring sophisticated reasoning and long-generation capabilities, and enhances throughput by $1.9\times$ to $5.4\times$. Source codes of DiffKV are available at https://github.com/zyqCSL/DiffKV.

cs.LG

ChipExpert: The Open-Source Integrated-Circuit-Design-Specific Large Language Model

The field of integrated circuit (IC) design is highly specialized, presenting significant barriers to entry and research and development challenges. Although large language models (LLMs) have achieved remarkable success in various domains, existing LLMs often fail to meet the specific needs of students, engineers, and researchers. Consequently, the potential of LLMs in the IC design domain remains largely unexplored. To address these issues, we introduce ChipExpert, the first open-source, instructional LLM specifically tailored for the IC design field. ChipExpert is trained on one of the current best open-source base model (Llama-3 8B). The entire training process encompasses several key stages, including data preparation, continue pre-training, instruction-guided supervised fine-tuning, preference alignment, and evaluation. In the data preparation stage, we construct multiple high-quality custom datasets through manual selection and data synthesis techniques. In the subsequent two stages, ChipExpert acquires a vast amount of IC design knowledge and learns how to respond to user queries professionally. ChipExpert also undergoes an alignment phase, using Direct Preference Optimization, to achieve a high standard of ethical performance. Finally, to mitigate the hallucinations of ChipExpert, we have developed a Retrieval-Augmented Generation (RAG) system, based on the IC design knowledge base. We also released the first IC design benchmark ChipICD-Bench, to evaluate the capabilities of LLMs across multiple IC design sub-domains. Through comprehensive experiments conducted on this benchmark, ChipExpert demonstrated a high level of expertise in IC design knowledge Question-and-Answer tasks.

cs.AR

Analytically-Driven Resource Management for Cloud-Native Microservices

Resource management for cloud-native microservices has attracted a lot of recent attention. Previous work has shown that machine learning (ML)-driven approaches outperform traditional techniques, such as autoscaling, in terms of both SLA maintenance and resource efficiency. However, ML-driven approaches also face challenges including lengthy data collection processes and limited scalability. We present Ursa, a lightweight resource management system for cloud-native microservices that addresses these challenges. Ursa uses an analytical model that decomposes the end-to-end SLA into per-service SLA, and maps per-service SLA to individual resource allocations per microservice tier. To speed up the exploration process and avoid prolonged SLA violations, Ursa explores each microservice individually, and swiftly stops exploration if latency exceeds its SLA. We evaluate Ursa on a set of representative and end-to-end microservice topologies, including a social network, media service and video processing pipeline, each consisting of multiple classes and priorities of requests with different SLAs, and compare it against two representative ML-driven systems, Sinan and Firm. Compared to these ML-driven approaches, Ursa provides significant advantages: It shortens the data collection process by more than 128x, and its control plane is 43x faster than ML-driven approaches. At the same time, Ursa does not sacrifice resource efficiency or SLAs. During online deployment, Ursa reduces the SLA violation rate by 9.0% up to 49.9%, and reduces CPU allocation by up to 86.2% compared to ML-driven approaches.

cs.DC

Optical Truss Interferometer for the LISA Telescope

The LISA telescopes must exhibit an optical path length stability of $\frac{\mathrm{pm}}{\sqrt{\mathrm{Hz}}}$ in the mHz observation band to meet mission requirements. The optical truss interferometer is a proposed method to aid in the ground testing of the telescopes, as well as a risk-mitigation plan for the flight units. This consists of three Fabry-Perot cavities mounted to the telescope which are used to monitor structural displacements. We have designed and developed a fiber-based cavity injection system that integrates fiber components, mode-matching optics, and a cavity input mirror into a compact input stage. The input stages, paired with return mirror stages, can be mounted to the telescope to form the optical truss cavities. We performed a thorough sensitivity analysis using various simulation methods to support the fabrication and assembly of three first-generation prototype cavities, each of which exhibited a satisfactory performance based on our models.

physics.optics

QoS-Aware Resource Management for Multi-phase Serverless Workflows with Aquatope

Multi-stage serverless applications, i.e., workflows with many computation and I/O stages, are becoming increasingly representative of FaaS platforms. Despite their advantages in terms of fine-grained scalability and modular development, these applications are subject to suboptimal performance, resource inefficiency, and high costs to a larger degree than previous simple serverless functions. We present Aquatope, a QoS-and-uncertainty-aware resource scheduler for end-to-end serverless workflows that takes into account the inherent uncertainty present in FaaS platforms, and improves performance predictability and resource efficiency. Aquatope uses a set of scalable and validated Bayesian models to create pre-warmed containers ahead of function invocations, and to allocate appropriate resources at function granularity to meet a complex workflow's end-to-end QoS, while minimizing resource cost. Across a diverse set of analytics and interactive multi-stage serverless workloads, Aquatope significantly outperforms prior systems, reducing QoS violations by 5x, and cost by 34% on average and up to 52% compared to other QoS-meeting methods.

cs.DC

Optomechanical cooling and inertial sensing at low frequencies

An inertial sensor design is proposed in this paper to achieve high sensitivity and large dynamic range in the sub-Hz frequency regime. High acceleration sensitivity is obtained by combining optical cavity readout systems with monolithically fabricated mechanical resonators. A high-sensitivity heterodyne interferometer simultaneously monitors the test mass with an extensive dynamic range for low-stiffness resonators. The bandwidth is tuned by optical feedback cooling to the test mass via radiation pressure interaction using an intensity-modulated laser. The transfer gain of the feedback system is analyzed to optimize system parameters towards the minimum cooling temperature that can be achieved. To practically implement the inertial sensor, we propose a cascaded cooling mechanism to improve cooling efficiency while operating at low optical power levels. The overall system layout presents an integrated design that is compact and lightweight.

quant-ph

A characterization method for low-frequency environmental noise in LIGO

We present a method to characterize the noise in ground-based gravitational-wave observatories such as the Laser Gravitational-Wave Observatory (LIGO). This method uses linear regression algorithms such as the least absolute shrinkage and selection operator (LASSO) to identify noise sources and analyzes the detector output versus noise witness sensors to quantify the coupling of such noise. Our method can be implemented with currently available resources at LIGO, which avoids extra coding or direct experimentation at the LIGO sites. We present two examples to validate and estimate the coupling of elevated ground motion at frequencies below 10 Hz with noise in the detector output.

astro-ph.IM

Investigation and mitigation of noise contributions in a compact heterodyne interferometer

We present a noise estimation and subtraction algorithm capable of increasing the sensitivity of heterodyne laser interferometers by one order of magnitude. The heterodyne interferometer is specially designed for dynamic measurements of a test mass in the application of sub-Hz inertial sensing. A noise floor of 3.31E-11 m/rtHz at 100mHz is achieved after applying our noise subtraction algorithm to a benchtop prototype interferometer that showed a noise level of 2.76E-10 m/rtHz at 100mHz when tested in vacuum at levels of 3E-5 Torr. Based on the previous results, we investigated noise estimation and subtraction techniques of non-linear optical pathlength noise, laser frequency noise, and temperature fluctuations in heterodyne laser interferometers. For each noise source, we identified its contribution and removed it from the measurement by linear fitting or a spectral analysis algorithm. The noise correction algorithm we present in this article can be generally applied to heterodyne laser interferometers.

physics.ins-det

Quasi-monolithic heterodyne laser interferometer for inertial sensing

We present a compact heterodyne laser interferometer developed for high-sensitivity displacement sensing applications. This interferometer consists of customized prisms and waveplates assembled as a quasi-monolithic unit to realize a miniaturized system. The interferometer design adopts a common-mode rejection scheme to provide a high rejection ratio to common environmental noise. Experimental tests in vacuum show a displacement sensitivity level of 11 pm/rtHz at 100mHz, and as low as 0.6pm/rtHz above 1Hz. The prototype unit has a size of 20mm X 20mm X 10mm and weighs 4.5 grams, which allows subsequent integration into compact systems.

physics.ins-det

Fiber-based two-wavelength heterodyne laser interferometer

Displacement measuring interferometry is a crucial component in metrology applications. In this paper, we propose a fiber-based two-wavelength heterodyne interferometer as a compact and highly sensitive displacement sensor that can be used in inertial sensing applications. In the proposed design, two individual heterodyne interferometers are constructed using two different wavelengths, 1064 nm and 1055 nm; one of which measures the target displacement and the other monitors the common-mode noise in the fiber system. A narrow-bandwidth spectral filter separates the beam paths of the two interferometers, which are highly common and provide a high rejection ratio to the environmental noise. The preliminary test shows a sensitivity floor of 7.5pm/rtHz at 1Hz when tested in an enclosed chamber. We also investigated the effects of periodic errors due to imperfect spectral separation on the displacement measurement and propose algorithms to mitigate these effects.

physics.optics

Optomechanical accelerometers for geodesy

We present a novel optomechanical inertial sensor for low frequency applications and corresponding acceleration measurements. This sensor has a resonant frequency of 4.7Hz, a mechanical quality factor of 476k, a test mass of 2.6 gram, and a projected noise floor of approximately 5E-11 m s-2. per root-Hz at 1Hz. Such performance, together with its small size, low weight, reduced power consumption, and low susceptibility to environmental variables such as magnetic field or drag conditions makes it an attractive technology for future geodesy missions. In this paper, we present an experimental demonstration of low-frequency ground seismic noise detection by direct comparison with a commercial seismometer, anda data analysis algorithms for the identification, characterization, and correction of several noise sources.

physics.geo-ph

Sinan: Data Driven Resource Management for Cloud Microservices

Cloud applications are increasingly shifting to interactive and loosely-coupled microservices. Despite their advantages, microservices complicate resource management, due to inter-tier dependencies. We present Sinan, a cluster manager for interactive microservices that leverages easily-obtainable tracing data instead of empirical decisions, to infer the impact of a resource allocation on on end-to-end performance, and allocate appropriate resources to each tier. In a preliminary evaluation of Sinan with an end-to-end social network built with microservices, we show that Sinan's data-driven approach, allows the service to always meet its QoS without sacrificing resource efficiency.

cs.DC

Sinan: Data-Driven, QoS-Aware Cluster Management for Microservices

Cloud applications are increasingly shifting from large monolithic services, to large numbers of loosely-coupled, specialized microservices. Despite their advantages in terms of facilitating development, deployment, modularity, and isolation, microservices complicate resource management, as dependencies between them introduce backpressure effects and cascading QoS violations. We present Sinan, a data-driven cluster manager for interactive cloud microservices that is online and QoS-aware. Sinan leverages a set of scalable and validated machine learning models to determine the performance impact of dependencies between microservices, and allocate appropriate resources per tier in a way that preserves the end-to-end tail latency target. We evaluate Sinan both on dedicated local clusters and large-scale deployments on Google Compute Engine (GCE) across representative end-to-end applications built with microservices, such as social networks and hotel reservation sites. We show that Sinan always meets QoS, while also maintaining cluster utilization high, in contrast to prior work which leads to unpredictable performance or sacrifices resource efficiency. Furthermore, the techniques in Sinan are explainable, meaning that cloud operators can yield insights from the ML models on how to better deploy and design their applications to reduce unpredictable performance.

cs.DC

A compact high-precision periodic-error-free heterodyne interferometer

We present the design, bench-top setup, and experimental results of a compact heterodyne interferometer that achieves picometer-level displacement sensitivities in air over frequencies above 100 mHz. The optical configuration with spatially separated beams prevents frequency and polarization mixing, and therefore eliminates periodic errors. The interferometer is designed to maximize common-mode optical laser beam paths to obtain high rejection of environmental disturbances, such as temperature fluctuations and acoustics. The results of our experiments demonstrate the short- and long-term stabilities of the system during stationary and dynamic measurements. In addition, we provide measurements that compare our interferometer prototype with a commercial system, verifying our higher sensitivity of 3\,pm, higher thermal stability by a factor of two, and periodic-error-free performance.

physics.ins-det

uqSim: Scalable and Validated Simulation of Cloud Microservices

Current cloud services are moving away from monolithic designs and towards graphs of many loosely-coupled, single-concerned microservices. Microservices have several advantages, including speeding up development and deployment, allowing specialization of the software infrastructure, and helping with debugging and error isolation. At the same time they introduce several hardware and software challenges. Given that most of the performance and efficiency implications of microservices happen at scales larger than what is available outside production deployments, studying such effects requires designing the right simulation infrastructures. We present uqSim, a scalable and validated queueing network simulator designed specifically for interactive microservices. uqSim provides detailed intra- and inter-microservice models that allow it to faithfully reproduce the behavior of complex, many-tier applications. uqSim is also modular, allowing reuse of individual models across microservices and end-to-end applications. We have validated uqSim both against simple and more complex microservices graphs, and have shown that it accurately captures performance in terms of throughput and tail latency. Finally, we use uqSim to model the tail at scale effects of request fanout, and the performance impact of power management in latency-sensitive microservices.

cs.DC