Papers
Topics
Authors
Recent
Search
2000 character limit reached

SparseServe: Hierarchical Sparse Attention in LLM Serving

Updated 14 July 2026
  • SparseServe is a sparse-serving approach for LLM inference that uses hierarchical HBM–DRAM KV management to reduce attention and cache access costs in long-context settings.
  • It employs fragmentation-aware KV transfers and dynamic page/block selection to overcome HBM capacity bottlenecks and enhance throughput.
  • The system integrates query-aware metadata, fused kernels, and layer-segmented prefill to balance sparsity aggressiveness with long-range context fidelity.

Searching arXiv for SparseServe and closely related systems to ground the article in the cited literature. tool arxiv_search {"query":"SparseServe long-context LLM serving TinyServe LServe SparseX", "max_results": 10} tool arxiv_search returned: {"result":[{"arxiv_id":"(Zhang et al., 1 Jun 2026)","title":"SparseX: Efficient Segment-Level KV Cache Sharing for Interleaved LLM Serving","authors":"Jie Zhou, Hanqi Zhu, Yixin Cao, Yukun Li, Xiaotao Fan, Weijie Su, Chengfei Lv, Wensheng Zhang, Zhenyu Zhang, Yuanjie Xie, Chengsong Huang, Xiaotao Gu, Hang Yuan, Yanghua Xiao, Yujiu Yang","abstract":"In long-context LLM serving, the prefill stage often dominates time-to-first-token and computational cost. Although Prefix Cache in vLLM/PagedAttention has been widely used to reuse identical prompt prefixes, repeated content in practical applications frequently appears as non-prefix, cross-request, cross-turn, and cross-agent segments, which makes conventional cache mechanisms insufficient. This paper presents SparseX, a segment-level KV Cache sharing method for common serving scenarios. SparseX uses contiguous token segments as reuse units and exploits Sparse-Q indices that naturally arise in KV Cache reuse workloads to estimate the key tokens that require correction. Based on this estimate, SparseX performs Sparse-KV Recomputation within a single forward pass, thereby restoring cross-segment contextual interactions under complex interleaved reuse patterns while avoiding additional models or separate preprocessing stages for token selection. SparseX further implements a full+sparse hybrid attention mode based on a layer-specific threshold: early layers retain full attention to obtain a more stable token-importance signal, and later layers switch to sparse recomputation to improve reuse quality on complex long-context tasks. We implement SparseX-vLLM on top of vLLM, integrating segment-level cache lookup, PagedAttention management, RoPE alignment, Sparse-Q token selection, and FlashAttention backends into a unified execution path. SparseX is model-agnostic, training-free, and compatible with Prefix Cache, and it provides unified support for common online serving scenarios including multi-round chat, retrieval-augmented generation (RAG), and agent workflows.","categories":"cs.CL cs.AI cs.IR","published":"2026-06-01","url":"http://arxiv.org/abs/([2606.01751](/papers/2606.01751))v1"},{"arxiv_id":"([2509.24626](/papers/2509.24626))","title":"SparseServe: Unlocking Parallelism for Dynamic Sparse Attention in Long-Context LLM Serving","authors":"Zeyu Lei, Mengtian Yang, Yuanjiayao Zhang, Bingyang Wu, Ruijie Ma, Yulian Zheng, Lei Chen, Hailin Zhang, Hang Liu, Xiaodong Wang","abstract":"Serving long-context LLMs is costly because attention computation grows linearly with context length. Dynamic sparse attention algorithms (DSAs) mitigate this by attending only to the key-value (KV) cache of critical tokens. However, with DSAs, the main performance bottleneck shifts from HBM bandwidth to HBM capacity: KV caches for unselected tokens must remain in HBM for low-latency decoding, constraining parallel batch size and stalling further throughput gains. Offloading these underutilized KV caches to DRAM could free HBM capacity, allowing larger parallel batch sizes. Yet, achieving such hierarchical HBM-DRAM storage raises new challenges, including fragmented KV cache access, HBM cache contention, and high HBM demands of hybrid batching, that remain unresolved in prior work. This paper proposes SparseServe, an LLM serving system that unlocks the parallel potential of DSAs through efficient hierarchical HBM-DRAM management. SparseServe introduces three key innovations to address the challenges mentioned above: (1) fragmentation-aware KV cache transfer, which accelerates HBM-DRAM data movement through GPU-direct loading (FlashH2D) and CPU-assisted saving (FlashD2H); (2) working-set-aware batch size control that adjusts batch sizes based on real-time working set estimation to minimize HBM cache thrashing; (3) layer-segmented prefill that bounds HBM use during prefill to a single layer, enabling efficient execution even for long prompts. Extensive experimental results demonstrate that SparseServe achieves up to 9.26x lower mean time-to-first-token (TTFT) latency and up to 3.14x higher token generation throughput compared to state-of-the-art LLM serving systems.","categories":"cs.LG cs.AR cs.DB","published":"2025-09-29","url":"http://arxiv.org/abs/([2509.24626](/papers/2509.24626))v1"},{"arxiv_id":"([2502.14866](/papers/2502.14866))","title":"LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention","authors":"Jingcheng Du, Haiyao Tang, Ruiyuan Wu, Siyuan Tang, Yixuan Mei, Yuhui Wang, Shang Yang, Yongqian Li, Yixing Fu, Huazuo Gao, Yiran Zhong, Ran Duan, Jun Wang, Haishan Lin, Yuhang Wang, Song Han","abstract":"LLMs have shown remarkable potential in processing long sequences and complex reasoning tasks, yet efficiently serving these models remains challenging due to the quadratic computational complexity of attention in the prefilling stage and the large memory footprint of the KV cache in the decoding stage. To address these issues, we introduce LServe, an efficient system that accelerates long-sequence LLM serving via hybrid sparse attention. This method unifies different hardware-friendly, structured sparsity patterns for both prefilling and decoding attention into a single framework, where computations on less important tokens are skipped block-wise. LServe demonstrates the compatibility of static and dynamic sparsity in long-context LLM attention. This design enables multiplicative speedups by combining these optimizations. Specifically, we convert half of the attention heads to nearly free streaming heads in both the prefilling and decoding stages. Additionally, we find that only a constant number of KV pages is required to preserve long-context and reasoning capabilities, irrespective of context length. We then design a hierarchical KV page selection policy that dynamically prunes KV pages based on query-centric similarity. On average, LServe accelerates LLM prefilling by up to 2.9x and decoding by 1.3-2.1x over vLLM, maintaining long-context accuracy. Code is released at https://github.com/mit-han-lab/omniserve.","categories":"cs.LG cs.CL","published":"2025-02-20","url":"http://arxiv.org/abs/([2502.14866](/papers/2502.14866))v1"},{"arxiv_id":"([2509.12211](/papers/2509.12211))","title":"[TinyServe](https://www.emergentmind.com/topics/tinyserve): Query-Aware Cache Selection for Efficient LLM Serving","authors":"Tianhao Zhang, Huiqiang Jiang, Wei Chen, Jiawei Han","abstract":"Serving LLMs efficiently remains challenging due to the high memory and latency overhead of key-value (KV) cache access during autoregressive decoding. We present TinyServe, a lightweight and extensible serving system for deploying tiny LLMs (e.g., TinyLLaMA, GPT2-345M) with support for structured KV sparsity, plugin-based token selection, and hardware-efficient attention kernels. Unlike prior simulation frameworks, TinyServe executes real-time decoding with configurable sparsity strategies and fine-grained instrumentation. To reduce decoding cost, we introduce a query-aware page selection mechanism that leverages bounding-box metadata to estimate attention relevance between the query and KV cache blocks. This enables selective KV loading with minimal overhead and no model modifications. Our fused CUDA kernel integrates page scoring, sparse memory access, and masked attention in a single pass. Experiments show that TinyServe achieves up to 3.4x speedup and over 2x memory savings with negligible accuracy drop. Additional analysis of cache reuse, page hit rate, and multi-GPU scaling confirms its practicality as an efficient system-level design for LLM training and inference research on resource-constrained hardware.","categories":"cs.CL cs.AI cs.LG","published":"2025-08-28","url":"http://arxiv.org/abs/([2509.12211](/papers/2509.12211))v1"}]} SparseServe denotes a sparse-serving approach to LLM inference centered on reducing the cost of attention and key-value (KV) cache access under long contexts. The name is used explicitly for a serving system that unlocks the parallel potential of dynamic sparse attention (DSA) through hierarchical HBM–DRAM KV management (Zhou et al., 29 Sep 2025), and related papers use the same term for query-aware KV page selection in TinyServe, unified block-sparse attention in LServe, and a SparseX-based path for segment-level KV reuse and sparse recomputation in interleaved serving (Liu et al., 28 Aug 2025, Yang et al., 20 Feb 2025, Zhang et al., 1 Jun 2026). Across these usages, SparseServe is characterized by block- or page-structured sparsity, metadata-driven selection, fused kernels, and serving-stack integration with paged KV caches such as vLLM/PagedAttention.

