mlsanityData to 14 Oct 2026

Active Learning Principles for In-Context Learning with Large Language Models

arXiv 2305.14264 ↗First posted 23 May 2023cs.CL cs.AIcited by 54

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  10. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
  11. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  12. 2022Emergent Abilities of Large Language Modelscited by 2,512
38 more
  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  2. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  4. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  5. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  6. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  7. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  9. 2017Deep Bayesian Active Learning with Image Datacited by 819
  10. 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 752
  11. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  12. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  13. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  14. 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
  15. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  16. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  17. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
  18. 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 417
  19. 2023Larger language models do in-context learning differentlycited by 394
  20. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  21. 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 298
  22. 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 252
  23. 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 222
  24. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
  25. 2018Hate Speech Dataset from a White Supremacy Forumcited by 198
  26. 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 196
  27. 2022Active Example Selection for In-Context Learningcited by 196
  28. 2022In-context Examples Selection for Machine Translationcited by 172
  29. 2021Active Learning by Acquiring Contrastive Examplescited by 156
  30. 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
  31. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
  32. 2023Compositional Exemplars for In-context Learningcited by 144
  33. 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
  34. 2020Deep Learning Based Text Classification: A Comprehensive Reviewcited by 141
  35. 2021The Benchmark Lotterycited by 136
  36. 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
  37. 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
  38. 2017Deep Active Learning for Named Entity Recognitioncited by 108

50 most cited of 74 All 74 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 6; 2024: 21; 2025: 17; 2026: 10.

54 papers.

Sort:

By area:

  1. 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 494
  2. 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Surveycited by 95
  3. 2024Position: Bayesian Deep Learning is Needed in the Age of Large-Scale AIcited by 62
  4. 2024Active Preference Learning for Large Language Modelscited by 58
  5. 2024A Survey on Deep Active Learning: Recent Advances and New Frontierscited by 54
  6. 2023Large Language Models as Annotators: Enhancing Generalization of NLP Models at Minimal Costcited by 33
  7. 2024Causal Prompting: Debiasing Large Language Model Prompting based on Front-Door Adjustmentcited by 30
  8. 2025Understanding the Uncertainty of LLM Explanations: A Perspective Based on Reasoning Topologycited by 25
  9. 2024Data Poisoning for In-context Learningcited by 21
  10. 2025CER: Confidence Enhanced Reasoning in LLMscited by 17
  11. 2024Fine-tuning Large Language Models for Entity Matchingcited by 16
  12. 2023Cost-Effective In-Context Learning for Entity Resolution: A Design Space Explorationcited by 15
38 more
  1. 2024The Promises and Pitfalls of LLM Annotations in Dataset Labeling: a Case Study on Media Bias Detectioncited by 15
  2. 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomnesscited by 14
  3. 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinementcited by 13
  4. 2024The Impact of Prompt Programming on Function-Level Code Generationcited by 13
  5. 2023Ambiguity-Aware In-Context Learning with Large Language Modelscited by 11
  6. 2024Empowering Language Models with Active Inquiry for Deeper Understandingcited by 11
  7. 2025Active Learning for Direct Preference Optimizationcited by 10
  8. 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 10
  9. 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Processcited by 9
  10. 2024DISCERN: Decoding Systematic Errors in Natural Language for Text Classifierscited by 8
  11. 2024Automate Knowledge Concept Tagging on Math Questions with LLMscited by 6
  12. 2024Learning from Natural Language Explanations for Generalizable Entity Matchingcited by 6
  13. 2024Multiple Sources are Better Than One: Incorporating External Knowledge in Low-Resource Glossingcited by 5
  14. 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfercited by 5
  15. 2025Causal Prompting for Implicit Sentiment Analysis with Large Language Modelscited by 4
  16. 2025Towards Multimodal Active Learning: Efficient Learning with Limited Paired Datacited by 3
  17. 2023Take One Step at a Time to Know Incremental Utility of Demonstration: An Analysis on Reranking for Few-Shot In-Context Learningcited by 2
  18. 2024Active Learning for NLP with Large Language Modelscited by 2
  19. 2024COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptationcited by 2
  20. 2025Enhancing RAG with Active Learning on Conversation Records: Reject Incapables and Answer Capablescited by 2
  21. 2025Reassessing Active Learning Adoption in Contemporary NLP: A Community Surveycited by 2
  22. 2026Learning to Select Visual In-Context Demonstrationscited by 2
  23. 2026Active In-Context Learning for Tabular Foundation Modelscited by 2
  24. 2023Enhancing Machine Translation through Advanced In-Context Learning: A Methodological Strategy for GPT-4 Improvementcited by 1
  25. 2024Actor Identification in Discourse: A Challenge for LLMs?cited by 1
  26. 2025Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detectioncited by 1
  27. 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusionscited by 1
  28. 2025Reconstructing Biological Pathways by Applying Selective Incremental Learning to (Very) Small Language Modelscited by 1
  29. 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspectivecited by 1
  30. 2025From Deferral to Learning: Online In-Context Knowledge Distillation for LLM Cascadescited by 1
  31. 2026Reading Calibrated Uncertainty from Language Model Trajectoriescited by 1
  32. 2024Experimental Design for Active Transductive Inference in Large Language Modelscited by 0
  33. 2024Mitigating Biases to Embrace Diversity: A Comprehensive Annotation Benchmark for Toxic Languagecited by 0
  34. 2025From Human Annotation to Automation: LLM-in-the-Loop Active Learning for Arabic Sentiment Analysiscited by 0
  35. 2025Active Learning for GCN-based Action Recognitioncited by 0
  36. 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classificationcited by 0
  37. 2026Nearly Optimal Active Preference Learning and Its Application to LLM Alignmentcited by 0
  38. 2026From Competition to Collaboration: Designing Sustainable Mechanisms Between LLMs and Online Forumscited by 0

50 most cited of 54 All 54 (JSON)