scimeatlas

Research map / Large language models / Reasoning and chain of thought

Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimation

Ziniu Zhang, Zhenshuo Zhang, Dongyue Li, Lu Wang, Jennifer Dy, Hongyang R. Zhang

EMNLP 2025Large language models › Reasoning and chain of thoughtapproach: Test-time compute scalingopen problems in this approach12 citations (OpenAlex)

Northeastern University · University of Michigan

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

13measured effects
6improved
6no clear effect
1hurt

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 changedWhereMeasuredEffect
estimate subset losses with first-order gradient approximation instead of full inferencerandom ensemble selection · Coin-Flip / SST-2relative error and cost: error < 1%; 19.7x speed-up (Coin-Flip)Improved
accelerate forward selection with gradient estimationforward selection · Coin-Flipspeed-up: 37.7xImproved
gradient-estimated random ensemble instead of top-kDeepSeek-7B ICL · Modular AdditionF1: 52.2 -> 80.1Improved
gradient-estimated random ensemble instead of top-kDeepSeek-7B ICL · Poem SentimentF1: 26.3 -> 76.6Improved
gradient-estimated random ensemble instead of BRIDGEDeepSeek-7B ICL · Coin FlipF1: 74.1 -> 75.2No clear effect
gradient-estimated random ensemble instead of forward selection variantDeepSeek-7B ICL · SST-2F1: 94.2 -> 91.6Hurt
gradient estimation to accelerate top-k + CEtop-k + CE · six datasetsF1: computation reduced by 88%No clear effect
gradient estimation to accelerate top-k + CEtop-k + CE · SST-2F1: 77.2 -> 75.9No clear effect
increase projection dimension d beyond 400 (ablation)random ensemble · gradient estimationapproximation errorNo clear effect
increase number of anchor prompts to 5 (ablation)random ensemble · SST-2approximation error: error below 1%Improved
choose anchors by mean embedding instead of randomly (ablation)random ensemble · SST-2approximation error: differs by less than 2%No clear effect
start estimation in forward selection at step t > 3 (ablation)forward selection · ICLperformance: same as full forward selectionNo clear effect

Open problems in test-time compute scaling

When does spending more compute at inference pay off, and how should it be spent?

All 4 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