1. Problem formulation and performance bottlenecks

SparseServe arises from a common systems observation: long-context LLM serving is constrained not only by arithmetic complexity but by the movement, residence, and reuse of KV caches. In standard self-attention, one layer computes

S=QKT/d,P=softmax(S),O=PV.S = QK^{T}/\sqrt{d}, \qquad P=\mathrm{softmax}(S), \qquad O = PV.

For autoregressive decoding, each new query must attend over prior keys and values; for prefilling, attention remains quadratic in prompt length. LServe writes the dense per-layer complexity as O(N(S+N)HD)O(N(S+N)HD), while TinyServe emphasizes that every decoding step scans the entire historical KV cache, making decode the latency-dominant stage at long contexts (Yang et al., 20 Feb 2025, Liu et al., 28 Aug 2025).

The KV cache itself scales linearly with sequence length and model depth. TinyServe gives the per-layer memory approximation

Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,

and across NN layers

MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.

Its examples place GPT2-345M at approximately $750$ MB total KV memory for L=8L=8K in FP16, and TinyLLaMA-125M at approximately $187$ MB for L=4L=4K. LServe gives an analogous grouped-KV accounting, (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v) bytes, emphasizing that memory footprint and associated bandwidth dominate decoding latency at long sequence lengths (Liu et al., 28 Aug 2025, Yang et al., 20 Feb 2025).

