DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer
Ruoyu Wang, Junda Wu, Yu Xia, Tong Yu, Ryan A. Rossi, Julian McAuley, Lina Yao

TL;DR
DICE introduces a theoretically grounded, stepwise demonstration selection method for LLM agents that improves reasoning performance by dynamically choosing relevant examples at each step, enhancing robustness and efficiency.
Contribution
The paper presents DICE, a general framework for in-context example selection that decomposes knowledge, formalizes a stepwise selection criterion, and demonstrates its effectiveness without additional training.
Findings
DICE improves agent performance across multiple domains.
The method reduces reliance on heuristics for demonstration selection.
Experimental results show enhanced robustness and efficiency.
Abstract
Large language model-based agents, empowered by in-context learning (ICL), have demonstrated strong capabilities in complex reasoning and tool-use tasks. However, existing works have shown that the effectiveness of ICL is highly sensitive to the choice of demonstrations, with suboptimal examples often leading to unstable or degraded performance. While prior work has explored example selection, including in some agentic or multi-step settings, existing approaches typically rely on heuristics or task-specific designs and lack a general, theoretically grounded criterion for what constitutes an effective demonstration across reasoning steps. Therefore, it is non-trivial to develop a principled, general-purpose method for selecting demonstrations that consistently benefit agent performance. In this paper, we address this challenge with DICE, Dynamic In-Context Example Selection for LLM…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Multi-Agent Systems and Negotiation
