mlsanityData to 14 Oct 2026

Dynamic Demonstrations Controller for In-Context Learning

arXiv 2310.00385 ↗First posted 30 Sep 2023cs.CL cs.AIcited by 6

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  6. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  8. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  9. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  10. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  11. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
  12. 2022Active Example Selection for In-Context Learningcited by 196
6 more
  1. 2023Unified Demonstration Retriever for In-Context Learningcited by 142
  2. 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
  3. 2023Finding Support Examples for In-Context Learningcited by 104
  4. 2022An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labelscited by 89
  5. 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
  6. 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47

Built on by

Cited by year (2026 to 14 Oct)

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

6 papers.