atlas

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

Demonstration Selection for In-Context Learning via Reinforcement Learning

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Theory of autoregressive reasoning · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RDES, an RL-based (Q-learning and PPO variant) demonstration selection method that balances relevance and label-distribution diversity for in-context learning on intent classification and reasoning tasks.

Problem

Selecting demonstrations for in-context learning that are both relevant and diverse, since similarity-based selection can overfit and fixed strategies do not adapt to the task.

Approach

Frames demonstration selection as a finite-horizon MDP solved with tabular Q-learning or PPO, with a reward combining prediction correctness and a label-distribution diversity gain, while the LLM stays frozen.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add CoT reasoning to RDES (ablation)RDES on closed-source LLMs · BANKING77accuracy: 0.737 -> 0.838Helped
Add CoT reasoning to RDES (ablation)RDES on closed-source LLMs · CLINC150accuracy: 0.835 -> 0.902Helped
Add CoT reasoning to RDES (ablation)RDES on closed-source LLMs · HWU64accuracy: 0.748 -> 0.872Helped
Add CoT reasoning to RDES (ablation)RDES on closed-source LLMs · LIU54accuracy: 0.707 -> 0.824Helped
Add CoT reasoning to RDES (ablation)RDES on open-source LLMs · BANKING77accuracy: 0.708 -> 0.845Helped
Add CoT reasoning to RDES (ablation)RDES on open-source LLMs · CLINC150accuracy: 0.800 -> 0.731Hurt
Add CoT reasoning to RDES (ablation)RDES on open-source LLMs · HWU64accuracy: 0.776 -> 0.853Helped
Add CoT reasoning to RDES (ablation)RDES on open-source LLMs · LIU54accuracy: 0.686 -> 0.786Helped
Add the diversity mechanism (ablation)RDES/C on closed-source LLMs · BANKING77accuracy: 0.600 -> 0.838Helped
Add the diversity mechanism (ablation)RDES/C on closed-source LLMs · CLINC150accuracy: 0.770 -> 0.902Helped
Add the diversity mechanism (ablation)RDES/C on closed-source LLMs · HWU64accuracy: 0.690 -> 0.872Helped
Add the diversity mechanism (ablation)RDES/C on closed-source LLMs · LIU54accuracy: 0.640 -> 0.824Helped

Surprising findings

Limitations

Experimental setup

Datasets: BANKING77 CLINC150 HWU64 LIU54 BigBenchHard (boolean expressions, web of lies) GSM-8K SST5

Benchmarks: BANKING77 CLINC150 HWU64 LIU54 BigBenchHard GSM-8K SST5

Metrics: accuracy

Baselines: Zero-Shot Prompting Knowledge Prompting Least-to-Most Prompting Chain of Thought Self-Refine Few-Shot Prompting Few-Shot with CoT Active Demonstration Selection (AES) Representative Demonstration Selection (RDS) ADAICL

Builds on: Proximal Policy Optimization Q-learning chain-of-thought prompting Adaptive Demonstration Selection (ADAICL) Representative demonstration selection (RDS)

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