Revisiting In-Context Learning with Long Context Language Models
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) is a technique by which language models make predictions based on examples provided in their input context. Previously, their context window size imposed a limit on the number of examples that can be shown, making example selection techniques crucial for identifying the maximally effective set of examples. However, the recent advent of Long Context Language Models (LCLMs) has significantly increased the number of examples that can be included in context, raising an important question of whether ICL performance in a many-shot regime is still sensitive to the method of sample selection. To answer this, we revisit these approaches in the context of LCLMs through extensive experiments on 18 datasets spanning 4 tasks. Surprisingly, we observe that sophisticated example selection techniques do not yield significant improvements over a simple random sample selection method. Instead, we discover that the advent of LCLMs has fundamentally shifted the challenge of ICL from that of selecting the most effective examples to that of collecting sufficient examples to fill the context window. Specifically, in certain datasets, including all available examples does not fully utilize the context window; however, by augmenting the examples in context with a simple data augmentation approach, we substantially improve ICL performance by 5%.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 26 of its 35 references that are in the map. First posted on arXiv 22 Dec 2024.
Builds on
26 of 35 references.
References · 26
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,312
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
14 more
- 2022Transformers learn in-context by gradient descentcited by 732
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
- 2021Efficient Attentions for Long Document Summarizationcited by 345
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 89
- 2022An Empirical Survey on Long Document Summarization: Datasets, Models and Metricscited by 74
- 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
- 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
- 2024Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learningcited by 47
- 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 37
- 2023Auto-ICL: In-Context Learning without Human Supervisioncited by 18
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learningcited by 13
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025Towards Compute-Optimal Many-Shot In-Context Learningcited by 3
- 2026Many-Shot CoT-ICL: Making In-Context Learning Truly Learncited by 3
- 2025From Cross-Task Examples to In-Task Prompts: A Graph-Based Pseudo-Labeling Framework for In-context Learningcited by 1
- 2026Judge Like Human Examiners: A Weighted Importance Multi-Point Evaluation Framework for Generative Tasks with Long-form Answerscited by 0
- 2026When Context Sticks: Studying Interference in In-Context Learningcited by 0
- 2026Verb-ICL: Rethinking In-Context Learning for Structured Predictioncited by 0
- 2026Verb-ICL: Rethinking In-Context Learning for Structured Prediction3 Oct 2026
- 2026Many-Shot CoT-ICL: Making In-Context Learning Truly Learn13 May 2026
- 2026When Context Sticks: Studying Interference in In-Context Learning25 Apr 2026
- 2026Judge Like Human Examiners: A Weighted Importance Multi-Point Evaluation Framework for Generative Tasks with Long-form Answers13 Apr 2026
- 2025From Cross-Task Examples to In-Task Prompts: A Graph-Based Pseudo-Labeling Framework for In-context Learning28 Oct 2025
- 2025Towards Compute-Optimal Many-Shot In-Context Learning22 Jul 2025
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning22 May 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025