Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis,, Hannaneh Hajishirzi, Luke Zettlemoyer

TL;DR
This paper reveals that in-context learning in large language models relies more on demonstration format and input distribution than on ground truth labels, challenging previous assumptions about how models learn from demonstrations.
Contribution
It demonstrates that ground truth labels are not essential in demonstrations, highlighting the importance of format, label space, and input distribution in in-context learning.
Findings
Randomly replacing labels barely affects performance.
Demonstrations convey the label space and input distribution.
Format consistency of demonstrations is crucial for success.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · 15 Ways to Contact How can i speak to someone at Delta Airlines · Attention Is All You Need · Linear Layer · Cosine Annealing · Adam · Softmax · Multi-Head Attention · Linear Warmup With Cosine Annealing · Byte Pair Encoding