A central clarification in the SparseServe literature is that sparse attention does not remove the serving problem; it changes its locus. The SparseServe system paper argues that DSAs reduce HBM bandwidth consumption for attention by selecting only critical KV blocks, but then the bottleneck shifts from HBM bandwidth to HBM capacity because unselected KV blocks are still typically retained in HBM for low-latency access. This constrains batch size and limits throughput scaling, especially in hybrid prefill/decode workloads (Zhou et al., 29 Sep 2025).

2. Hierarchical HBM–DRAM SparseServe

The most specific usage of the term refers to the hierarchical HBM–DRAM system in "SparseServe: Unlocking Parallelism for Dynamic Sparse Attention in Long-Context LLM Serving" (Zhou et al., 29 Sep 2025). Its core design treats HBM as an on-device KV cache for metadata and hot KV blocks, and DRAM as the backing store for all KV blocks. Both HBM and DRAM are organized in fixed-size blocks and managed per head to match DSA head-granular selection. SparseServe adopts the O(N(S+N)HD)O(N(S+N)HD)0 KV layout rather than O(N(S+N)HD)O(N(S+N)HD)1 so that KV data for all tokens of a head are grouped together, which aligns with per-head block selection.

The architecture addresses three explicit challenges introduced by hierarchical offloading: fragmented KV transfers, HBM cache contention under large batches, and the high HBM demands of hybrid batching during prefill. Its response is a three-part design consisting of fragmentation-aware KV transfer, working-set-aware batch size control, and layer-segmented prefill (Zhou et al., 29 Sep 2025).

