paper-with-me

홈 › Papers

Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference

2024-02-14 · Harry Dong, Xinyu Yang, Zhenyu Zhang, Zhangyang Wang, Yuejie Chi, Beidi Chen

Many computational factors limit broader deployment of large language models. In this paper, we focus on a memory bottleneck imposed by the key-value (KV) cache, a computational shortcut that requires storing previous KV pairs during decoding. While existing KV cache methods approach this problem by pruning or evicting large swaths of relatively less important KV pairs to dramatically reduce the memory footprint of the cache, they can have limited success in tasks that require recollecting a majority of previous tokens. To alleviate this issue, we propose LESS, a simple integration of a (nearly free) constant sized cache with eviction-based cache methods, such that all tokens can be queried at later decoding steps. Its ability to retain information throughout time shows merit on a variety of tasks where we demonstrate LESS can help reduce the performance gap from caching everything, sometimes even matching it, all while being efficient. Relevant code can be found at https://github.com/hdong920/LESS.

📄 PDF Abstract BibTeX arXiv:2402.09398

Code (1)

hdong920/less 공식 구현

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
Focus 설명 없음

Similar Papers 제목 키워드 기반

Looped Latent Attention: Cross-Loop KV Compression for Looped Transformers

2026-07-16 · James O' Neill, Fergal Reid arxiv

Looped, weight-tied Transformers reduce parameters by reusing a block, but decoding still stores a separate K/V cache for every recurrence step. We show that this loop-indexed cache is highly structured. For a fixed toke…

LazyEviction: Lagged KV Eviction with Attention Pattern Observation for Efficient Long Reasoning

2025-06-19 · Haoyue Zhang, Hualei Zhang, Xiaosong Ma, Jie Zhang 외

Large Language Models (LLMs) exhibit enhanced reasoning capabilities by employing Chain-of-Thought (CoT). However, the extended reasoning sequences introduce significant GPU memory overhead due to increased key-value (KV…

GPU

Lossless KV Cache Compression to 2%

2024-10-20 · Zhen Yang, J. N. Han, Kan Wu, Ruobing Xie 외

Large language models have revolutionized data processing in numerous domains, with their ability to handle extended context reasoning receiving notable recognition. To speed up inference, maintaining a key-value (KV) ca…

Dimensionality ReductionQuantization

DBudgetKV: Dynamic Budget in KV Cache Compression for Ensuring Optimal Performance

2025-02-24 · Xuanfan Ni, Liyan Xu, Chenyang Lyu, Longyue Wang 외

To alleviate memory burden during inference of large language models (LLMs), numerous studies have focused on compressing the KV cache by exploring aspects such as attention sparsity. However, these techniques often requ…

SVDq: 1.25-bit and 410x Key Cache Compression for LLM Attention

2025-02-21 · Hong Yankun, Li Xing, Zhen Hui-Ling, Yu Xianzhi 외

For the efficient inference of Large Language Models (LLMs), the effective compression of key-value (KV) cache is essential. Three main types of KV cache compression techniques, namely sparsity, channel compression, and …

Quantization