In-Context Former: Lightning-fast Compressing Context for Large Language Model
Not on the map. Why?
Abstract (arXiv)
With the rising popularity of Transformer-based large language models (LLMs), reducing their high inference costs has become a significant research focus. One effective approach is to compress the long input contexts. Existing methods typically leverage the self-attention mechanism of the LLM itself for context compression. While these methods have achieved notable results, the compression process still involves quadratic time complexity, which limits their applicability. To mitigate this limitation, we propose the In-Context Former (IC-Former). Unlike previous methods, IC-Former does not depend on the target LLMs. Instead, it leverages the cross-attention mechanism and a small number of learnable digest tokens to directly condense information from the contextual word embeddings. This approach significantly reduces inference time, which achieves linear growth in time complexity within the compression range. Experimental results indicate that our method requires only 1/32 of the floating-point operations of the baseline during compression and improves processing speed by 68 to 112 times while achieving over 90% of the baseline performance on evaluation metrics. Overall, our model effectively reduces compression costs and makes real-time compression scenarios feasible.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 26 of its 41 references that are in the map. First posted on arXiv 19 Jun 2024.
Builds on
26 of 41 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2017Neural Discrete Representation Learningcited by 4,650
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
14 more
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2023mPLUG-Owl: Modularization Empowers Large Language Models with Multimodalitycited by 1,038
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,023
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
- 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
- 2024Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMscited by 30
- 2021Clustering Word Embeddings with Self-Organizing Maps. Application on LaRoSeDa -- A Large Romanian Sentiment Data Setcited by 8
Built on by
Citing papers per year: 2024: 1; 2025: 7; 2026: 4.
12 papers.
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 22
- 2025Context Cascade Compression: Exploring the Upper Limits of Text Compressioncited by 17
- 2025Towards General Continuous Memory for Vision-Language Modelscited by 14
- 2025CompLLM: Compression for Long Context Q&Acited by 5
- 2025Knowing When to Stop: Efficient Context Processing via Latent Sufficiency Signalscited by 4
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RLcited by 3
- 2026Multi-Layered Memory Architectures for LLM Agents: An Experimental Evaluation of Long-Term Context Retentioncited by 2
- 2025Conversational Alignment with Artificial Intelligence in Contextcited by 1
- 2025AI Compute Architecture and Evolution Trendscited by 1
- 2026Developing Adaptive Context Compression Techniques for Large Language Models (LLMs) in Long-Running Interactionscited by 0
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Stepscited by 0
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun 2026
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Steps2 Jun 2026
- 2026Multi-Layered Memory Architectures for LLM Agents: An Experimental Evaluation of Long-Term Context Retention31 Mar 2026
- 2026Developing Adaptive Context Compression Techniques for Large Language Models (LLMs) in Long-Running Interactions31 Mar 2026
- 2025Context Cascade Compression: Exploring the Upper Limits of Text Compression19 Nov 2025
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Management8 Oct 2025
- 2025CompLLM: Compression for Long Context Q&A23 Sep 2025
- 2025AI Compute Architecture and Evolution Trends29 Aug 2025
- 2025Conversational Alignment with Artificial Intelligence in Context28 May 2025
- 2025Towards General Continuous Memory for Vision-Language Models23 May 2025
- 2025Knowing When to Stop: Efficient Context Processing via Latent Sufficiency Signals3 Feb 2025
- 2024Efficient Knowledge Injection in LLMs via Self-Distillation19 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
- 2023In-context Autoencoder for Context Compression in a Large Language Model
- 2026End-to-End Context Compression at Scale
- 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
- 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling
- 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
- 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference