mlsanityData to 14 Oct 2026

Are Human-generated Demonstrations Necessary for In-context Learning?

arXiv 2309.14681 ↗First posted 26 Sep 2023cs.LG cs.AIcited by 11

Not on the map. Why?

Abstract (arXiv)

Despite the promising few-shot ability of large language models (LLMs), the standard paradigm of In-context Learning (ICL) suffers the disadvantages of susceptibility to selected demonstrations and the intricacy to generate these demonstrations. In this paper, we raise the fundamental question that whether human-generated demonstrations are necessary for ICL. To answer this question, we propose self-contemplation prompting strategy (SEC), a paradigm free from human-crafted demonstrations. The key point of SEC is that, instead of using hand-crafted examples as demonstrations in ICL, SEC asks LLMs to first create demonstrations on their own, based on which the final output is generated. SEC is a flexible framework and can be adapted to both the vanilla ICL and the chain-of-thought (CoT), but with greater ease: as the manual-generation process of both examples and rationale can be saved. Extensive experiments in arithmetic reasoning, commonsense reasoning, multi-task language understanding, and code generation benchmarks, show that SEC, which does not require hand-crafted demonstrations, significantly outperforms the zero-shot learning strategy, and achieves comparable results to ICL with hand-crafted demonstrations. This demonstrates that, for many tasks, contemporary LLMs possess a sufficient level of competence to exclusively depend on their own capacity for decision making, removing the need for external training data. Code is available at https://github.com/ruili33/SEC.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 26 Sep 2023.

Builds on

38 of 47 references.

References · 38

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  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. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  8. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  10. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  11. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  12. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
26 more
  1. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  2. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
  3. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
  4. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  7. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  8. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  9. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  10. 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 752
  11. 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
  12. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
  13. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
  14. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  15. 2023Instruction Tuning for Large Language Models: A Surveycited by 623
  16. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 488
  17. 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 388
  18. 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
  19. 2022Can language models learn from explanations in context?cited by 249
  20. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
  21. 2022Active Example Selection for In-Context Learningcited by 196
  22. 2023Text Classification via Large Language Modelscited by 106
  23. 2023Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performancecited by 102
  24. 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
  25. 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
  26. 2023Pushing the Limits of ChatGPT on NLP Taskscited by 27

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 8; 2025: 1.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Dr.ICL: Demonstration-Retrieved In-context Learning
  2. 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrations
  3. 2026Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning
  4. 2026Demonstrations, CoT, and Prompting: A Theoretical Analysis of ICL
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
  6. 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
  7. 2022Can In-context Learners Learn a Reasoning Concept from Demonstrations?
  8. 2023How Many Demonstrations Do You Need for In-context Learning?