Process In-Context Learning: Enhancing Mathematical Reasoning via Dynamic Demonstration Insertion
Ang Gao, Changshuo Zhang, Xiao Zhang, Deyang Li, Minjun Zhao, Fangchao Liu, Xinyu Zhang

TL;DR
This paper introduces PICL, a dynamic framework that improves mathematical reasoning in large language models by adaptively inserting relevant demonstrations during inference to address confusion points and reduce errors.
Contribution
It proposes a novel dynamic demonstration insertion method that responds to real-time reasoning challenges, enhancing LLM performance on mathematical tasks.
Findings
PICL outperforms static ICL baselines in mathematical reasoning tasks.
Adaptive demonstration insertion reduces cascading errors during inference.
PICL effectively identifies and addresses confusion points in real-time.
Abstract
In-context learning (ICL) has proven highly effective across diverse large language model (LLM) tasks. However, its potential for enhancing tasks that demand step-by-step logical deduction, such as mathematical reasoning, remains underexplored. A core limitation of existing ICL approaches is their static use of demonstrations: examples are pre-selected before inference and remain fixed, failing to adapt to the dynamic confusion points that often arise during multi-step reasoning such as ambiguous calculations or logical gaps. These unresolved confusion points can lead to cascading errors that degrade final accuracy. To tackle this issue, we propose Process In-Context Learning (PICL), a dynamic demonstration integration framework designed to boost mathematical reasoning by responding to real-time inference needs. PICL operates in two stages: 1)~it identifies potential confusion points by…
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
TopicsMachine Learning and Algorithms · Bayesian Modeling and Causal Inference · Topic Modeling
