mlsanityData to 7 Oct 2026

In-Context Former: Lightning-fast Compressing Context for Large Language Model

arXiv 2406.13618 ↗First posted 19 Jun 2024cs.CLcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2017Neural Discrete Representation Learningcited by 4,650
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  11. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  12. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
14 more
  1. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  2. 2020Rethinking Attention with Performerscited by 1,584
  3. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  4. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  5. 2023mPLUG-Owl: Modularization Empowers Large Language Models with Multimodalitycited by 1,038
  6. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,023
  7. 2023Instruction Tuning for Large Language Models: A Surveycited by 617
  8. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  9. 2023Adapting Language Models to Compress Contextscited by 350
  10. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
  11. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
  12. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
  13. 2024Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMscited by 30
  14. 2021Clustering Word Embeddings with Self-Organizing Maps. Application on LaRoSeDa -- A Large Romanian Sentiment Data Setcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 4.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
  2. 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
  3. 2023In-context Autoencoder for Context Compression in a Large Language Model
  4. 2026End-to-End Context Compression at Scale
  5. 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
  6. 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modeling
  7. 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
  8. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference