mlsanityData to 7 Oct 2026

Enhancing In-Context Learning via Implicit Demonstration Augmentation

arXiv 2407.00100 ↗First posted 27 Jun 2024cs.LG cs.AI cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

The emergence of in-context learning (ICL) enables large pre-trained language models (PLMs) to make predictions for unseen inputs without updating parameters. Despite its potential, ICL's effectiveness heavily relies on the quality, quantity, and permutation of demonstrations, commonly leading to suboptimal and unstable performance. In this paper, we tackle this challenge for the first time from the perspective of demonstration augmentation. Specifically, we start with enriching representations of demonstrations by leveraging their deep feature distribution. We then theoretically reveal that when the number of augmented copies approaches infinity, the augmentation is approximately equal to a novel logit calibration mechanism integrated with specific statistical properties. This insight results in a simple yet highly efficient method that significantly improves the average and worst-case accuracy across diverse PLMs and tasks. Moreover, our method effectively reduces performance variance among varying demonstrations, permutations, and templates, and displays the capability to address imbalanced class distributions.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 42 of its 65 references that are in the map. First posted on arXiv 27 Jun 2024.

Builds on

42 of 65 references.

References · 42

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  6. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  7. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  10. 2019How Can We Know What Language Models Know?cited by 953
  11. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  12. 2020Long-tail learning via logit adjustmentcited by 605
30 more
  1. 2021MetaICL: Learning to Learn In Contextcited by 450
  2. 2021A Survey of Data Augmentation Approaches for NLPcited by 408
  3. 2021True Few-Shot Learning with Language Modelscited by 343
  4. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  5. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
  6. 2018Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relationscited by 201
  7. 2022Active Example Selection for In-Context Learningcited by 195
  8. 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
  9. 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
  10. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  11. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  12. 2019Implicit Semantic Data Augmentation for Deep Networkscited by 106
  13. 2021An Empirical Survey of Data Augmentation for Limited Data Learning in NLPcited by 101
  14. 2021MetaSAug: Meta Semantic Augmentation for Long-Tailed Visual Recognitioncited by 99
  15. 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 88
  16. 2023Mitigating Label Biases for In-context Learningcited by 88
  17. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  18. 2020AdvAug: Robust Adversarial Augmentation for Neural Machine Translationcited by 66
  19. 2022Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Datacited by 61
  20. 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
  21. 2023In-Context Learning with Many Demonstration Examplescited by 39
  22. 2022Prompt Injection: Parameterization of Fixed Inputscited by 35
  23. 2021Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classificationcited by 24
  24. 2019Controlled Text Generation for Data Augmentation in Intelligent Artificial Agentscited by 20
  25. 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
  26. 2016Noisy Parallel Approximate Decoding for Conditional Recurrent Language Modelcited by 18
  27. 2022Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Taskscited by 13
  28. 2021Which Samples Should be Learned First: Easy or Hard?cited by 12
  29. 2023Investigating the Learning Behaviour of In-context Learning: A Comparison with Supervised Learningcited by 11
  30. 2022DoubleMix: Simple Interpolation-Based Data Augmentation for Text Classificationcited by 10

Built on by

Cited by year

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

6 papers.