Dynamic Demonstrations Controller for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) is a new paradigm for natural language processing (NLP), where a large language model (LLM) observes a small number of demonstrations and a test instance as its input, and directly makes predictions without updating model parameters. Previous studies have revealed that ICL is sensitive to the selection and the ordering of demonstrations. However, there are few studies regarding the impact of the demonstration number on the ICL performance within a limited input length of LLM, because it is commonly believed that the number of demonstrations is positively correlated with model performance. In this paper, we found this conclusion does not always hold true. Through pilot experiments, we discover that increasing the number of demonstrations does not necessarily lead to improved performance. Building upon this insight, we propose a Dynamic Demonstrations Controller (D2Controller), which can improve the ICL performance by adjusting the number of demonstrations dynamically. The experimental results show that D2Controller yields a 4.6% relative improvement on ten different sizes of LLMs across ten datasets. Moreover, we also extend our method to previous ICL models and achieve competitive results.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 18 of its 28 references that are in the map. First posted on arXiv 30 Sep 2023.
Builds on
18 of 28 references.
References · 18
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 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
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
- 2022Active Example Selection for In-Context Learningcited by 196
6 more
- 2023Unified Demonstration Retriever for In-Context Learningcited by 142
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 89
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1; 2026: 1.
6 papers.
- 2024Focused Large Language Models are Stable Many-Shot Learnerscited by 8
- 2024Knowledge Tagging System on Math Questions via LLMs with Flexible Demonstration Retrievercited by 6
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfercited by 5
- 2024The Whole is Better than the Sum: Using Aggregated Demonstrations in In-Context Learning for Sequential Recommendationcited by 4
- 2023Low-resource classification of mobility functioning information in clinical sentences using large language modelscited by 0
- 2026Learning to Retrieve Navigable Candidates for Efficient Vision-and-Language Navigationcited by 0
- 2026Learning to Retrieve Navigable Candidates for Efficient Vision-and-Language Navigation17 Feb 2026
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer31 Jul 2025
- 2024Focused Large Language Models are Stable Many-Shot Learners26 Aug 2024
- 2024Knowledge Tagging System on Math Questions via LLMs with Flexible Demonstration Retriever19 Jun 2024
- 2024The Whole is Better than the Sum: Using Aggregated Demonstrations in In-Context Learning for Sequential Recommendation15 Mar 2024
- 2023Low-resource classification of mobility functioning information in clinical sentences using large language models15 Dec 2023