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