More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectives
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 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
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
20 more
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 475
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2018QuAC : Question Answering in Contextcited by 379
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2021AR-LSAT: Investigating Analytical Reasoning of Textcited by 49
- 2022CSL: A Large-scale Chinese Scientific Literature Datasetcited by 45
- 2020WinoWhy: A Deep Diagnosis of Essential Commonsense Knowledge for Answering Winograd Schema Challengecited by 43
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2024ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweightingcited by 35
- 2024Batch-ICL: Effective, Efficient, and Order-Agnostic In-Context Learningcited by 20
- 2024SoftDedup: an Efficient Data Reweighting Method for Speeding Up Language Model Pre-trainingcited by 12
- 2023Not All Demonstration Examples are Equally Beneficial: Reweighting Demonstration Examples for In-Context Learningcited by 9
Built on by
Citing papers per year: 2025: 8; 2026: 4.
12 papers.
- 2025ICL-Router: In-Context Learned Model Representations for LLM Routingcited by 26
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learningcited by 13
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretrainingcited by 3
- 2025Dynamic Retriever for In-Context Knowledge Editing via Policy Optimizationcited by 3
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updatescited by 3
- 2025When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translationcited by 1
- 2025FedRW: Efficient Privacy-Preserving Data Reweighting for Enhancing Federated Learning of Language Modelscited by 1
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptationcited by 0
- 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
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptation26 Aug 2026
- 2026ReasonCACHE: Teaching LLMs To Reason Without Weight Updates2 Feb 2026
- 2025FedRW: Efficient Privacy-Preserving Data Reweighting for Enhancing Federated Learning of Language Models10 Nov 2025
- 2025Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization24 Oct 2025
- 2025When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translation19 Oct 2025
- 2025ICL-Router: In-Context Learned Model Representations for LLM Routing10 Oct 2025
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretraining8 Sep 2025
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning22 May 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025