ZipFusion: Fusing Lossless KV Decompression with Attention for Efficient LLM Decoding
Yuetao Chen, Peng Wang, Hong Xu
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 top of FlashInfer and integrate it with SGLang. On an NVIDIA H100, ZipFusion achieves about 1.25x 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.76x the throughput of the best-performing lossless KV cache compression baseline.
Create a lesson
Related papers
BitLLM: Efficient Low-Bit, Conversion-Hiding LLM Decoding on Mobile GPUs
Shared title terminology · Hangyu Zheng, Zhihao Shu, Kunxiong Zhu et al.
A Hybrid GPU and Processing-Near-Memory Architecture with Shared DRAM for Efficient Prefill-Decode Disaggregation
Shared title terminology · Sanghyeok Han, Inseong Choi, Byungkuk Yoon et al.
FOREST: Coordinating Tree-based HBF, RRAM, and HBM for Efficient Speculative LLM Inference
Shared title terminology · Hao Ding, Zheng Shi, Dongxue Zhao et al.
Acceleration of Sparse and Irregular Workloads through Energy-Efficient Stream Extensions
Shared title terminology · Paul Scheffler
Splice-Core: Low-Order-Bit-Splicing GEMM for Highly Energy-Efficient AI Inference Accelerators
Shared title terminology · Prabhu Vellaisamy, Hsien-Fu Hung, Andrew Kim et al.
Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration
Shared title terminology · Yicheng He, Yuqi Xue, Tianyang Wu et al.