Are Human-generated Demonstrations Necessary for In-context Learning?
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
26 more
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 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
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 752
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 488
- 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 388
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
- 2022Can language models learn from explanations in context?cited by 249
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2022Active Example Selection for In-Context Learningcited by 196
- 2023Text Classification via Large Language Modelscited by 106
- 2023Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performancecited by 102
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2023Pushing the Limits of ChatGPT on NLP Taskscited by 27
Built on by
Citing papers per year: 2023: 2; 2024: 8; 2025: 1.
11 papers.
- 2024Many-Shot In-Context Learningcited by 206
- 2023Sentiment Analysis through LLM Negotiationscited by 11
- 2024Similarity-based Neighbor Selection for Graph LLMscited by 10
- 2024DRUM: Learning Demonstration Retriever for Large MUlti-modal Modelscited by 10
- 2024DCR: Divide-and-Conquer Reasoning for Multi-choice Question Answering with LLMscited by 5
- 2024Narrative-of-Thought: Improving Temporal Reasoning of Large Language Models via Recounted Narrativescited by 5
- 2024Seek and Solve Reasoning for Table Question Answeringcited by 3
- 2023Sim-GPT: Text Similarity via GPT Annotated Datacited by 2
- 2025Exploring In-context Example Generation for Machine Translationcited by 2
- 2024DoubleDipper: Improving Long-Context LLMs via Context Recyclingcited by 1
- 2024In-context Demonstration Matters: On Prompt Optimization for Pseudo-Supervision Refinementcited by 1
- 2025Exploring In-context Example Generation for Machine Translation31 May 2025
- 2024DRUM: Learning Demonstration Retriever for Large MUlti-modal Models10 Dec 2024
- 2024Narrative-of-Thought: Improving Temporal Reasoning of Large Language Models via Recounted Narratives7 Oct 2024
- 2024In-context Demonstration Matters: On Prompt Optimization for Pseudo-Supervision Refinement4 Oct 2024
- 2024Seek and Solve Reasoning for Table Question Answering9 Sep 2024
- 2024DoubleDipper: Improving Long-Context LLMs via Context Recycling19 Jun 2024
- 2024Many-Shot In-Context Learning17 Apr 2024
- 2024Similarity-based Neighbor Selection for Graph LLMs6 Feb 2024
- 2024DCR: Divide-and-Conquer Reasoning for Multi-choice Question Answering with LLMs10 Jan 2024
- 2023Sim-GPT: Text Similarity via GPT Annotated Data9 Dec 2023
- 2023Sentiment Analysis through LLM Negotiations3 Nov 2023
Similar, not cited
Close in wording, no citation either way
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning
- 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrations
- 2026Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning
- 2026Demonstrations, CoT, and Prompting: A Theoretical Analysis of ICL
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2022Can In-context Learners Learn a Reasoning Concept from Demonstrations?
- 2023How Many Demonstrations Do You Need for In-context Learning?