Research map / Large language models / Language, safety and interpretability
Revisiting Demonstration Selection Strategies in In-Context Learning
Keqin Peng, Liang Ding, Yancheng Yuan, Xuebo Liu, Min Zhang, Yuanxin Ouyang, Dacheng Tao
Beihang University · The University of Sydney · The Hong Kong Polytechnic University · Harbin Institute of Technology · Nanyang Technological University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- SST-2 leaderboard accuracy 95.4 · rank 44 of 272 papers
- QNLI leaderboard accuracy 66.4 · rank 90 of 92 papers
- MNLI leaderboard accuracy 59.5 · rank 75 of 78 papers
- Subj leaderboard accuracy 85.8 · rank 52 of 54 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add ConE reranking of TopK candidates | TopK · SST-2, Subj, MNLI, QNLI (Llama2-7B) | accuracy: Subj 80.4 -> 85.8; QNLI 61.3 -> 66.4; average 76.1 -> 77.9 | Improved |
| add ConE reranking instead of MDL reranking | TopK + MDL · 7 NLU tasks (Llama2-7B) | average accuracy: 76.7 -> 77.9 | Improved |
| add ConE reranking | TopK · CR and SST-5 (Llama2-7B) | accuracy: CR 92.8 -> 93.1; SST-5 52.6 -> 52.5 | No clear effect |
| add ConE reranking | TopK · Flores-200 En-Zh, Ru-De, De-Ru (3-shot, Llama2-7B) | COMET20: Ru-De 46.8 -> 47.9; De-Ru 53.1 -> 55.3 | Improved |
| add ConE reranking | TopK · Flores-200 Ru-De (1-shot, Llama2-7B) | COMET20: 43.9 -> 43.9 | No clear effect |
| add ConE reranking | TopK · mixed-domain pool, Zh-En (3-shot, Llama2-7B) | COMET: ecommerce 7.5 -> 9.5; news 35.3 -> 36.3; social 33.3 -> 34.4 | Improved |
| add ConE reranking | TopK · mixed-domain pool, En-Zh social (1-shot, Llama2-7B) | COMET: 6.1 -> 4.8 | Hurt |
| add ConE reranking to Random selection (ablation) | Random · SST-2 (GPT2-XL) | accuracy: +7.5 | Improved |
| add ConE reranking | TopK · order sensitivity: SST-2, Subj, CR (GPT2-XL) | accuracy average and variance: SST-2 78.6 -> 82.0 with Var. 0.56 -> 0.26; Subj 86.2 -> 91.0 | Improved |
| shuffle spans of three consecutive tokens in the test input (ablation) | TopK ICL · SST-2, SST-5, Subj (1-shot, GPT2-XL) | accuracy: SST-2 81.9 -> 52.7; Subj 89.8 -> 54.3 | Hurt |
| increase number of in-context examples to 16 (ablation) | TopK + ConE · 7 NLU tasks average (GPT2-XL) | accuracy | Hurt |
| increase number of TopK candidates (ablation) | TopK + ConE · 4-shot (GPT2-XL) | accuracy | Improved |
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract) (AAAI 2025 · similarity 0.96)
- Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learning (ACL 2025 · similarity 0.95)
- The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional Analysis (ACL 2024 · similarity 0.93)
- Are Human-generated Demonstrations Necessary for In-context Learning? (ICLR 2024 · similarity 0.91)
- Mixture of Demonstrations for In-Context Learning (NeurIPS 2024 · similarity 0.90)
- Large Language Models are Demonstration Pre-Selectors for Themselves (ICML 2025 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.