paper-with-me

Papers

ZeroMerge: Parameter-Free KV Cache Compression for Memory-Efficient Long-Context LLMs

2025-03-13 · Xin Liu, Pei Liu, Guoming Tang

The linear growth of key-value (KV) cache memory and quadratic computational complexity pose significant bottlenecks for large language models (LLMs) in long-context processing. While existing KV cache optimization methods address these challenges through token pruning or feature merging, they often suffer from irreversible information loss or require costly parameter retraining. We propose ZeroMerge, a dynamic zero-shot compression framework that achieves efficient cache management through three key innovations: (1) Fine-grained memory allocation guided by multi-dimensional token importance metrics at head-level granularity, (2) A residual merging mechanism that preserves critical context through compensated attention scoring, and (3) Parameter-free adaptation compatible with diverse LLM architectures without retraining. Comprehensive evaluations across LLaMA-2 model demonstrate that ZeroMerge maintains full-cache performance at 5\% compression ratios while doubling inference throughput at 40K token lengths. The method effectively balances memory efficiency, generation quality, and deployment flexibility, advancing practical long-context LLM applications. The code is available at https://github.com/SusCom-Lab/ZeroMerge.

📄 PDF Abstract BibTeX arXiv:2503.10714

Code (2)

suscom-lab/zeromerge 공식 구현 pytorch
zhaoolee/garss pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Pruning 설명 없음

Similar Papers 제목 키워드 기반

SWAN: Sparse Winnowed Attention for Reduced Inference Memory via Decompression-Free KV-Cache Compression

2025-11-24 · Santhosh G S, Saurav Prakash, Balaraman Ravindran arxiv

Large Language Models (LLMs) face a significant bottleneck during autoregressive inference due to the massive memory footprint of the Key-Value (KV) cache. Existing compression techniques like token eviction, quantizatio…

CommonKV: Compressing KV Cache with Cross-layer Parameter Sharing

2025-08-22 · Yixuan Wang, Haoyu Qiao, Lujun Li, Qingfu Zhu 외 arxiv

Large Language Models (LLMs) confront significant memory challenges due to the escalating KV cache with increasing sequence length. As a crucial technique, existing cross-layer KV cache sharing methods either necessitate…

EpiCache: Episodic KV Cache Management for Long-Term Conversation on Resource-Constrained Environments

2025-09-22 · Minsoo Kim, Arnav Kundu, Han-Byul Kim, Richa Dixit 외 arxiv

Modern large language models (LLMs) extend context lengths to millions of tokens, enabling coherent, personalized responses grounded in long conversational history. However, the Key-Value (KV) cache grows linearly with t…

Conversational Question Answering

Breadcrumbs Reasoning: Memory-Efficient Reasoning with Compression Beacons

2025-10-15 · Giovanni Monea, Yair Feldman, Shankar Padmanabhan, Kianté Brantley 외 arxiv

The scalability of large language models for long-context reasoning is severely constrained by the linear growth of their Transformer key-value cache, which incurs significant memory and computational costs. We posit tha…

Reinforcement Learning

InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understanding

2025-06-18 · Minsoo Kim, Kyuhong Shim, Jungwook Choi, Simyung Chang

Modern multimodal large language models (MLLMs) can reason over hour-long video, yet their key-value (KV) cache grows linearly with time--quickly exceeding the fixed memory of phones, AR glasses, and edge robots. Prior c…

GPUStreaming video understandingTARVideo Understanding