# EchoKV: Efficient KV Cache Compression via Similarity-Based Reconstruction

*Shiyu Ji, Yixuan Wang, Yijun Liu, Qingfu Zhu, Wanxiang Che*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152942) · [OpenReview](https://openreview.net/forum?id=PE7GYmhRfw) · [Open on the map](../papers.html#p152942)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [KV Cache Optimization](../pgroup/283.md) · Type: new method · Keywords: KV cache compression, LLM inference efficiency, attention head similarity, reconstruction network, on-demand caching

Areas: [Memory](../areas/memory.md) › Model Memory Optimization › KV Cache Optimization; [Long Context](../areas/longcontext.md) › Long-context mechanisms › KV cache eviction

## Summary
EchoKV is a flexible KV cache compression framework that reconstructs discarded KV components via a lightweight network, enabling on-demand transitions between full and compressed caching while preserving throughput.

## Explained to a 5-year-old
Large computer programs called language models need to remember a lot of information while talking. To do this, they keep a big memory called a KV cache. This memory takes up a lot of space, so sometimes they have to forget parts of it. The new idea is like having a small helper that can guess the forgotten parts by looking at what was remembered before. This helps the program work faster and use less memory.

## Explained to a 5-year-old, longer
Language models are big computer programs that can write and understand text. When they read long pieces of text, they need to keep track of important parts. They store these important parts in something called a KV cache, which is like a memory notebook. This notebook can become very large and uses a lot of computer memory. Having too much memory can make the program slow and hard to run on small machines. Some previous ideas tried to shrink the notebook, but they made the program less flexible. The new approach creates a tiny helper network that can fill in missing parts of the notebook. It works by noticing that similar parts of the notebook look alike across different layers. The helper only needs a few minutes to learn how to do this on a single powerful graphics card. This allows the program to switch between using the full notebook and the smaller version as needed. When memory is tight, the program uses the smaller version and the helper guesses the missing pieces. When memory is plentiful, the program can go back to using the full notebook without any slowdown.

## For a technical reader
Large language models store key-value pairs during inference to speed up generation, but this cache can consume a lot of GPU memory. Existing compression techniques reduce the cache size but lock the model into a fixed compressed mode. The proposed solution adds a lightweight reconstruction network that can recover discarded cache entries on demand, leveraging similarities across attention heads. This network is trained quickly with a two-stage fine-tuning process, enabling the model to switch between full and compressed caching within minutes. As a result, the system maintains high throughput for short prompts while saving memory for long contexts.

## Problem
Large language models require storing large Key-Value caches, which become memory bottlenecks for long-context inference. Existing low-rank compression methods reduce memory but lack flexibility to revert to full caching when memory is available.

## Method
The approach uses a lightweight network to reconstruct discarded KV components from a partial subset, exploiting inter-layer and intra-layer similarities among attention heads, and employs a two-stage fine-tuning strategy that can be completed in minutes on a single GPU.

## Results
The approach achieves superior performance over existing methods across various compression ratios and backbone models while maintaining full-cache throughput for short contexts.

## Contributions
A flexible KV cache compression framework that supports on-demand transitions between full and compressed caching, a lightweight reconstruction network leveraging attention head similarities, and a fast two-stage fine-tuning procedure.

## Practical relevance
It enables efficient LLM deployment on limited hardware by providing fast, flexible KV cache compression without sacrificing throughput.

## Research questions this paper is counted under

- [How can we compress or evict key-value cache entries to reduce memory usage without degrading LLM performance?](../q/21.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152942)
