CompLLM: Compression for Long Context Q&A
On the map: Efficient LLM inference and serving → Prompt and context compression
Abstract (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.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 45 of its 58 references that are in the map. First posted on arXiv 23 Sep 2025.
Builds on
45 of 58 references.
Closest ancestors · 16
Same direction, newest first
- 2025DAC: A Dynamic Attention-aware Approach for Task-Agnostic Prompt Compression16 Jul
- 2025Long Context In-Context Compression by Getting to the Gist of Gisting11 Apr
- 2025KV-Distill: Nearly Lossless Learnable Context Compression for LLMs13 Mar
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference22 Jan
- 2024EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation17 Dec
- 2024Selection-p: Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability15 Oct
- 2024Perception Compressor: A Training-Free Prompt Compression Framework in Long Context Scenarios28 Sep
- 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference2 Sep
- 2024500xCompressor: Generalized Prompt Compression for Large Language Models6 Aug
- 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM10 Jun
- 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs4 Jun
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
4 more
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compression30 Mar
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
- 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul
Other references · 29
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
17 more
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2023Adapting Language Models to Compress Contextscited by 356
- 2017Beam Search Strategies for Neural Machine Translationcited by 232
- 2025CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillationcited by 225
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 203
- 2023Compressed Context Memory For Online Language Model Interactioncited by 43
- 2022QAMPARI: An Open-domain Question Answering Benchmark for Questions with Many Answers from Multiple Paragraphscited by 42
- 2023PRCA: Fitting Black-Box Large Language Models for Retrieval Question Answering via Pluggable Reward-Driven Contextual Adaptercited by 38
- 2023QUEST: A Retrieval Dataset of Entity-Seeking Queries with Implicit Set Operationscited by 31
- 2025DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokenscited by 22
- 2024In-Context Former: Lightning-fast Compressing Context for Large Language Modelcited by 12
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025Compression is Routing: Reconstruction Error as an Intrinsic Signal for Modular Language Modelscited by 1
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answeringcited by 1
- 2026ResRank: Unifying Retrieval and Listwise Reranking via End-to-End Joint Training with Residual Passage Compressioncited by 0
- 2026ReSum: Synergizing LLM Reasoning and Summarization with Reinforcement Learningcited by 0
- 2026SuperThoughts: Reasoning Tokens in Superpositioncited by 0
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering31 Jul 2026
- 2026SuperThoughts: Reasoning Tokens in Superposition11 Jun 2026
- 2026ReSum: Synergizing LLM Reasoning and Summarization with Reinforcement Learning11 Jun 2026
- 2026ResRank: Unifying Retrieval and Listwise Reranking via End-to-End Joint Training with Residual Passage Compression24 Apr 2026
- 2025Compression is Routing: Reconstruction Error as an Intrinsic Signal for Modular Language Models18 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026COMI: Coarse-to-fine Context Compression via Marginal Information Gain
- 2026Density-aware Soft Context Compression with Semi-Dynamic Compression Ratio
- 2023A Survey on Model Compression for Large Language Models
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation
- 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
- 2026TopoCompress: Long Context Compression via Graph-Wired Semantic Trajectories
- 2025Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction