mlsanityData to 14 Oct 2026

MateICL: Mitigating Attention Dispersion in Large-Scale In-Context Learning

arXiv 2505.01110 ↗First posted 2 May 2025cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated remarkable capabilities in In-Context Learning (ICL). However, the fixed position length constraints in pre-trained models limit the number of demonstration examples. Recent efforts to extend context suffer from attention dispersion as the number of demonstrations increases. In this paper, we introduce Mitigating Attention Dispersion in large-scale ICL (MateICL) that enables LLMs to maintain effective self-attention as the context size grows. We first split the context into multiple windows, each filled to the model's context capacity, which are processed separately. Then, we introduce an additional layer to recalibrate the attention weights, prioritizing the query tokens as the number of demonstrations increases. Our empirical results show that MateICL can effectively leverage larger contexts to improve ICL performance. Compared to retrieval-based baselines, MateICL consistently achieves better performance without requiring an externally trained retrieval model. Despite recent advances in inference strategies (e.g., 32k token contexts), our results demonstrate that MateICL remains beneficial in computationally resource-constrained settings. The code is publicly available at https://github.com/amurtadha/MateICL.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 37 of its 43 references that are in the map. First posted on arXiv 2 May 2025.

Builds on

37 of 43 references.

References · 37

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
  8. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  10. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  11. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
  12. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
25 more
  1. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  2. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  3. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  4. 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  6. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  7. 2020Pre-trained Models for Natural Language Processing: A Surveycited by 505
  8. 2021MetaICL: Learning to Learn In Contextcited by 454
  9. 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 413
  10. 2021Pre-Trained Models: Past, Present and Futurecited by 319
  11. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  12. 2023Compositional Exemplars for In-context Learningcited by 144
  13. 2023Unified Demonstration Retriever for In-Context Learningcited by 142
  14. 2022What Language Model to Train if You Have One Million GPU Hours?cited by 92
  15. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  16. 2022Parallel Context Windows for Large Language Modelscited by 81
  17. 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 72
  18. 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
  19. 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 70
  20. 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
  21. 2023Pre-Training to Learn in Contextcited by 42
  22. 2023In-Context Learning with Many Demonstration Examplescited by 39
  23. 2024Focused Large Language Models are Stable Many-Shot Learnerscited by 8
  24. 2023Revisiting Parallel Context Windows: A Frustratingly Simple Alternative and Chain-of-Thought Deteriorationcited by 5
  25. 2024Naive Bayes-based Context Extension for Large Language Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.