Abstract

KV caches are a major bottleneck in long-context inference and long-form generation with large language models. Existing training-free eviction policies largely rely on proxy importance signals, such as attention mass, to decide which past tokens to retain. We argue that cache compression should instead preserve the predictive behavior of the full-cache model, retaining entries whose removal would substantially change the model's output distribution. We propose Behavior-Preserving KV Cache Compression, a training-free framework that scores candidate evictions by estimating the compressed-cache logits induced by their removal and evaluating the resulting KL to the full-cache next-token distribution. Using pre-eviction forward statistics, the method avoids running separate masked forward passes for each candidate. Across diverse architectures and both prefill-time and generation-time compression, our method delivers substantial gains in downstream task quality over lightweight attention-based heuristics at matched retained-KV budgets, with the largest gains under aggressive compression. It achieves these gains with additional compression-time computation while retaining an end-to-end speedup over full-cache inference in our evaluated settings.

Keywords

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Hwang, D. H., Jang, J., Na, J., Lim, H., & Kim, K. E. (2026). Behavior-Preserving KV Cache Compression. https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression

MLA 9

Hwang, Doo Hwan, et al. "Behavior-Preserving KV Cache Compression." https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression.

Chicago (author–date)

Hwang, Doo Hwan, Junyoung Jang, Junho Na, Hosung Lim, and Kee-Eung Kim. 2026. "Behavior-Preserving KV Cache Compression." https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression.

Harvard

Hwang, D. H., Jang, J., Na, J., Lim, H. and Kim, K. E. (2026) 'Behavior-Preserving KV Cache Compression', Available at: https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression.

Vancouver

Hwang DH, Jang J, Na J, Lim H, Kim KE. Behavior-Preserving KV Cache Compression. https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression

IEEE

D. H. Hwang, J. Jang, J. Na, H. Lim, and K. E. Kim, "Behavior-Preserving KV Cache Compression," https://omanscience.com/en/articles/behavior-preserving-kv-cache-compression.