Research map / Large language models / Language, safety and interpretability
Learning to Select In-Context Demonstration Preferred by Large Language Model
Zheng Zhang, Shaocheng Lan, Lei Song, Jiang Bian, Yexin Li, Kan Ren
ShanghaiTech University · BIGAI · Microsoft Research Asia
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 · rank 58 of 272 papers
- RTE leaderboard accuracy 72.9 · rank 80 of 149 papers
- HellaSwag leaderboard accuracy 74.6 · rank 39 of 134 papers
- BoolQ leaderboard accuracy 78.1 · rank 49 of 110 papers
- AGNews leaderboard accuracy 92.6 · rank 37 of 111 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add non-preferred data in preference training (ablation) | GenICL · BoolQ | accuracy: 71.2 -> 78.1 | Improved |
| add non-preferred data in preference training (ablation) | GenICL · CommonGen | ROUGE-L: 38.7 -> 41.0 | Improved |
| add answer-level loss (ablation) | GenICL · CommonGen | ROUGE-L: 34.9 -> 41.0 | Improved |
| add demonstration-level loss (ablation) | GenICL · BoolQ | accuracy: 65.8 -> 78.1 | Improved |
| add demonstration-level loss (ablation) | GenICL · SQuAD v1 | exact match: 61.7 -> 65.7 | Improved |
| replace E5base retrieval with GenICL selection | LLaMA-7B ICL · SNLI | accuracy: 53.7 -> 84.6 | Improved |
| replace LLM-feedback-trained retriever EPR with GenICL | LLaMA-7B ICL · MultiRC | F1: Random 60.4 vs GenICL 56.9 | Hurt |
| select demonstrations with GenICL using other LLMs (GPT-Neo 2.7B, Vicuna-13B, Qwen2.5-3B, LLaMA-3.2-3B) versus LLM-R | GenICL · PAWS | accuracy: Qwen2.5-3B 70.4 -> 81.8 | Improved |
| increase number of demonstrations K too far (ablation) | GenICL · SST2 and CommonGen | accuracy / ROUGE-L | Hurt |
| change demonstration order (shuffle, descending, ascending) (ablation) | GenICL · AGNews, QQP, Gigaword, E2E NLG | accuracy / ROUGE-L: AGNews 92.8 / 92.6 / 92.8 | No clear effect |
| reuse demonstrations selected by GPT-Neo 2.7B on LLaMA-7B | GenICL · SST2 | accuracy: 92.7 -> 94.0 | Improved |
Open problems this paper states
- “Scoring every candidate is costly, and the E5 base prefilter to shrink the pool may drop valuable demonstrations.” → The method needs many extra LLM calls or passes. (an open problem in in-context learning analysis)
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
- Mixture of Demonstrations for In-Context Learning (NeurIPS 2024 · similarity 0.93)
- Revisiting Demonstration Selection Strategies in In-Context Learning (ACL 2024 · similarity 0.92)
- Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract) (AAAI 2025 · similarity 0.91)
- Are Human-generated Demonstrations Necessary for In-context Learning? (ICLR 2024 · similarity 0.90)
- Demonstration Selection for In-Context Learning via Reinforcement Learning (ICML 2025 · similarity 0.90)
- Large Language Models are Demonstration Pre-Selectors for Themselves (ICML 2025 · similarity 0.89)
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.