mlsanityData to 7 Oct 2026

More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectives

arXiv 2501.04070 ↗First posted 7 Jan 2025cs.LG cs.AI cs.CLcited by 12

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) excel at few-shot in-context learning (ICL) without requiring parameter updates. However, as ICL demonstrations increase from a few to many, performance tends to plateau and eventually decline. We identify two primary causes for this trend: the suboptimal negative log-likelihood (NLL) optimization objective and the incremental data noise. To address these issues, we introduce textitDrICL, a novel optimization method that enhances model performance through textitDifferentiated and textitReweighting objectives. Globally, DrICL utilizes differentiated learning to optimize the NLL objective, ensuring that many-shot performance surpasses zero-shot levels. Locally, it dynamically adjusts the weighting of many-shot demonstrations by leveraging cumulative advantages inspired by reinforcement learning, thereby mitigating the impact of noisy data. Recognizing the lack of multi-task datasets with diverse many-shot distributions, we develop the textitMany-Shot ICL Benchmark (ICL-50)-a large-scale benchmark of 50 tasks that cover shot numbers from 1 to 350 within sequences of up to 8,000 tokens-for both fine-tuning and evaluation purposes. Experimental results demonstrate that LLMs enhanced with DrICL achieve significant improvements in many-shot setups across various tasks, including both in-domain and out-of-domain scenarios. We release the code and dataset hoping to facilitate further research in many-shot ICLfootnotehttps://github.com/xiaoqzhwhu/DrICL.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 32 of its 40 references that are in the map. First posted on arXiv 7 Jan 2025.

Builds on

32 of 40 references.

References · 32

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  10. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  11. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  12. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
20 more
  1. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  2. 2015Teaching Machines to Read and Comprehendcited by 1,039
  3. 2023Instruction Tuning for Large Language Models: A Surveycited by 617
  4. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  5. 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 475
  6. 2021MetaICL: Learning to Learn In Contextcited by 450
  7. 2018QuAC : Question Answering in Contextcited by 379
  8. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
  9. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  10. 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
  11. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  12. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  13. 2021AR-LSAT: Investigating Analytical Reasoning of Textcited by 49
  14. 2022CSL: A Large-scale Chinese Scientific Literature Datasetcited by 45
  15. 2020WinoWhy: A Deep Diagnosis of Essential Commonsense Knowledge for Answering Winograd Schema Challengecited by 43
  16. 2023In-Context Learning with Many Demonstration Examplescited by 39
  17. 2024ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweightingcited by 35
  18. 2024Batch-ICL: Effective, Efficient, and Order-Agnostic In-Context Learningcited by 20
  19. 2024SoftDedup: an Efficient Data Reweighting Method for Speeding Up Language Model Pre-trainingcited by 12
  20. 2023Not All Demonstration Examples are Equally Beneficial: Reweighting Demonstration Examples for In-Context Learningcited by 9

Built on by

Cited by year (2026 to 7 Oct)

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

12 papers.