Focused Large Language Models are Stable Many-Shot Learners
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) enables large language models (LLMs) to achieve rapid task adaptation by learning from demonstrations. With the increase in available context length of LLMs, recent experiments have shown that the performance of ICL does not necessarily scale well in many-shot (demonstration) settings. We theoretically and experimentally confirm that the reason lies in more demonstrations dispersing the model attention from the query, hindering its understanding of key content. Inspired by how humans learn from examples, we propose a training-free method FocusICL, which conducts triviality filtering to avoid attention being diverted by unimportant contents at token-level and operates hierarchical attention to further ensure sufficient attention towards current query at demonstration-level. We also design an efficient hyperparameter searching strategy for FocusICL based on model perplexity of demonstrations. Comprehensive experiments validate that FocusICL achieves an average performance improvement of 5.2% over vanilla ICL and scales well with many-shot demonstrations.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 32 of its 41 references that are in the map. First posted on arXiv 26 Aug 2024.
Builds on
32 of 41 references.
References · 32
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
20 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2021Scaling Laws for Transfercited by 265
- 2023Inverse Scaling: When Bigger Isn't Bettercited by 205
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 105
- 2024Investigating Data Contamination for Pre-training Language Modelscited by 91
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 45
- 2024Integrate the Essence and Eliminate the Dross: Fine-Grained Self-Consistency for Free-Form Language Generationcited by 21
- 2023Turning Dust into Gold: Distilling Complex Reasoning Capabilities from LLMs by Leveraging Negative Datacited by 19
- 2023BatchEval: Towards Human-like Text Evaluationcited by 16
- 2023Exploring the Relationship between In-Context Learning and Instruction Tuningcited by 14
- 2024Generative Dense Retrieval: Memory Can Be a Burdencited by 11
- 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learningcited by 9
- 2022Diversifying Neural Dialogue Generation via Negative Distillationcited by 6
- 2023Dynamic Demonstrations Controller for In-Context Learningcited by 6
- 2022Towards Diverse, Relevant and Coherent Open-Domain Dialogue Generation via Hybrid Latent Variablescited by 5
- 2023Heterogeneous-Branch Collaborative Learning for Dialogue Generationcited by 1
- 2024Poor-Supervised Evaluation for SuperLLM via Mutual Consistencycited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 3.
8 papers.
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?cited by 7
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Frameworkcited by 5
- 2024Instruction Embedding: Latent Representations of Instructions Towards Task Identificationcited by 4
- 2025MateICL: Mitigating Attention Dispersion in Large-Scale In-Context Learningcited by 2
- 2025Distilling Many-Shot In-Context Learning into a Cheat Sheetcited by 2
- 2026Beyond Many-Shot Translation: Scaling In-Context Demonstrations For Low-Resource Machine Translationcited by 1
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs21 Sep 2026
- 2026Beyond Many-Shot Translation: Scaling In-Context Demonstrations For Low-Resource Machine Translation4 Feb 2026
- 2025Distilling Many-Shot In-Context Learning into a Cheat Sheet25 Sep 2025
- 2025MateICL: Mitigating Attention Dispersion in Large-Scale In-Context Learning2 May 2025
- 2025Can LLMs Handle WebShell Detection? Overcoming Detection Challenges with Behavioral Function-Aware Framework14 Apr 2025
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?14 Feb 2025
- 2024Instruction Embedding: Latent Representations of Instructions Towards Task Identification29 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2024AIM: Let Any Multi-modal Large Language Models Embrace Efficient In-Context Learning
- 2024Many-Shot In-Context Learning
- 2025Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
- 2026Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context Learning
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning