Research map / Large language models / Language, safety and interpretability
More Samples or More Prompts? Exploring Effective Few-Shot In-Context Learning for LLMs with In-Context Sampling
Bingsheng Yao, Guiming Chen, Ruishi Zou, Yuxuan Lu, Jiachen Li, Shao Zhang, Yisi Sang, Sijia Liu, James Hendler, Dakuo Wang
Northeastern University · Rensselaer Polytechnic Institute · The Chinese University of Hong Kong · Tongji University · Shanghai Jiao Tong University · Michigan State 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
- CommonsenseQA leaderboard accuracy 81 · rank 25 of 72 papers
- MultiNLI leaderboard accuracy 60 · rank 9 of 12 papers
- ANLI leaderboard accuracy 58 · rank 13 of 23 papers
- e-SNLI leaderboard accuracy 59 · rank 13 of 13 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace single-prompt ICL with random ICS (multiple prompts + majority vote) | Mistral-7B · e-SNLI | accuracy (%): 64.742 -> 72.57 | Improved |
| replace single-prompt ICL with random ICS | Mistral-7B · Contract-NLI | accuracy (%): 78.83 -> 86.69 | Improved |
| replace ICL with random ICS | FLAN-T5-XL · five datasets | accuracy | Mixed |
| replace ICL with random ICS | Mistral-7B and Mixtral-8x7B · five datasets | accuracy: more than 5% average | Improved |
| increase demonstration candidates n beyond 100 (ablation) | ICS · five datasets | accuracy | No clear effect |
| use similarity sampling for candidate selection instead of random (ablation) | ICS on Mistral-7B · e-SNLI | accuracy (%): 72.57 -> 74.11 | Improved |
| use similarity instead of random prompt augmentation (with similarity sampling) (ablation) | ICS on Mistral-7B · e-SNLI | accuracy (%): 74.11 -> 73.63 | Hurt |
| non-random strategy for candidate sampling vs prompt augmentation (ablation) | ICS on Mistral-7B · 4 NLI datasets | accuracy | Mixed |
| apply ICS to GPT-3.5 | GPT-3.5 · e-SNLI, Multi-NLI, ANLI, CQA | accuracy: 0.57 -> 0.59 (e-SNLI); 0.78 -> 0.81 (CQA) | Improved |
| add more demonstrations (1 to 3) to FLAN-T5-XL (ablation) | FLAN-T5-XL ICL · Contract-NLI | accuracy (%): 2.48 (0-shot) -> 19.39 (1-shot) -> 22.88 (3-shot) | Mixed |
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
- kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inference (ICLR 2023 · similarity 0.91)
- In-Context Principle Learning from Mistakes (ICML 2024 · similarity 0.90)
- Is In-Context Learning Sufficient for Instruction Following in LLMs? (ICLR 2025 · similarity 0.89)
- Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineering (ICLR 2024 · similarity 0.88)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.88)
- Towards Auto-Regressive Next-Token Prediction: In-context Learning Emerges from Generalization (ICLR 2025 · similarity 0.88)
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.