Mechanism Function Reported effect
FlashH2D GPU-direct loading of many scattered DRAM blocks into HBM via UVA Consistently O(N(S+N)HD)O(N(S+N)HD)2 GB/s on A100 40 GB via PCIe Gen4
FlashD2H One contiguous cudaMemcpy to a pinned DRAM staging buffer, then CPU-thread scatter O(N(S+N)HD)O(N(S+N)HD)3 GB/s; saving fully overlapped with compute
Working-set-aware batch size control Admits requests only if aggregate working set stays within O(N(S+N)HD)O(N(S+N)HD)4 KV block loads reduced O(N(S+N)HD)O(N(S+N)HD)5 at O(N(S+N)HD)O(N(S+N)HD)6 RPS
Layer-segmented prefill Evicts finished-layer KV blocks immediately, bounding HBM use to a single layer TTFT reduction up to O(N(S+N)HD)O(N(S+N)HD)7 versus chunked prefill

FlashH2D replaces many small cudaMemcpy calls with a single GPU kernel that reads scattered host-memory blocks into HBM in parallel. FlashD2H performs the reverse path differently: one cudaMemcpy moves a contiguous KV tensor to a pinned DRAM staging buffer, after which CPU threads asynchronously scatter subranges to their destination blocks. The paper reports that memcpy-based loading delivers under O(N(S+N)HD)O(N(S+N)HD)8 GB/s, whereas FlashH2D sustains above O(N(S+N)HD)O(N(S+N)HD)9 GB/s, and that memcpy-based saving remains under Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,0 GB/s whereas FlashD2H exceeds Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,1 GB/s. It further reports that naive saving yields prefill latency of Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,2 compute time, GPU-direct saving yields Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,3, and FlashD2H reduces it to compute time by fully overlapping the save path (Zhou et al., 29 Sep 2025).

Working-set-aware control introduces a scheduler-side HBM budget. For decoding, the working set is defined as the union of KV blocks selected over the past Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,4 steps, with Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,5 by default because the overlap ratio rises steeply up to about Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,6 steps and then plateaus. Requests are admitted only when

Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,7

Layer-segmented prefill complements this policy by executing prefill in layer segments across batches, saving and evicting each finished layer’s KV blocks immediately so that only one layer’s KV footprint must remain in HBM at a time (Zhou et al., 29 Sep 2025).

3. Page- and block-level SparseServe mechanisms

A second usage of SparseServe appears in systems that express sparsity through block- or page-structured KV selection. TinyServe implements this design for tiny LLMs by partitioning the KV cache into fixed-size pages of Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,8 tokens, maintaining per-page per-head bounding-box metadata

Mlayer2LHdkb,M_{\text{layer}} \approx 2 \cdot L \cdot H \cdot d_k \cdot b,9

and estimating query-page relevance with a sign-aware upper bound

NN0

Pages are selected either by Top-K or thresholding; the paper states that Top-K is used in practice, with default NN1 and default page size NN2. Sparse attention is then computed only on the concatenated selected pages, which is equivalent to masked attention with NN3 on unselected tokens (Liu et al., 28 Aug 2025).

TinyServe’s systems contribution is not only the scoring rule but the fused execution path. Its CUDA kernel combines upper-bound scoring, shared-memory Top-K selection, sparse HBM gather, and numerically stable masked attention in one pass. Metadata remains on-chip, KV pages are laid out contiguously in HBM for coalesced loads, and FP16/FP32 mixed precision with FP32 accumulation is used for dot products and softmax. The paper characterizes this as a system-level SparseServe variant for real-time decoding with plugin-based token selection, page/block-level sparsity, head-level and layer-level control, and fine-grained instrumentation (Liu et al., 28 Aug 2025).

