scimeatlas

Research map / Large language models / Language, safety and interpretability

Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learning

Hui Liu, Wenya Wang, Hao Sun, Chris Xing Tian, Chenqi Kong, Xin Dong, Haoliang Li

ACL 2025Large language models › Language, safety and interpretabilityapproach: In-context learning analysisopen problems in this approach26 citations (OpenAlex)

City University of Hong Kong · Nanyang Technological University · Peking University · NVIDIA

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
6improved
2no clear effect
3hurt
1mixed

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.

This paper tried a common change: Larger batch size

increase the test batch size for MLSM weight learning to 8 · classification tasks · accuracy: over 4% average improvement Improved

What 943 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the final-layer BERT retriever with MLSM (multi-level layer ensemble)Top-K BERT, GPT-Neo · 5 classification tasks (avg)accuracy: 47.94 -> 49.36Improved
replace the best unsupervised retriever with MLSMTop-K BM25, GPT-Neo · 5 generation tasks (avg)exact match: 46.48 -> 48.59Improved
fine-tune the retriever on labeled demonstration data (TTF) instead of LLM-labeled proxy taskEPR/CEIL, GPT-Neo · 5 classification tasks (avg)accuracy: 55.79 -> 61.06Improved
use TTF (T5) instead of EPR for generationEPR, GPT-Neo · 5 generation tasks (avg)exact match: 53.43 -> 48.80Hurt
replace EPR with MLSM when transferring across tasksEPR · cross-task transferaccuracy/EMImproved
increase the test batch size for MLSM weight learning to 8 (ablation)MLSM · classification tasksaccuracy: over 4% average improvementImproved
combine MLSM with the TTF-trained retriever (ablation)TTF · 5 classification tasks (avg)accuracy: 61.06 -> 53.69Hurt
combine MLSM with the TTF-trained retriever (ablation)MLSM · 5 classification tasks (avg)accuracy: 49.36 -> 53.69Improved
apply MLSM/TTF to GPT-2 XL, GPT-Neo and text-davinci-002MLSM, TTF · cross-LLMabsolute gain over Top-K BERT: TTF avg 3.82 / 12.73 / 6.11; MLSM 1.74 / 2.29 / 2.38Mixed
use TTF on MRPC with GPT-2 XLTTF · MRPC, GPT-2 XLabsolute gain over Top-K BERT: 0.00No clear effect
use MLSM instead of Top-K BERT on SWAGMLSM, GPT-Neo · SWAGaccuracy: 41.09 -> 41.49No clear effect
use MLSM instead of Top-K BM25 on Nl2BashMLSM, GPT-Neo · NL2Bashexact match: 58.81 -> 56.11Hurt

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy