[Paper Review] Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
The paper shows ground-truth input-label mappings in demonstrations are not strictly necessary for in-context learning; instead, the label space, input distribution, and format of demonstrations drive most gains, with meta-training amplifying these effects.
Large language models (LMs) are able to in-context learn -- perform a new task via inference alone by conditioning on a few input-label pairs (demonstrations) and making predictions for new inputs. However, there has been little understanding of how the model learns and which aspects of the demonstrations contribute to end task performance. In this paper, we show that ground truth demonstrations are in fact not required -- randomly replacing labels in the demonstrations barely hurts performance on a range of classification and multi-choce tasks, consistently over 12 different models including GPT-3. Instead, we find that other aspects of the demonstrations are the key drivers of end task performance, including the fact that they provide a few examples of (1) the label space, (2) the distribution of the input text, and (3) the overall format of the sequence. Together, our analysis provides a new way of understanding how and why in-context learning works, while opening up new questions about how much can be learned from large language models through inference alone.
Motivation & Objective
- Investigate why in-context learning (ICL) improves over zero-shot in large language models.
- Assess the importance of ground-truth input-label mappings in demonstrations.
- Identify which aspects of demonstrations (label space, input distribution, format) contribute to ICL performance.
- Examine how meta-training with an in-context learning objective affects reliance on demonstration components.
Proposed method
- Evaluate 12 language models across classification and multiple-choice tasks with demonstrations using gold labels, random labels, or no demonstrations.
- Systematically ablate demonstration components including input distribution, label space, and format.
- Compare direct and channel prompting methods to parse different conditioning signals.
- Utilize 26 datasets to assess robustness across tasks and domains.
- Default to k=16 demonstration examples and test with varying k and templates.
Experimental results
Research questions
- RQ1Does ground-truth input-label mapping in demonstrations critically affect ICL performance?
- RQ2Which aspects of demonstrations (input distribution, label space, format) most influence ICL success?
- RQ3How does meta-training with an in-context learning objective alter the sensitivity to demonstration components?
- RQ4To what extent can models retain ICL gains when using alternative demonstration signals (e.g., random labels, OOD inputs)?
Key findings
- Replacing gold labels with random labels in demonstrations barely reduces performance across most models and tasks.
- Both the label space and the distribution of input text are key drivers of ICL performance, even when labels are incorrect.
- Maintaining the overall format of demonstrations is crucial, and random English words as labels can outperform having no labels.
- Meta-training with an in-context learning objective magnifies the reliance on simpler demonstration aspects like format over input-label mappings.
- The model can achieve near k-shot performance without labeled data by pairing unlabeled inputs with random labels, highlighting strong zero-shot potential.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.