LServe generalizes the same design space to a unified sparse attention framework spanning both prefilling and decoding. It converts half of the attention heads into streaming heads with NN4-shaped masks that retain a sink block plus a small number of local blocks, making these heads nearly free in long contexts. For the remaining dense heads during decoding, it applies hierarchical KV page selection with logical pages and physical pages: statistics are computed at logical-page granularity, but storage remains in larger physical pages to sustain bandwidth under KV quantization. Query-centric scoring uses per-page channel-wise extrema,

NN5

and the selected top-NN6 physical pages meet a fixed token budget NN7, with reported settings such as NN8 and reuse interval NN9 for reusable page selection (Yang et al., 20 Feb 2025).

This family of mechanisms makes an important systems point. TinyServe reduces both arithmetic and HBM reads from MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.0 to MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.1 per head, while LServe states that only a constant number of KV pages is required to preserve long-context and reasoning capabilities irrespective of context length. In both cases, sparsity is hardware-friendly because work is skipped at page or block granularity rather than via irregular token-wise masking (Liu et al., 28 Aug 2025, Yang et al., 20 Feb 2025).

4. Segment-level SparseServe and SparseX-based recomputation

SparseServe is also used for a different problem: interleaved cache reuse beyond identical prefixes. SparseX begins from the observation that vLLM’s Prefix Cache reuses only identical prompt prefixes, whereas practical long-context workloads frequently contain non-prefix, cross-request, cross-turn, and cross-agent repeated segments. Its SparseServe path therefore takes contiguous token segments as reuse units, stores their multi-layer KV tensors, and identifies reusable segments using namespace-aware hashes over token IDs plus extra keys such as knowledge-base ID or user ID (Zhang et al., 1 Jun 2026).

When a cached segment is reused at a different absolute position, SparseX performs RoPE alignment by applying a position-offset rotation to Keys while copying Values unchanged. If a segment moves by offset MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.2, the aligned Key is written as

MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.3

SparseX implements this with a fused copy-Delta-RoPE kernel. The reused pages coexist with vLLM’s PagedAttention through virtual blocks, and knowledge-base pages can be pinned via frozen-block pools (Zhang et al., 1 Jun 2026).

Its distinctive selection mechanism is Sparse-Q. Let MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.4 be reused token positions and MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.5 the non-reuse positions. Sparse-Q is defined as the queries produced only at non-reuse positions, MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.6. At a boundary layer MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.7, SparseX computes attention from MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.8 to all visible Keys, aggregates global key importance as

MtotalN2LHdkb.M_{\text{total}} \approx N \cdot 2 \cdot L \cdot H \cdot d_k \cdot b.9

and selects top-$750$0 key positions for correction. The final recomputation set is

$750$1

where $750$2 is an overflow neighborhood around non-reuse boundaries and $750$3 is a tail fallback when the tail is fully reused. Later layers project $750$4 only for positions in $750$5 and run sparse attention on those queries against the full current Keys and Values (Zhang et al., 1 Jun 2026).

SparseX further uses a full+sparse hybrid attention mode. Early layers run full attention to obtain a more stable token-importance signal, and later layers switch to sparse recomputation. The reported practical schedule sets $750$6 around $750$7–$750$8 of layers depending on model size, with typical recompute fractions $750$9 driven by the reuse ratio L=8L=80 and top-L=8L=81 budget. SparseServe, in this formulation, is training-free, model-agnostic, compatible with Prefix Cache, and integrated with vLLM, FlashAttention, and FlashInfer without changing backend interface semantics (Zhang et al., 1 Jun 2026).

5. Empirical behavior and comparative results

The hierarchical HBM–DRAM SparseServe system reports the strongest concurrency-oriented gains. On LWM-7B and Llama3-8B with LongBench mixed workloads and ArkVale metadata, it achieves up to L=8L=82 lower mean TTFT and up to L=8L=83 higher token generation throughput than state-of-the-art serving systems. Over vLLM specifically, throughput improves by up to L=8L=84 on LWM-7B and L=8L=85 on Llama3-8B; over vLLM-S by up to L=8L=86 and L=8L=87; and over vLLM-SO by up to L=8L=88 and L=8L=89. Its TBT is slightly higher than vLLM but remains within $187$0 for both models, and goodput improves by up to $187$1 on LWM-7B and $187$2 on Llama3-8B under the stated SLOs (Zhou et al., 29 Sep 2025).

