mlsanityData to 14 Oct 2026

Deconstructing In-Context Learning: Understanding Prompts via Corruption

arXiv 2404.02054 ↗First posted 2 Apr 2024cs.CLcited by 4

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  9. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  10. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  12. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
35 more
  1. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  2. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  3. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  4. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  5. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  8. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  9. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  10. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  11. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
  12. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
  13. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  14. 2022Transformers learn in-context by gradient descentcited by 732
  15. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
  16. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  17. 2023Larger language models do in-context learning differentlycited by 394
  18. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  19. 2019Revealing the Dark Secrets of BERTcited by 301
  20. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
  21. 2022Can language models learn from explanations in context?cited by 249
  22. 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
  23. 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 222
  24. 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
  25. 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
  26. 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
  27. 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
  28. 2023Symbol tuning improves in-context learning in language modelscited by 75
  29. 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 67
  30. 2021Prompt Waywardness: The Curious Case of Discretized Interpretation of Continuous Promptscited by 64
  31. 2021True Few-Shot Learning with Prompts -- A Real-World Perspectivecited by 38
  32. 2021MSP: Multi-Stage Prompting for Making Pre-trained Language Models Better Translatorscited by 35
  33. 2022Transforming Sequence Tagging Into A Seq2Seq Taskcited by 15
  34. 2022Do Prompts Solve NLP Tasks Using Natural Language?cited by 5
  35. 2022Life after BERT: What do Other Muppets Understand about Language?cited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 3.

4 papers.