Manuscript Offprint

arXiv:2610.38210

GAAC: Lossless KV Compression for Bandwidth-Efficient LLM Inference on Personal Devices

Yipin Guo, Arun M George, Siddharth Joshi

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

Abstract

Weight-only, lossy quantization substantially reduces the storage and memory requirements for serving large language models (LLMs), but the growing key-value (KV) cache remains a bottleneck for long-context inference on personal devices. We present Group-Adaptive Additive Codec (GAAC), a lossless KV compression and serving system that exploits exponent redundancy to reduce storage and accelerate attention without introducing KV approximation. GAAC encodes BF16 exponents using calibrated per-channel base-plus-offset codes over contiguous ranges. GAAC adapts code widths across small groups while preserving KV values bit-for-bit. A fused attention kernel reconstructs KV tiles on the fly, avoiding full-cache decompression. Block-wise compression and fixed-capacity slots support incremental cache updates and paged serving. Across five tested models, GAAC achieves 1.405–1.407× lossless BF16 KV compression. We also study compression performance on low-precision tensors FP8 E4M3 caches (1.09–1.14×) and E5M2 caches (1.25–1.30×). On NVIDIA DGX Spark, GAAC accelerates decode attention at a 64K-token context by 1.19–1.27× and end-to-end W4A16 decode steps by 1.04–1.15×. In serving, it reduces resident KV memory by approximately 26% and increases aggregate throughput by 13–29% under comparable KV-memory budgets. On Apple M4, GAAC achieves 1.02–1.25× attention speedups, demonstrating portability beyond NVIDIA GPUs.

1 Introduction

Running large language models (LLMs) on personal devices requires fitting both model weights and the growing key-value (KV) cache within a limited memory budget. On personal platforms such as NVIDIA DGX Spark and Apple Silicon, decoding is typically constrained by memory bandwidth

rather than available arithmetic throughput (Dai et al., 2025). Weight-only quantization (Frantar et al., 2022; Guo et al., 2024; You et al., 2024; Guo et al., 2026) has been the common, practical solution for this setting. By reducing weight precision while retaining higher-precision activations, model storage and memory traffic from weight reads can be substantially reduced, with minimal quality.

However, shrinking the weights leaves the KV cache unchanged, increasing its relative contribution to memory consumption and decoding traffic. KV storage and memory traffic become particularly costly in long-context applications: the cache grows with sequence length, and full attention repeatedly reads the cached keys and values during generation (Hooper et al., 2024). Consequently, fitting a longer context into memory does not necessarily make processing that context fast.

KV pruning and quantization (Zhang et al., 2023; Liu et al., 2024) can reduce these costs, but introduce additional approximation and possibly performance loss (Zhang et al., 2025). For deployments already using aggressively quantized weights, this creates another source of error that requires validation across tasks and context lengths. Instead, alternative methods to reduce KV storage and bandwidth requirements with minimal impact on quality would be critical to efficient serving of LLMs.

Lossless compression offers one such method, but storage savings alone do not imply faster attention. Prior lossless compression methods exploit floating-point redundancy to reduce model weight storage (Zhang et al., 2025) or accelerate KV transfer between server GPUs (Guo and Joshi, 2026). However, accelerating long-context attention, has different needs, compressed KV must remain resident in device memory and be reconstructed on demand, avoiding full-cache decompression and its associated memory traffic. On bandwidth-constrained devices, the codec and attention kernel must therefore be co-designed to be

Figure

Figure 1: Overview of GAAC. (a) GAAC exploits the concentration of BF16 exponent values in contiguous high-frequency regions. Each group of eight exponents shares a 2-bit tag indicating 3-bit, 4-bit, or raw mode. The sign and mantissa bits of each element are stored unchanged in a single byte. Each code is an offset from a calibrated per-channel base, ci=ei−bw,ic_i = e_i - b_{w,i}. In the illustrated example, one exponent outside the 3-bit window causes the entire group g+1g+1 to use 4-bit mode. Bits per element include the sign-mantissa byte and the mode tag. (b) Compared with standard attention, GAAC reduces KV loading time by reading fewer bytes from the compressed cache, with only a small computational overhead from on-the-fly decompression. oo denotes the attention output. Example values and timelines are illustrative.

memory-layout aware.

We introduce Group-Adaptive Additive Codec (GAAC), a lossless KV compression system for bandwidth-efficient inference on personal devices. GAAC encodes BF16 exponents using short codes adapted to each channel, increasing the code width for groups that require more bits while preserving every sign, exponent, and mantissa bit. The attention kernel reconstructs KV values on demand from compressed storage, trading lightweight computation for reduced memory traffic without materializing the full decompressed cache. For serving, we compress the KV cache in blocks aligned with Tensor Core processing granularity. This supports efficient compression and memory management as new KV entries are added during decoding. Our contributions are:

  • A bandwidth-oriented lossless KV codec. We design a group-adaptive lossless BF16 KV compression method for devices with a high compute-to-memory-bandwidth ratio, balancing compact storage with efficient, bit-exact reconstruction.

  • Attention acceleration through reduced data movement. We fuse KV reconstruction with attention, reducing memory traffic and reducing attention latency, especially during long-context decoding.

  • Efficient compressed KV cache management. We design a block-wise compression strategy to minimize online encoding and decoding overhead. A slot-based memory management scheme accommodates variable-length compressed blocks within two fixed-size storage classes, enabling integration into existing LLM serving engines.

References (13)