Enhancing In-Context Learning via Implicit Demonstration Augmentation
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2019How Can We Know What Language Models Know?cited by 953
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2020Long-tail learning via logit adjustmentcited by 605
30 more
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2021A Survey of Data Augmentation Approaches for NLPcited by 408
- 2021True Few-Shot Learning with Language Modelscited by 343
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2018Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relationscited by 201
- 2022Active Example Selection for In-Context Learningcited by 195
- 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2019Implicit Semantic Data Augmentation for Deep Networkscited by 106
- 2021An Empirical Survey of Data Augmentation for Limited Data Learning in NLPcited by 101
- 2021MetaSAug: Meta Semantic Augmentation for Long-Tailed Visual Recognitioncited by 99
- 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 88
- 2023Mitigating Label Biases for In-context Learningcited by 88
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2020AdvAug: Robust Adversarial Augmentation for Neural Machine Translationcited by 66
- 2022Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Datacited by 61
- 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2022Prompt Injection: Parameterization of Fixed Inputscited by 35
- 2021Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classificationcited by 24
- 2019Controlled Text Generation for Data Augmentation in Intelligent Artificial Agentscited by 20
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
- 2016Noisy Parallel Approximate Decoding for Conditional Recurrent Language Modelcited by 18
- 2022Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Taskscited by 13
- 2021Which Samples Should be Learned First: Easy or Hard?cited by 12
- 2023Investigating the Learning Behaviour of In-context Learning: A Comparison with Supervised Learningcited by 11
- 2022DoubleMix: Simple Interpolation-Based Data Augmentation for Text Classificationcited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 5.
6 papers.
- 2025HomeBench: Evaluating LLMs in Smart Homes with Valid and Invalid Instructions Across Single and Multiple Devicescited by 15
- 2025Dequantified Diffusion-Schr"odinger Bridge for Density Ratio Estimationcited by 11
- 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 5
- 2024Comparative Analysis of Demonstration Selection Algorithms for LLM In-Context Learningcited by 3
- 2025Flipping Knowledge Distillation: Leveraging Small Models' Expertise to Enhance LLMs in Text Matchingcited by 3
- 2025Pastiche Novel Generation Creating: Fan Fiction You Love in Your Favorite Author's Stylecited by 1
- 2025Flipping Knowledge Distillation: Leveraging Small Models' Expertise to Enhance LLMs in Text Matching8 Jul 2025
- 2025Scaling Textual Gradients via Sampling-Based Momentum31 May 2025
- 2025HomeBench: Evaluating LLMs in Smart Homes with Valid and Invalid Instructions Across Single and Multiple Devices26 May 2025
- 2025Dequantified Diffusion-Schr"odinger Bridge for Density Ratio Estimation8 May 2025
- 2025Pastiche Novel Generation Creating: Fan Fiction You Love in Your Favorite Author's Style21 Feb 2025
- 2024Comparative Analysis of Demonstration Selection Algorithms for LLM In-Context Learning30 Oct 2024