TinyServe emphasizes decode-time efficiency and real-time instrumentation. It reports up to $187$3 end-to-end decode speedup versus FullCache at long contexts, with typical $187$4–$187$5 improvements across TinyLLaMA-125M, GPT2-345M, OPT-350M, GPT2-774M, and LLaMA-1.3B, together with memory reductions greater than $187$6. For GPT2-345M at $187$7K context, memory drops from $187$8 GB to $187$9 GB; for TinyLLaMA-125M, from L=4L=40 GB to L=4L=41 GB. Reported accuracy changes are negligible and sometimes positive: on GPT2-345M at L=4L=42K context, LongBench-Avg improves from L=4L=43 to L=4L=44, MMLU from L=4L=45 to L=4L=46, and LAMBADA from L=4L=47 to L=4L=48. The system reports KV hit rates of about L=4L=49 for GPT2-345M and about (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)0 for TinyLLaMA-125M, near-linear throughput scaling from (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)1 to (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)2 A100 GPUs with speedup (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)3 and efficiency about (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)4, and lower multi-user latency than vLLM, TGI, and TensorRT-LLM after integration with vLLM’s PagedAttention: P50 latency (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)5 ms versus vLLM (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)6 ms, P99 (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)7 ms versus (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)8 ms, and throughput (S+N)H^D(bk+bv)\approx (S+N)\hat{H}D(b_k+b_v)9 req/s versus O(N(S+N)HD)O(N(S+N)HD)00 req/s (Liu et al., 28 Aug 2025).

LServe reports complementary gains across both serving stages. It accelerates prefilling by up to O(N(S+N)HD)O(N(S+N)HD)01 over vLLM and decoding by O(N(S+N)HD)O(N(S+N)HD)02–O(N(S+N)HD)O(N(S+N)HD)03 on average across Llama-3-8B, Minitron-4B, and Llama-2-7B, while preserving dense long-context accuracy. On LongBench, average scores remain close to dense baselines, for example O(N(S+N)HD)O(N(S+N)HD)04 versus O(N(S+N)HD)O(N(S+N)HD)05 on Llama-3-8B and O(N(S+N)HD)O(N(S+N)HD)06 versus O(N(S+N)HD)O(N(S+N)HD)07 on Llama-2-7B. On RULER at O(N(S+N)HD)O(N(S+N)HD)08K, an example for Llama-3-8B gives Dense O(N(S+N)HD)O(N(S+N)HD)09 versus LServe-8192 O(N(S+N)HD)O(N(S+N)HD)10. The paper also notes that selector overhead without reuse can exceed the attention kernel at context lengths of at least O(N(S+N)HD)O(N(S+N)HD)11K, motivating reusable page selection with O(N(S+N)HD)O(N(S+N)HD)12 (Yang et al., 20 Feb 2025).

SparseX-based SparseServe reports quality-preserving TTFT reductions in reuse-heavy workloads. On LOCOMO with Qwen3-32B, full recompute yields score O(N(S+N)HD)O(N(S+N)HD)13 and TTFT O(N(S+N)HD)O(N(S+N)HD)14 s, while SparseX with hybrid attention yields score O(N(S+N)HD)O(N(S+N)HD)15 and TTFT O(N(S+N)HD)O(N(S+N)HD)16 s. On RULER subtasks, averages for Qwen3-32B are reported as full O(N(S+N)HD)O(N(S+N)HD)17, naive reuse O(N(S+N)HD)O(N(S+N)HD)18, CacheBlend O(N(S+N)HD)O(N(S+N)HD)19, EPIC O(N(S+N)HD)O(N(S+N)HD)20, SparseX without hybrid O(N(S+N)HD)O(N(S+N)HD)21, and SparseX with hybrid O(N(S+N)HD)O(N(S+N)HD)22. Across multi-agent workflows on GSM-Hard, MATH, GPQA, AQUA-RAT, MMLU-Pro, SciBench, MedQA, and MedMCQA, it maintains quality comparable to vanilla execution, sometimes improving it, while reducing serving cost (Zhang et al., 1 Jun 2026).

