paper-with-me

홈 › Papers

CompLLM: Compression for Long Context Q&A

2025-09-23 · Gabriele Berton, Jayakrishnan Unnikrishnan, Son Tran, Mubarak Shah arxiv

Large Language Models (LLMs) face significant computational challenges when processing long contexts due to the quadratic complexity of self-attention. While soft context compression methods, which map input text to smaller latent representations, have shown promise, their real-world adoption is limited. Existing techniques typically compress the context as a single unit, which leads to quadratic compression complexity and an inability to reuse computations across queries with overlapping contexts. In this work, we introduce CompLLM, a soft compression technique designed for practical deployment. Instead of processing the context holistically, CompLLM divides it into segments and compresses each one independently. This simple design choice yields three critical properties: efficiency, as the compression step scales linearly with the context length; scalability, enabling models trained on short sequences (e.g., 1k tokens) to generalize to contexts of 100k tokens; and reusability, allowing compressed segments to be cached and reused across different queries. Our experiments show that with a 2x compression rate, at high context lengths CompLLM speeds up Time To First Token (TTFT) by up to 4x and reduces the KV cache size by 50%. Furthermore, CompLLM achieves performance comparable to that obtained with the uncompressed context, and even surpasses it on very long sequences, demonstrating its effectiveness and practical utility.

📄 PDF Abstract BibTeX arXiv:2509.19228

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Sentence-Anchored Gist Compression for Long-Context LLMs

2025-11-11 · Dmitrii Tarasov, Elizaveta Goncharova, Kuznetsov Andrey arxiv

This work investigates context compression for Large Language Models (LLMs) using learned compression tokens to reduce the memory and computational demands of processing long sequences. We demonstrate that pre-trained LL…

Evaluating Zero-Shot Long-Context LLM Compression

2024-06-10 · Chenyu Wang, Yihan Wang

This study evaluates the effectiveness of zero-shot compression techniques on large language models (LLMs) under long-context. We identify the tendency for computational errors to increase under long-context when employi…

UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression

2025-09-19 · Chenlong Deng, Zhisong Zhang, Kelong Mao, Shuaiyi Li 외 arxiv

Large language models are increasingly capable of handling long-context inputs, but the memory overhead of key-value (KV) cache remains a major bottleneck for general-purpose deployment. While various compression strateg…

Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compression

2026-01-31 · Jianping Zhong, Guochang Li, Chen Zhi, Junxiao Han 외 arxiv

Large Language Models (LLMs) struggle with long-context code due to window limitations. Existing textual code compression methods mitigate this via selective filtering but often disrupt dependency closure, causing semant…

Question AnsweringCode Completion

MELODI: Exploring Memory Compression for Long Contexts

2024-10-04 · Yinpeng Chen, DeLesley Hutchins, Aren Jansen, Andrey Zhmoginov 외

We present MELODI, a novel memory architecture designed to efficiently process long documents using short context windows. The key principle behind MELODI is to represent short-term and long-term memory as a hierarchical…