Deconstructing In-Context Learning: Understanding Prompts via Corruption
Not on the map. Why?
Abstract (arXiv)
The ability of large language models (LLMs) to ``learn in context" based on the provided prompt has led to an explosive growth in their use, culminating in the proliferation of AI assistants such as ChatGPT, Claude, and Bard. These AI assistants are known to be robust to minor prompt modifications, mostly due to alignment techniques that use human feedback. In contrast, the underlying pre-trained LLMs they use as a backbone are known to be brittle in this respect. Building high-quality backbone models remains a core challenge, and a common approach to assessing their quality is to conduct few-shot evaluation. Such evaluation is notorious for being highly sensitive to minor prompt modifications, as well as the choice of specific in-context examples. Prior work has examined how modifying different elements of the prompt can affect model performance. However, these earlier studies tended to concentrate on a limited number of specific prompt attributes and often produced contradictory results. Additionally, previous research either focused on models with fewer than 15 billion parameters or exclusively examined black-box models like GPT-3 or PaLM, making replication challenging. In the present study, we decompose the entire prompt into four components: task description, demonstration inputs, labels, and inline instructions provided for each demonstration. We investigate the effects of structural and semantic corruptions of these elements on model performance. We study models ranging from 1.5B to 70B in size, using ten datasets covering classification and generation tasks. We find that repeating text within the prompt boosts model performance, and bigger models (≥30B) are more sensitive to the semantics of the prompt. Finally, we observe that adding task and inline instructions to the demonstrations enhances model performance even when the instructions are semantically corrupted.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 47 of its 61 references that are in the map. First posted on arXiv 2 Apr 2024.
Builds on
47 of 61 references.
References · 47
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
35 more
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 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
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2022Transformers learn in-context by gradient descentcited by 732
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
- 2023Larger language models do in-context learning differentlycited by 394
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2022Can language models learn from explanations in context?cited by 249
- 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
- 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 222
- 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
- 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2023Symbol tuning improves in-context learning in language modelscited by 75
- 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 67
- 2021Prompt Waywardness: The Curious Case of Discretized Interpretation of Continuous Promptscited by 64
- 2021True Few-Shot Learning with Prompts -- A Real-World Perspectivecited by 38
- 2021MSP: Multi-Stage Prompting for Making Pre-trained Language Models Better Translatorscited by 35
- 2022Transforming Sequence Tagging Into A Seq2Seq Taskcited by 15
- 2022Do Prompts Solve NLP Tasks Using Natural Language?cited by 5
- 2022Life after BERT: What do Other Muppets Understand about Language?cited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2024Do Prompts Really Prompt? Exploring the Prompt Understanding Capability of Whispercited by 12
- 2025Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Modelscited by 3
- 2025Is In-Context Learning Learning?cited by 2
- 2025Repairing Regex Vulnerabilities via Localization-Guided Instructionscited by 0
- 2025Repairing Regex Vulnerabilities via Localization-Guided Instructions10 Oct 2025
- 2025Is In-Context Learning Learning?12 Sep 2025
- 2025Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Models3 Aug 2025
- 2024Do Prompts Really Prompt? Exploring the Prompt Understanding Capability of Whisper9 Jun 2024