mlsanityData to 14 Oct 2026

Revisiting In-Context Learning with Long Context Language Models

arXiv 2412.16926 ↗First posted 22 Dec 2024cs.CL cs.AI cs.LGcited by 8

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2020Longformer: The Long-Document Transformercited by 3,413
  4. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  5. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
  6. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  8. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  9. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  10. 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,312
  11. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  12. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
14 more
  1. 2022Transformers learn in-context by gradient descentcited by 732
  2. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  3. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
  4. 2021Efficient Attentions for Long Document Summarizationcited by 345
  5. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
  6. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  7. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
  8. 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 89
  9. 2022An Empirical Survey on Long Document Summarization: Datasets, Models and Metricscited by 74
  10. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  11. 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
  12. 2024Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learningcited by 47
  13. 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 37
  14. 2023Auto-ICL: In-Context Learning without Human Supervisioncited by 18

Built on by

Cited by year (2026 to 14 Oct)

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

8 papers.