6. Limitations, failure modes, and research directions

SparseServe systems share a recurrent trade-off between aggressiveness of sparsity and fidelity of long-range context. TinyServe notes that aggressive sparsity may miss rare, distant cues if O(N(S+N)HD)O(N(S+N)HD)23 is too low; larger pages and looser bounding boxes increase false positives, and while the upper-bound scoring rule makes threshold-based skipping safe against false negatives in the stated sense, approximation quality still depends on page granularity. Its ablations indicate that O(N(S+N)HD)O(N(S+N)HD)24 is the best trade-off, whereas O(N(S+N)HD)O(N(S+N)HD)25 is faster but incurs higher perplexity and lower hit-rate, and that lowering O(N(S+N)HD)O(N(S+N)HD)26 below O(N(S+N)HD)O(N(S+N)HD)27 risks accuracy drops (Liu et al., 28 Aug 2025).

LServe identifies a different failure mode: the selector itself scales linearly with the number of logical pages unless mitigated, so at very long contexts its overhead can dominate. It also notes that pathological contexts with low locality or adversarial distributions of relevant tokens can pressure a fixed KV budget O(N(S+N)HD)O(N(S+N)HD)28, that minor drops appear on some LongBench datasets such as Qasper and SamSum, and that dynamic sparsity may be counterproductive at short contexts unless disabled through offline profiling (Yang et al., 20 Feb 2025).

The hierarchical HBM–DRAM SparseServe system adds storage and scheduling caveats. Its gains diminish for small contexts or low concurrency, extreme fragmentation patterns can still saturate PCIe, very small KV blocks increase management overhead, and tight TBT SLOs may require conservative maxInjectToken settings that reduce throughput. The paper also states that accuracy depends on DSA parameters: its production setting uses token budget O(N(S+N)HD)O(N(S+N)HD)29 because, in the reported appendix summary, this preserves O(N(S+N)HD)O(N(S+N)HD)30 of full-attention accuracy for the tested models (Zhou et al., 29 Sep 2025).

SparseX-based SparseServe depends on reuse structure. If the reuse ratio O(N(S+N)HD)O(N(S+N)HD)31 is small, Sparse-Q overhead may not pay off; boundary effects at segment junctions are mitigated but not eliminated by overflow; unusual RoPE variants may require adjusted alignment kernels; and highly novel prompts may need larger O(N(S+N)HD)O(N(S+N)HD)32 or a deeper boundary layer O(N(S+N)HD)O(N(S+N)HD)33. The paper’s practical fallback strategies are to raise O(N(S+N)HD)O(N(S+N)HD)34, increase O(N(S+N)HD)O(N(S+N)HD)35, expand overflow, selectively force full attention on later layers, or enable tail fallback when the tail is fully reused (Zhang et al., 1 Jun 2026).

Taken together, these systems indicate that SparseServe is not a single algorithm but a systems pattern for sparse LLM serving. Its principal forms in the recent literature are hierarchical KV offloading for DSA parallelism, query-aware page or block selection for decode-time sparsity, and segment-level KV reuse with sparse recomputation. This suggests that future SparseServe work will continue to focus on learned or adaptive page scoring, hierarchical selectors, layer-aware budgets, learned metadata, cross-layer or cross-request KV sharing, and tighter coupling between sparse attention algorithms and serving schedulers (Zhou et al., 29 Sep 2025, Liu et al., 28 Aug 2025, Yang et al., 20 Feb 2025, Zhang et al., 1 Jun 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to SparseServe.