Active Learning Principles for In-Context Learning with Large Language Models
Not on the map. Why?
Abstract (arXiv)
The remarkable advancements in large language models (LLMs) have significantly enhanced the performance in few-shot learning settings. By using only a small number of labeled examples, referred to as demonstrations, LLMs can effectively grasp the task at hand through in-context learning. However, the process of selecting appropriate demonstrations has received limited attention in prior work. This paper addresses the issue of identifying the most informative demonstrations for few-shot learning by approaching it as a pool-based Active Learning (AL) problem over a single iteration. Our objective is to investigate how AL algorithms can serve as effective demonstration selection methods for in-context learning. We compare various standard AL algorithms based on uncertainty, diversity, and similarity, and consistently observe that the latter outperforms all other methods, including random sampling. Notably, uncertainty sampling, despite its success in conventional supervised learning scenarios, performs poorly in this context. Our extensive experimentation involving a diverse range of GPT and OPT models across 24 classification and multi-choice tasks, coupled with thorough analysis, unambiguously demonstrates that in-context example selection through AL prioritizes high-quality examples that exhibit low uncertainty and bear similarity to the test examples.
Key facts. Cited by 54 papers in the map (data through 14 Oct 2026). Builds on 74 of its 103 references that are in the map. First posted on arXiv 23 May 2023.
Builds on
74 of 103 references.
References · 74
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Emergent Abilities of Large Language Modelscited by 2,512
38 more
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 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
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 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
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2017Deep Bayesian Active Learning with Image Datacited by 819
- 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 752
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
- 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 417
- 2023Larger language models do in-context learning differentlycited by 394
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 298
- 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 252
- 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 222
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
- 2018Hate Speech Dataset from a White Supremacy Forumcited by 198
- 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 196
- 2022Active Example Selection for In-Context Learningcited by 196
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2021Active Learning by Acquiring Contrastive Examplescited by 156
- 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
- 2023Compositional Exemplars for In-context Learningcited by 144
- 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
- 2020Deep Learning Based Text Classification: A Comprehensive Reviewcited by 141
- 2021The Benchmark Lotterycited by 136
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2017Deep Active Learning for Named Entity Recognitioncited by 108
50 most cited of 74 All 74 (JSON)
Built on by
Citing papers per year: 2023: 6; 2024: 21; 2025: 17; 2026: 10.
54 papers.
Sort:
By area:
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 494
- 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Surveycited by 95
- 2024Position: Bayesian Deep Learning is Needed in the Age of Large-Scale AIcited by 62
- 2024Active Preference Learning for Large Language Modelscited by 58
- 2024A Survey on Deep Active Learning: Recent Advances and New Frontierscited by 54
- 2023Large Language Models as Annotators: Enhancing Generalization of NLP Models at Minimal Costcited by 33
- 2024Causal Prompting: Debiasing Large Language Model Prompting based on Front-Door Adjustmentcited by 30
- 2025Understanding the Uncertainty of LLM Explanations: A Perspective Based on Reasoning Topologycited by 25
- 2024Data Poisoning for In-context Learningcited by 21
- 2025CER: Confidence Enhanced Reasoning in LLMscited by 17
- 2024Fine-tuning Large Language Models for Entity Matchingcited by 16
- 2023Cost-Effective In-Context Learning for Entity Resolution: A Design Space Explorationcited by 15
38 more
- 2024The Promises and Pitfalls of LLM Annotations in Dataset Labeling: a Case Study on Media Bias Detectioncited by 15
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomnesscited by 14
- 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinementcited by 13
- 2024The Impact of Prompt Programming on Function-Level Code Generationcited by 13
- 2023Ambiguity-Aware In-Context Learning with Large Language Modelscited by 11
- 2024Empowering Language Models with Active Inquiry for Deeper Understandingcited by 11
- 2025Active Learning for Direct Preference Optimizationcited by 10
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 10
- 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Processcited by 9
- 2024DISCERN: Decoding Systematic Errors in Natural Language for Text Classifierscited by 8
- 2024Automate Knowledge Concept Tagging on Math Questions with LLMscited by 6
- 2024Learning from Natural Language Explanations for Generalizable Entity Matchingcited by 6
- 2024Multiple Sources are Better Than One: Incorporating External Knowledge in Low-Resource Glossingcited by 5
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfercited by 5
- 2025Causal Prompting for Implicit Sentiment Analysis with Large Language Modelscited by 4
- 2025Towards Multimodal Active Learning: Efficient Learning with Limited Paired Datacited by 3
- 2023Take One Step at a Time to Know Incremental Utility of Demonstration: An Analysis on Reranking for Few-Shot In-Context Learningcited by 2
- 2024Active Learning for NLP with Large Language Modelscited by 2
- 2024COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptationcited by 2
- 2025Enhancing RAG with Active Learning on Conversation Records: Reject Incapables and Answer Capablescited by 2
- 2025Reassessing Active Learning Adoption in Contemporary NLP: A Community Surveycited by 2
- 2026Learning to Select Visual In-Context Demonstrationscited by 2
- 2026Active In-Context Learning for Tabular Foundation Modelscited by 2
- 2023Enhancing Machine Translation through Advanced In-Context Learning: A Methodological Strategy for GPT-4 Improvementcited by 1
- 2024Actor Identification in Discourse: A Challenge for LLMs?cited by 1
- 2025Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detectioncited by 1
- 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusionscited by 1
- 2025Reconstructing Biological Pathways by Applying Selective Incremental Learning to (Very) Small Language Modelscited by 1
- 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspectivecited by 1
- 2025From Deferral to Learning: Online In-Context Knowledge Distillation for LLM Cascadescited by 1
- 2026Reading Calibrated Uncertainty from Language Model Trajectoriescited by 1
- 2024Experimental Design for Active Transductive Inference in Large Language Modelscited by 0
- 2024Mitigating Biases to Embrace Diversity: A Comprehensive Annotation Benchmark for Toxic Languagecited by 0
- 2025From Human Annotation to Automation: LLM-in-the-Loop Active Learning for Arabic Sentiment Analysiscited by 0
- 2025Active Learning for GCN-based Action Recognitioncited by 0
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classificationcited by 0
- 2026Nearly Optimal Active Preference Learning and Its Application to LLM Alignmentcited by 0
- 2026From Competition to Collaboration: Designing Sustainable Mechanisms Between LLMs and Online Forumscited by 0
50 most cited of 54 All 54 (JSON)
- 2026Stigma and Support in Online Sexual Violence Narratives on Reddit11 Aug 2026
- 2026Activation-Based Active Learning for In-Context Learning: Challenges and Insights3 Jun 2026
- 2026Reading Calibrated Uncertainty from Language Model Trajectories19 May 2026
- 2026Active In-Context Learning for Tabular Foundation Models28 Mar 2026
- 2026Learning to Select Visual In-Context Demonstrations24 Mar 2026
- 2026KA2L: A Knowledge-Aware Active Learning Framework for LLMs18 Mar 2026
- 2026Adaptive Data Augmentation with Multi-armed Bandit: Sample-Efficient Embedding Calibration for Implicit Pattern Recognition22 Feb 2026
- 2026From Competition to Collaboration: Designing Sustainable Mechanisms Between LLMs and Online Forums4 Feb 2026
- 2026Nearly Optimal Active Preference Learning and Its Application to LLM Alignment2 Feb 2026
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification3 Jan 2026
- 2025Active Learning for GCN-based Action Recognition26 Nov 2025
- 2025From Human Annotation to Automation: LLM-in-the-Loop Active Learning for Arabic Sentiment Analysis27 Sep 2025
38 more
- 2025From Deferral to Learning: Online In-Context Knowledge Distillation for LLM Cascades26 Sep 2025
- 2025Towards Multimodal Active Learning: Efficient Learning with Limited Paired Data25 Sep 2025
- 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspective11 Aug 2025
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer31 Jul 2025
- 2025Reconstructing Biological Pathways by Applying Selective Incremental Learning to (Very) Small Language Models6 Jul 2025
- 2025Causal Prompting for Implicit Sentiment Analysis with Large Language Models1 Jul 2025
- 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions29 Jun 2025
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Tasks26 May 2025
- 2025Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detection24 May 2025
- 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Survey20 Mar 2025
- 2025Reassessing Active Learning Adoption in Contemporary NLP: A Community Survey12 Mar 2025
- 2025Active Learning for Direct Preference Optimization3 Mar 2025
- 2025Understanding the Uncertainty of LLM Explanations: A Perspective Based on Reasoning Topology24 Feb 2025
- 2025CER: Confidence Enhanced Reasoning in LLMs20 Feb 2025
- 2025Enhancing RAG with Active Learning on Conversation Records: Reject Incapables and Answer Capables13 Feb 2025
- 2024The Impact of Prompt Programming on Function-Level Code Generation29 Dec 2024
- 2024COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptation23 Dec 2024
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judge25 Nov 2024
- 2024The Promises and Pitfalls of LLM Annotations in Dataset Labeling: a Case Study on Media Bias Detection17 Nov 2024
- 2024DISCERN: Decoding Systematic Errors in Natural Language for Text Classifiers29 Oct 2024
- 2024Mitigating Biases to Embrace Diversity: A Comprehensive Annotation Benchmark for Toxic Language17 Oct 2024
- 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinement17 Sep 2024
- 2024Fine-tuning Large Language Models for Entity Matching12 Sep 2024
- 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Process4 Aug 2024
- 2024Multiple Sources are Better Than One: Incorporating External Knowledge in Low-Resource Glossing16 Jun 2024
- 2024Learning from Natural Language Explanations for Generalizable Entity Matching13 Jun 2024
- 2024A Survey on Deep Active Learning: Recent Advances and New Frontiers1 May 2024
- 2024Experimental Design for Active Transductive Inference in Large Language Models12 Apr 2024
- 2024Automate Knowledge Concept Tagging on Math Questions with LLMs26 Mar 2024
- 2024Causal Prompting: Debiasing Large Language Model Prompting based on Front-Door Adjustment5 Mar 2024
- 2024Active Preference Learning for Large Language Models12 Feb 2024
- 2024Empowering Language Models with Active Inquiry for Deeper Understanding6 Feb 2024
- 2024Data Poisoning for In-context Learning3 Feb 2024
- 2024Position: Bayesian Deep Learning is Needed in the Age of Large-Scale AI1 Feb 2024
- 2024Actor Identification in Discourse: A Challenge for LLMs?1 Feb 2024
- 2024Active Learning for NLP with Large Language Models14 Jan 2024
- 2023Cost-Effective In-Context Learning for Entity Resolution: A Design Space Exploration7 Dec 2023
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomness2 Dec 2023
50 newest of 54 All 54 (JSON)
- 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Surveycited by 95
- 2024Causal Prompting: Debiasing Large Language Model Prompting based on Front-Door Adjustmentcited by 30
- 2025Understanding the Uncertainty of LLM Explanations: A Perspective Based on Reasoning Topologycited by 25
- 2025CER: Confidence Enhanced Reasoning in LLMscited by 17
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 10
- 2025Causal Prompting for Implicit Sentiment Analysis with Large Language Modelscited by 4
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classificationcited by 0
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification3 Jan 2026
- 2025Causal Prompting for Implicit Sentiment Analysis with Large Language Models1 Jul 2025
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Tasks26 May 2025
- 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Survey20 Mar 2025
- 2025Understanding the Uncertainty of LLM Explanations: A Perspective Based on Reasoning Topology24 Feb 2025
- 2025CER: Confidence Enhanced Reasoning in LLMs20 Feb 2025
- 2024Causal Prompting: Debiasing Large Language Model Prompting based on Front-Door Adjustment5 Mar 2024
- 2026Learning to Select Visual In-Context Demonstrationscited by 2
- 2026Learning to Select Visual In-Context Demonstrations24 Mar 2026
- 2024Data Poisoning for In-context Learningcited by 21
- 2024Data Poisoning for In-context Learning3 Feb 2024
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 494
- 2024Position: Bayesian Deep Learning is Needed in the Age of Large-Scale AIcited by 62
- 2024A Survey on Deep Active Learning: Recent Advances and New Frontierscited by 54
- 2023Large Language Models as Annotators: Enhancing Generalization of NLP Models at Minimal Costcited by 33
- 2024Fine-tuning Large Language Models for Entity Matchingcited by 16
- 2023Cost-Effective In-Context Learning for Entity Resolution: A Design Space Explorationcited by 15
- 2024The Promises and Pitfalls of LLM Annotations in Dataset Labeling: a Case Study on Media Bias Detectioncited by 15
- 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomnesscited by 14
- 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinementcited by 13
- 2024The Impact of Prompt Programming on Function-Level Code Generationcited by 13
- 2023Ambiguity-Aware In-Context Learning with Large Language Modelscited by 11
- 2024Empowering Language Models with Active Inquiry for Deeper Understandingcited by 11
12 most cited of 39 All 39 (JSON)
- 2026Stigma and Support in Online Sexual Violence Narratives on Reddit11 Aug 2026
- 2026Activation-Based Active Learning for In-Context Learning: Challenges and Insights3 Jun 2026
- 2026Reading Calibrated Uncertainty from Language Model Trajectories19 May 2026
- 2026Active In-Context Learning for Tabular Foundation Models28 Mar 2026
- 2026KA2L: A Knowledge-Aware Active Learning Framework for LLMs18 Mar 2026
- 2026Adaptive Data Augmentation with Multi-armed Bandit: Sample-Efficient Embedding Calibration for Implicit Pattern Recognition22 Feb 2026
- 2026From Competition to Collaboration: Designing Sustainable Mechanisms Between LLMs and Online Forums4 Feb 2026
- 2025Active Learning for GCN-based Action Recognition26 Nov 2025
- 2025From Human Annotation to Automation: LLM-in-the-Loop Active Learning for Arabic Sentiment Analysis27 Sep 2025
- 2025Towards Multimodal Active Learning: Efficient Learning with Limited Paired Data25 Sep 2025
- 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspective11 Aug 2025
- 2025Reconstructing Biological Pathways by Applying Selective Incremental Learning to (Very) Small Language Models6 Jul 2025
12 newest of 39 All 39 (JSON)