Revisiting Demonstration Selection Strategies in In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have shown an impressive ability to perform a wide range of tasks using in-context learning (ICL), where a few examples are used to describe a task to the model. However, the performance of ICL varies significantly with the choice of demonstrations, and it is still unclear why this happens or what factors will influence its choice. In this work, we first revisit the factors contributing to this variance from both data and model aspects, and find that the choice of demonstration is both data- and model-dependent. We further proposed a data- and model-dependent demonstration selection method, TopK + ConE, based on the assumption that textitthe performance of a demonstration positively correlates with its contribution to the model's understanding of the test samples, resulting in a simple and effective recipe for ICL. Empirically, our method yields consistent improvements in both language understanding and generation tasks with different model scales. Further analyses confirm that, besides the generality and stability under different circumstances, our method provides a unified explanation for the effectiveness of previous methods. Code will be released.
Key facts. Cited by 58 papers in the map (data through 14 Oct 2026). Builds on 28 of its 49 references that are in the map. First posted on arXiv 22 Jan 2024.
Builds on
28 of 49 references.
References · 28
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,799
- 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
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
16 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 560
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 348
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 236
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 161
- 2023Towards Making the Most of ChatGPT for Machine Translationcited by 138
- 2023Error Analysis Prompting Enables Human-Like Translation Evaluation in Large Language Modelscited by 87
- 2024Intention Analysis Makes LLMs A Good Jailbreak Defendercited by 74
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 72
- 2023OpenICL: An Open-Source Framework for In-context Learningcited by 51
- 2023In-Context Demonstration Selection with Cross Entropy Differencecited by 17
- 2022Vega-MT: The JD Explore Academy Translation System for WMT22cited by 9
- 2022Improving Neural Machine Translation by Denoising Trainingcited by 4
Built on by
Citing papers per year: 2024: 10; 2025: 28; 2026: 20.
58 papers.
Sort:
By area:
- 2024TC-RAG:Turing-Complete RAG's Case study on Medical LLM Systemscited by 28
- 2024Healthcare Copilot: Eliciting the Power of General LLMs for Medical Consultationcited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 16
- 2025Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoningcited by 12
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimationcited by 8
- 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMscited by 7
- 2024What Makes In-context Learning Effective for Mathematical Reasoning: A Theoretical Analysiscited by 7
- 2025What Makes a Good Natural Language Prompt?cited by 7
- 2024Does Few-Shot Learning Help LLM Performance in Code Synthesis?cited by 6
- 2025Investigating the Zone of Proximal Development of Language Models for In-Context Learningcited by 6
- 2025Retrieval-augmented in-context learning for multimodal large language models in disease classificationcited by 5
- 2025Adaptive Task Vectors for Large Language Modelscited by 5
38 more
- 2026Think Dense, Not Long: Dynamic Decoupled Conditional Advantage for Efficient Reasoningcited by 5
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decodingcited by 4
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistencycited by 4
- 2025Training-free LLM Verification via Recycling Few-shot Examplescited by 4
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2024Auto-Demo Prompting: Leveraging Generated Outputs as Demonstrations for Enhanced Batch Promptingcited by 3
- 2025Leveraging Metamemory Agent for Enhanced Data-Free Code Generation in Large Language Modelscited by 3
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learningcited by 3
- 2025RIDE: Enhancing Large Language Model Alignment through Restyled In-Context Learning Demonstration Exemplarscited by 2
- 2025Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detectioncited by 2
- 2025Surprise Calibration for Better In-Context Learningcited by 2
- 2025InPhyRe Discovers: Large Multimodal Models Struggle in Inductive Physical Reasoningcited by 2
- 2024Assessing In-context Learning and Fine-tuning for Topic Classification of German Web Datacited by 1
- 2025D.Va: Validate Your Demonstration First Before You Use Itcited by 1
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
- 2025From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMscited by 1
- 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspectivecited by 1
- 2025Reason-KE++: Aligning the Process, Not Just the Outcome, for Faithful LLM Knowledge Editingcited by 1
- 2026Predicting Startup Success Using Large Language Models: A Novel In-Context Learning Approachcited by 1
- 2026Regime-aware financial volatility forecasting via in-context learningcited by 1
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learningcited by 1
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identificationcited by 1
- 2026Discourse-Role Labels as Presentation-Time Variables for Context Use in Language Modelscited by 1
- 2026Document-Authored Control-Signal Impersonation: A Low-Cost Indirect Prompt Attack on RAG Safety Boundariescited by 1
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Rerankingcited by 1
- 2024Label Set Optimization via Activation Distribution Kurtosis for Zero-shot Classification with Generative Modelscited by 0
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2025ARISE: Iterative Rule Induction and Synthetic Data Generation for Text Classificationcited by 0
- 2025Enhancing Contrastive Demonstration Selection with Semantic Diversity for Robust In-Context Machine Translationcited by 0
- 2025Improving Dialogue State Tracking through Combinatorial Search for In-Context Examplescited by 0
- 2025Factors affecting the in-context learning abilities of LLMs for dialogue state trackingcited by 0
- 2025Mockingbird: How does LLM perform in general machine learning tasks?cited by 0
- 2025CLEAR: A Comprehensive Linguistic Evaluation of Argument Rewriting by Large Language Modelscited by 0
- 2025Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspectivecited by 0
- 2026Geometry-Aware Hallucination Detection in Large Language Modelscited by 0
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learningcited by 0
- 2026A Comparative Study of Demonstration Selection for Practical Large Language Models-based Next POI Predictioncited by 0
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learningcited by 0
50 most cited of 58 All 58 (JSON)
- 2026ActICL: Post-Training for Agentic Multimodal In-Context Learning14 Oct 2026
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learning27 Sep 2026
- 2026What Transfers Under Source Shift? Definitions, Examples, and Fine-Tuning for Climate Disclosure Classification20 Jul 2026
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Reranking30 Jun 2026
- 2026Document-Authored Control-Signal Impersonation: A Low-Cost Indirect Prompt Attack on RAG Safety Boundaries8 Jun 2026
- 2026Discourse-Role Labels as Presentation-Time Variables for Context Use in Language Models2 Jun 2026
- 2026Self-Improving In-Context Learning22 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2026CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptation21 Apr 2026
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval13 Apr 2026
38 more
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learning7 Apr 2026
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learning4 Apr 2026
- 2026A Comparative Study of Demonstration Selection for Practical Large Language Models-based Next POI Prediction16 Mar 2026
- 2026Regime-aware financial volatility forecasting via in-context learning11 Mar 2026
- 2026Think Dense, Not Long: Dynamic Decoupled Conditional Advantage for Efficient Reasoning2 Feb 2026
- 2026Predicting Startup Success Using Large Language Models: A Novel In-Context Learning Approach23 Jan 2026
- 2026Geometry-Aware Hallucination Detection in Large Language Models8 Jan 2026
- 2025Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspective13 Dec 2025
- 2025Reason-KE++: Aligning the Process, Not Just the Outcome, for Faithful LLM Knowledge Editing16 Nov 2025
- 2025Foundation of Intelligence: Review of Math Word Problems from Human Cognition Perspective24 Oct 2025
- 2025From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMs27 Sep 2025
- 2025CLEAR: A Comprehensive Linguistic Evaluation of Argument Rewriting by Large Language Models18 Sep 2025
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learning15 Sep 2025
- 2025InPhyRe Discovers: Large Multimodal Models Struggle in Inductive Physical Reasoning12 Sep 2025
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimation27 Aug 2025
- 2025Mockingbird: How does LLM perform in general machine learning tasks?6 Aug 2025
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectiveness1 Aug 2025
- 2025Surprise Calibration for Better In-Context Learning15 Jun 2025
- 2025Factors affecting the in-context learning abilities of LLMs for dialogue state tracking10 Jun 2025
- 2025Training-free LLM Verification via Recycling Few-shot Examples8 Jun 2025
- 2025What Makes a Good Natural Language Prompt?7 Jun 2025
- 2025Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detection4 Jun 2025
- 2025Adaptive Task Vectors for Large Language Models3 Jun 2025
- 2025Improving Dialogue State Tracking through Combinatorial Search for In-Context Examples31 May 2025
- 2025Retrieval-augmented in-context learning for multimodal large language models in disease classification4 May 2025
- 2025Enhancing Contrastive Demonstration Selection with Semantic Diversity for Robust In-Context Machine Translation12 Apr 2025
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistency26 Feb 2025
- 2025Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoning21 Feb 2025
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding19 Feb 2025
- 2025D.Va: Validate Your Demonstration First Before You Use It19 Feb 2025
- 2025RIDE: Enhancing Large Language Model Alignment through Restyled In-Context Learning Demonstration Exemplars17 Feb 2025
- 2025Investigating the Zone of Proximal Development of Language Models for In-Context Learning10 Feb 2025
- 2025ARISE: Iterative Rule Induction and Synthetic Data Generation for Text Classification9 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2025Leveraging Metamemory Agent for Enhanced Data-Free Code Generation in Large Language Models14 Jan 2025
- 2024What Makes In-context Learning Effective for Mathematical Reasoning: A Theoretical Analysis11 Dec 2024
- 2024Does Few-Shot Learning Help LLM Performance in Code Synthesis?3 Dec 2024
50 newest of 58 All 58 (JSON)
- 2025Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoningcited by 12
- 2024What Makes In-context Learning Effective for Mathematical Reasoning: A Theoretical Analysiscited by 7
- 2024Does Few-Shot Learning Help LLM Performance in Code Synthesis?cited by 6
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistencycited by 4
- 2025Training-free LLM Verification via Recycling Few-shot Examplescited by 4
- 2025From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMscited by 1
- 2025Reason-KE++: Aligning the Process, Not Just the Outcome, for Faithful LLM Knowledge Editingcited by 1
- 2025Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspectivecited by 0
- 2026CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptationcited by 0
- 2026CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptation21 Apr 2026
- 2025Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspective13 Dec 2025
- 2025Reason-KE++: Aligning the Process, Not Just the Outcome, for Faithful LLM Knowledge Editing16 Nov 2025
- 2025From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMs27 Sep 2025
- 2025Training-free LLM Verification via Recycling Few-shot Examples8 Jun 2025
- 2025TestNUC: Enhancing Test-Time Computing Approaches and Scaling through Neighboring Unlabeled Data Consistency26 Feb 2025
- 2025Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoning21 Feb 2025
- 2024What Makes In-context Learning Effective for Mathematical Reasoning: A Theoretical Analysis11 Dec 2024
- 2024Does Few-Shot Learning Help LLM Performance in Code Synthesis?3 Dec 2024
- 2024Healthcare Copilot: Eliciting the Power of General LLMs for Medical Consultationcited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 16
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimationcited by 8
- 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMscited by 7
- 2025What Makes a Good Natural Language Prompt?cited by 7
- 2025Investigating the Zone of Proximal Development of Language Models for In-Context Learningcited by 6
- 2025Adaptive Task Vectors for Large Language Modelscited by 5
- 2026Think Dense, Not Long: Dynamic Decoupled Conditional Advantage for Efficient Reasoningcited by 5
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decodingcited by 4
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2024Auto-Demo Prompting: Leveraging Generated Outputs as Demonstrations for Enhanced Batch Promptingcited by 3
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learningcited by 3
12 most cited of 41 All 41 (JSON)
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026What Transfers Under Source Shift? Definitions, Examples, and Fine-Tuning for Climate Disclosure Classification20 Jul 2026
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Reranking30 Jun 2026
- 2026Discourse-Role Labels as Presentation-Time Variables for Context Use in Language Models2 Jun 2026
- 2026Self-Improving In-Context Learning22 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval13 Apr 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learning7 Apr 2026
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learning4 Apr 2026
- 2026A Comparative Study of Demonstration Selection for Practical Large Language Models-based Next POI Prediction16 Mar 2026
12 newest of 41 All 41 (JSON)