Research map / Large language models / Instruction and fine-tuning
Selecting Demonstrations for Many-Shot In-Context Learning via Gradient Matching
Jianfei Zhang, Bei Li, Jun Bai, Rumei Li, Yanmeng Wang, Chenghua Lin, Wenge Rong
Beihang University · Meituan · Beijing Institute for General Artificial Intelligence · Ping An Technology · University of Manchester
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| select 128-shot demonstrations with CLG instead of random | Llama3-70B · average over 9 datasets | score (%): 54.04 -> 58.85 | Improved |
| select 128-shot demonstrations with CLG instead of random | Qwen2.5-72B · average over 9 datasets | score (%): 53.23 -> 58.11 | Improved |
| select with CLG instead of random | 5 closed-source LLMs · average over 9 datasets (128-shot) | score (%): e.g. GPT-4o-mini 60.22 -> 61.48 | Improved |
| use BM25-Major or Latent-Bayesian instead of random | Llama3-70B / Qwen2.5-72B · average over 9 datasets | score (%): 54.04 -> 39.81 (BM25-Major), 54.04 -> 51.04 (Latent-Bayesian) on Llama3-70B | Hurt |
| scale from 128 to 1024 shots | CLG vs Random on Qwen2.5-72B · MNLI | accuracy (%): gain over Random +15.72 -> +3.86 | Mixed |
| scale from 128 to 1024 shots | Random and CLG on Qwen2.5-72B · MNLI and HellaSwag | accuracy (%): MNLI Random 61.57 -> 55.08 | Hurt |
| scale from 128 to 1024 shots | Random and CLG on Qwen2.5-72B · Break and SMCalFlow | score (%): SMCalFlow Random 38.23 -> 52.67 | Improved |
| select demonstrations by maximizing instead of minimizing the gradient distance (ablation) | CLG on Qwen2.5-72B · 128-shot, 9 datasets | ICL performance | Hurt |
| add 4-shot instance-level BGE-M3 demonstrations to 128-shot task-level demonstrations | Random and CLG · most datasets | ICL performance | Improved |
| select with CLG instead of random | Qwen2.5-3B label distribution · SST-5 | KL divergence: 0.020 -> 0.006 | Improved |
| select with Latent-Bayesian instead of random | label distribution · SST-5 | KL divergence: 0.020 -> 4.050 | Hurt |
Open problems in efficient LLM fine-tuning systems
Do efficient fine-tuning methods keep their gains on larger models, other languages and open-ended tasks, and what do they cost?
- Larger models than 8B to 30B were not tested. · 20 papers state it
- Experiments cover English or a few languages only. · 12 papers state it
- The method adds training, memory or inference cost. · 12 papers state it
Closest papers by meaning
- In-Context Learning with Iterative Demonstration Selection (EMNLP 2024 · similarity 0.93)
- Large Language Models are Demonstration Pre-Selectors for Themselves (ICML 2025 · similarity 0.91)
- Provoking Multi-modal Few-Shot LVLM via Exploration-Exploitation In-Context Learning (CVPR 2025 · similarity 0.91)
- Comparative Analysis of Demonstration Selection Algorithms for In-Context Learning in Large Language Models (Student Abstract) (AAAI 2025 · similarity 0.90)
- Mixture of Demonstrations for In-Context Learning (NeurIPS 2024 · similarity 0.90)
- Many-Shot In-Context Learning (NeurIPS 2024 · 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.