Manuscript Offprint

arXiv:2611.01022

Jet-QSparse: Accelerating Agentic LLM Inference with 4-Bit Sparse Attention

Haozhan Tang, Hao Kang, Meng Lu, Yecheng Wu, Zerui Wang, Seokho Han, Haocheng Xi, Shuo Yang, Song Han, Han Cai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Long-horizon reasoning and agentic workloads strain KV-cache capacity and decode attention throughput. We present Jet-QSparse, a training-free method that combines compact NVFP4 cache storage with native FP4 query-key computation on Blackwell tensor cores. A dense scan scores the full key history and selects 128-token blocks for sparse FP16 value aggregation with FP32 accumulation, preserving higher precision in the output-forming step while enabling contiguous tile loads. Calibrated key centering and at most two BF16 pages per sequence and layer address quantization error; FP8 prefill uses a temporary arena while the persistent cache is packed directly from BF16 activations. Across four hybrid LLMs, a budget of 128 blocks per KV head shows no detected accuracy loss on the evaluated mathematical reasoning, coding, and agentic benchmarks, although some smaller budgets incur losses. With 64 blocks, Qwen3.8-27B achieves a 1.94×1.94\times end-to-end decode speedup over dense BF16 at 128K context and batch size 16 on one GB300, and the measured Qwen KV pools provide 2.58−2.76×2.58-2.76\times BF16's token capacity.

Figure

(a) Qwen3.6-35B-A3B

(b) Qwen3.8-27B

Area: occupied KV (% of BF16)

25% 50%

100% 150%

Left: 4K / 16K

Right: 128K / 4K

Figure 1. SWE-bench Verified accuracy (mean ± SD, three seeds) versus separate GB300 decode speedups (128K prompt/4K output, batch 8); Jet-QSparse uses N = 64. Dashed lines mark BF16 accuracy. Leaders connect memory callouts to measured points. Semicircle areas are proportional to occupied KV (% of BF16): left, 4K/16K (one run); right, 128K/4K (two runs), both at batch 8. Panels share one area scale; x-axis ranges differ. Bytes include pages, metadata, and active BF16 copies, excluding unused reservations, recurrent state, and prefill workspace.

1 INTRODUCTION

Reasoning and agentic language models process long histories of intermediate reasoning, tool outputs, and interaction. The key-value (KV) cache grows with these histories and limits the number of requests that fit on a GPU. Dense de-

code attention reads and processes the history for every generated token, increasing latency as the sequence grows. Efficient inference requires a smaller persistent cache and cheaper attention while preserving task accuracy.

KV quantization reduces the bytes stored per token (Liu et al., 2024; Hooper et al., 2024), while sparse decode reduces the data fetched and processed for each query (Tang et al., 2024; Ribar et al., 2024; Yuan et al., 2026). Blackwell supports native NVFP4 computation: packed 4-bit operands reduce memory traffic and feed block-scaled tensor-core

1^{1}Carnegie Mellon University 2^{2}Virginia Tech 3^{3}Massachusetts Institute of Technology 4^{4}NVIDIA 5^{5}Sungkyunkwan University 6^{6}University of California, Berkeley. Correspondence to: Han Cai hcai@nvidia.com.

Preprint.

operations (NVIDIA, 2025b; Du et al., 2026). An efficient attention method must coordinate the precision used to score keys, the blocks selected for value aggregation, and the layout used to fetch them. Selection adds work, irregular accesses can limit hardware utilization, and errors from quantization and sparsification must be evaluated together.

Jet-QSparse combines compact NVFP4 storage and dense native FP4 scoring with sparse higher-precision aggregation in a simple, training-free design. Its NVFP4 cache retains the complete token history. At each decode step, native FP4 query-key computation scores every key and estimates block attention masses. Query-dependent selection restricts the output-forming PV product to selected blocks, using FP16 operands and FP32 accumulation. Calibrated key centering and BF16 copies of the first and current blocks address quantization error within two pages per sequence and layer.

We group 128 consecutive tokens per cache page to align selection with contiguous memory loads and tensor-core tiles. Query heads sharing a KV head reuse selected blocks, and selection executes on the GPU within CUDA graphs. Prepacked scales feed native QK computation, and pure decode steps fuse query packing with cache writes. The implementation integrates into a production serving engine. Prefill uses FP8 attention while the persistent NVFP4 cache is packed directly from BF16 activations.

We study sparsification under quantization through attention-output analysis, dense NVFP4 controls, and block-budget sweeps. The analysis relates selection error to omitted mass and the gap between selected and omitted value averages. Long-context diagnostics show that aggressive sparsity can impair aggregation over distributed evidence while largely preserving needle retrieval; agentic tests reveal model-dependent failure patterns. These findings motivate evaluating precision and sparsity together at the task level.

We evaluate Jet-QSparse on Qwen3.6-35B-A3B, Qwen3.8-27B, Nemotron 3 Nano, and Nemotron 3.5 Lightning. These hybrid models span different generations, dense or mixture-of-experts (MoE) feedforward layers, and different proportions of full-attention layers. We also deploy Qwen3.8-2.4T-A95B across eight nodes. On the two Qwens, the measured cache pools provide 2.58–2.76× the KV-token capacity of dense BF16 under the same allocation policy. At 128K context and batch size eight on one GB300, 64 selected blocks per KV head accelerate Qwen3.8-27B and Qwen3.6-35B-A3B decode by 1.53× and 1.32× over dense BF16, respectively. Every compared method fits this workload. Both configurations show no detected accuracy loss on five reasoning, coding, and agentic benchmarks at the evaluation's statistical resolution; a 128-block budget meets this criterion across all four models. Figure 1 compares speed, accuracy, and occupied KV memory at this shared budget.

Smaller budgets incur losses on some model–benchmark pairs, which we report alongside the performance gains.

Our contributions are:

  1. We introduce Jet-QSparse, a simple, training-free attention method that combines compact NVFP4 storage and native low-precision scoring with sparse higher-precision aggregation. Its block-based cache aligns selection with contiguous memory access and tensor-core execution, enabling faster decoding and lower KV memory use within a production serving engine.

  2. We systematically study the additional error from sparsifying quantized attention and its effects on long-context and agentic tasks. We relate selection error to omitted mass and value differences, and use Jet-QSparse's dense NVFP4 controls and budget sweeps to examine task sensitivity and model-dependent failure patterns.

  3. We evaluate Jet-QSparse across Qwen and Nemotron model families on mathematical reasoning, coding, and agentic benchmarks, demonstrating decode speedups and increased KV capacity. A 128-block budget shows no detected accuracy loss on the five application benchmarks across all four models, and we extend the evaluation to a 2.4T-parameter model with 95B active parameters.

References (74)