Research map / Large language models / Language, safety and interpretability
Learning To Retrieve Prompts for In-Context Learning
Ohad Rubin, Jonathan Herzig, Jonathan Berant
Tel Aviv University
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
10improved
2no clear effect
2hurt
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 |
|---|---|---|---|
| train a dense prompt retriever on LM-scored positives/negatives (EPR) instead of using BM25 | GPT-Neo in-context learning · BREAK dev | LF-EM: 26.0 -> 31.9 | Improved |
| train EPR instead of using best baseline | GPT-Neo · MTop dev | EM: 57.0 -> 64.2 | Improved |
| train EPR instead of using best baseline | GPT-Neo · SMCalFlow dev | EM: 51.4 -> 54.3 | Improved |
| train EPR instead of BM25/CBR | GPT-Neo · BREAK test | NEM: BM25 17.6, CBR 18.4 -> 23.9 | Improved |
| label with LM probability (EPR) instead of BM25 scores (DR-BM25) (ablation) | dense retriever · BREAK dev | LF-EM: 23.6 -> 31.9 | Improved |
| retrieve with BM25 instead of SBERT (ablation) | unsupervised prompt retrieval · BREAK dev | LF-EM: 21.6 -> 26.0 | Improved |
| select prompts at test time by LM probability (BruteForce) instead of BM25 (ablation) | unsupervised baseline · BREAK dev | LF-EM: 26.0 -> 7.7 | Hurt |
| use EPR in one-shot setting | GPT-Neo · BREAK dev one-shot | LF-EM: BM25 15.2, CBR 14.5 -> 23.0 | Improved |
| use EPR with larger inference LMs (GPT-3, Codex, GPT-J) trained with GPT-Neo scoring | EPR · 1000-example dev subsets | EM / LF-EM: e.g. BREAK GPT-3 BM25 20.1 -> EPR 25.3 | Improved |
| score with GPT-J itself instead of GPT-Neo (ablation) | EPR with GPT-J inference · BREAK dev | LF-EM: 31.5 -> 33.6 | Improved |
| score with Codex itself instead of GPT-Neo (ablation) | EPR with Codex inference · BREAK dev | LF-EM: 29.5 -> 29.3 | No clear effect |
| vary k in {1,5,10} and L in {50,100} (ablation) | EPR · BREAK/MTop/SMCalFlow dev | LF-EM / EM: e.g. SMCalFlow 54.3 (k=5) vs 52.2 (k=10), 51.0 (L=100) | No clear effect |
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
- Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models (NAACL 2025 · similarity 0.90)
- Two Examples are Better than One: Context Regularization for Gradient-based Prompt Tuning (ACL 2023 · similarity 0.90)
- Supervised Knowledge Makes Large Language Models Better In-context Learners (ICLR 2024 · similarity 0.89)
- In-Context Learning with Representations: Contextual Generalization of Trained Transformers (NeurIPS 2024 · similarity 0.89)
- Where does In-context Learning Happen in Large Language Models? (NeurIPS 2024 · similarity 0.88)
- Toward Understanding In-context vs. In-weight Learning (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.