paper-with-me

홈 › Papers

Fast KV Compaction via Attention Matching

2026-02-18 · Adam Zweiger, Xinghong Fu, Han Guo, Yoon Kim arxiv

Scaling language models to long contexts is often bottlenecked by the size of the key-value (KV) cache. In deployed settings, long contexts are typically managed through compaction in token space via summarization. However, summarization can be highly lossy, substantially harming downstream performance. Recent work on Cartridges has shown that it is possible to train highly compact KV caches in latent space that closely match full-context performance, but at the cost of slow and expensive end-to-end optimization. This work describes an approach for fast context compaction in latent space through Attention Matching, which constructs compact keys and values to reproduce attention outputs and preserve attention mass at a per-KV-head level. We show that this formulation naturally decomposes into simple subproblems, some of which admit efficient closed-form solutions. Within this framework, we develop a family of methods that significantly push the Pareto frontier of compaction time versus quality, achieving up to 50x compaction in seconds on some datasets with little quality loss.

📄 PDF Abstract BibTeX arXiv:2602.16284

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Practical Online KV Cache Compaction for LLM Agents: An Empirical Study

2026-08-02 · Yujian Liu, Jiabao Ji, Li An, Rohit Jain 외 arxiv

LLM agents accumulate long trajectories of reasoning steps, tool calls, and environment feedback, making the KV cache a major inference bottleneck. KV cache compaction can reduce this cost, but most prior methods assume …

CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents

2026-07-06 · Yujiang Li, Zhenyu Hou, Yi Jing, Jie Tang 외 arxiv

Long-horizon agentic LLMs are increasingly limited by finite context windows, as extended interaction trajectories can exceed the maximum context length before a task is completed. Context compaction offers a natural sol…

Reinforcement Learning

Static Internal Representation Of Dynamic Situations Reveals Time Compaction In Human Cognition

2018-06-27

The time-changing nature of our world demands processing of huge amounts of information in fast and reliable way to generate successful behaviors. Therefore, significant brain resources are devoted to process spatiotempo…

Decision Making

What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agents

2026-07-09 · Ashwin Gerard Colaco, Nada Lahjouji arxiv

Large language models, and the agents built on them, spend an ever-growing share of their compute and memory on remembering: caching attention keys and values, carrying long prompts, maintaining recurrent state, and stor…

Vision Transformer with Attention Map Hallucination and FFN Compaction

2023-06-19 · Haiyang Xu, Zhichao Zhou, Dongliang He, Fu Li 외

Vision Transformer(ViT) is now dominating many vision tasks. The drawback of quadratic complexity of its token-wise multi-head self-attention (MHSA), is extensively addressed via either token sparsification or dimension …

Dimensionality ReductionHallucination