arXiv:2610.33719cs.AROct 2026

Manuscript Offprint

arXiv:2610.33719

ZipFusion: Fusing Lossless KV Decompression with Attention for Efficient LLM Decoding

Yuetao Chen, Peng Wang, Hong Xu

Yuetao Chen

The Chinese University of Hong Kong

Peng Wang

Unaffiliated

Hong Xu

The Chinese University of Hong Kong

Abstract—The key-value (KV) cache places growing demands on GPU memory capacity and bandwidth as large language models serve longer contexts and more concurrent requests. Its footprint limits concurrency, while repeated KV reads during attention can make decoding memory-bandwidth bound. Prior lossless KV cache compression methods reduce transfers between devices but restore the uncompressed KV cache in GPU memory before attention. They therefore leave these repeated KV reads unchanged and require additional work and memory for decompression. We present ZIPFUSION, which enables attention to consume the losslessly compressed KV cache directly. ZipFusion co-designs the compression format and attention kernel to reduce the bytes read from GPU memory during attention. The kernel reconstructs the original values directly in registers using simple bit operations, avoiding a separate decompression pass and easing the memory-bandwidth bound. ZipFusion also reassigns memory freed by compression across layers to store additional KV cache. Its memory manager reserves space for ongoing generation and makes the remaining capacity available to new requests. We implement ZipFusion on the top of FlashInfer and integrate it with SGLang. On an NVIDIA H100, ZipFusion achieves about 1.25×1.25\times speedup over FlashInfer in decode attention. With 8K context, it improves model decode throughput by up to 26.3% over uncompressed SGLang under the same GPU memory budget. At each method's largest supported batch, it also delivers up to 2.76×2.76\times the throughput of the best-performing lossless KV cache compression baseline.

I. INTRODUCTION

Serving large language models (LLMs) with long contexts requires substantial GPU memory capacity and bandwidth. The key-value (KV) cache grows with context length and the number of concurrent requests, while dense attention reads the KV cache at every decoding step. Its footprint therefore limits how many requests can run together [1], and its repeated reads can limit decoding speed [2]. KV cache compression offers an opportunity to ease both constraints by reducing the amount of data stored and accessed during generation. To realize these benefits, attention must read the compressed KV cache efficiently, and the serving system must be able to use the saved memory for additional requests.

Compression methods also differ in whether they preserve the values in the KV cache. Lossy compression methods, such as quantization [3]–[5], reduce storage by approximating the values in the original KV cache. Other methods retain only selected tokens in the KV cache [6], [7]. Their effects on model quality depend on the model and workload. In long-context retrieval and question-answering experiments, Li et al. [8] find that most tested models are more sensitive to KV

Figure

Fig. 1. Instrumented decode time for lossless KV cache codecs adapted to SGLang for Llama 3.1 8B, with BF16, batch size 32, 2048 input tokens. Each bar averages six repetitions of 256 decoding steps. Percentages show the decompression share. Prefill and initial compression are outside timing.

cache quantization than to weight quantization at the same bit width. We therefore focus on lossless KV cache compression for deployments that require the values in the original KV cache to be preserved.

KV cache transfers arise both in offloaded inference [9] and in serving that separates prefill from decoding [10], [11]. Prior work uses lossless KV cache compression to reduce these transfer costs. IBP targets transfers between CPUs and GPUs, while SplitZip targets transfers between servers that process prompts and those that generate outputs [12], [13]. These approaches reduce the bytes transferred, but attention still reads the uncompressed KV cache from GPU memory after reconstruction. The repeated KV cache reads that can make decoding memory-bound therefore remain unchanged. Decompression also requires execution time and GPU memory for the restored values. Figure 1 measures this cost for three lossless codecs adapted to SGLang, each decompressing the KV cache before attention. Decompression accounts for 32.7% to 73.8% of instrumented decode time in this configuration. Using compressed KV cache directly for attention can reduce the bytes read at each decoding step. Reconstructing values within the attention kernel avoids a separate decompression pass and the need to store its uncompressed output in GPU memory. The space released by compression can then be used to admit additional requests.

We present ZIPFUSION, which enables attention to consume the losslessly compressed KV cache directly without maintaining an uncompressed copy in GPU memory. Completed KV cache pages remain compressed in GPU memory. Attention reads the compressed KV cache blocks and reconstructs the values it needs directly in registers. The KV cache manager reports the additional GPU memory made available by compression to the scheduler, allowing it to admit more requests. Keeping the KV cache compressed reduces data movement both between devices and during attention, lowers the KV cache memory footprint, and eases the memory bandwidth bottleneck during decoding.

Realizing these benefits requires addressing two challenges. First, reducing decode latency requires a lossless compression format that attention can use efficiently. The time saved by reading fewer bytes can otherwise be offset by the work needed to reconstruct values from the KV cache. We design the compression format and attention kernel together, arranging compressed keys and values to match their respective matrix computations and reconstructing values directly in registers with simple bit operations. Second, the memory saved by compression is needed both to serve additional requests and to accommodate KV cache growth for requests already running. The KV cache manager tracks how much space is available for KV cache writes as generation and compression proceed. The scheduler uses this information to admit additional requests while reserving space for ongoing generation.

We implement ZipFusion for the KV cache in the 16-bit bfloat16 (BF16) format, on the top of FlashInfer [14] for attention and SGLang [15] for the KV cache manager. We evaluate Llama 3.1 8B Instruct and Qwen3-8B on an NVIDIA H100. Across the evaluated configurations, ZipFusion achieves 1.23×1.23\times to 1.25×1.25\times speedup over FlashInfer in decode attention. With 8K inputs, it increases model decode throughput by 26.3% for Llama and 25.8% for Qwen over uncompressed SGLang. Each system uses its largest supported batch under the same GPU memory budget. Relative to the best-performing lossless KV cache compression baseline, it delivers 2.76×2.76\times throughput for Llama and 2.61×2.61\times for Qwen.

References (30)