arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.11979cs.AIcs.LG
收藏

过程在上下文学习:通过动态演示插入增强数学推理

Process In-Context Learning: Enhancing Mathematical Reasoning via Dynamic Demonstration Insertion

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Huawei Poisson Lab, China(华为Poisson实验室)

Ang Gao, Changshuo Zhang, Xiao Zhang, Deyang Li, Minjun Zhao, Fangchao Liu, Xinyu Zhang

AI总结:

PICL通过动态插入相关演示来提升数学推理能力,有效缓解推理过程中的困惑问题。

摘要:

在上下文学习(ICL)已证明在多样化的大型语言模型(LLM)任务中具有高度有效性。然而,其在需要逐步逻辑推断的任务(如数学推理)中的潜力仍被低估。现有ICL方法的核心局限性在于其对演示的静态使用:演示在推理之前被预先选择并保持固定,无法适应多步推理过程中常见的动态困惑点,如模糊计算或逻辑断层。这些未解决的困惑点可能导致级联错误,从而降低最终准确性。为解决这一问题,我们提出了过程在上下文学习(PICL),一种动态演示整合框架,旨在通过响应实时推理需求来提升数学推理能力。PICL分为两个阶段:1)通过分析推理过程中的语义和熵来识别潜在的困惑点,并总结其核心特征;2)在遇到这些点时,从演示池中检索与困惑上下文匹配的相关演示,并将其直接插入到正在进行的推理过程中以指导后续步骤。实验表明,PICL通过缓解推理过程中的困惑,优于基线方法,突显了在复杂数学推理中自适应演示插入的价值。

英文摘要:

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 analyzing semantics and entropy in the reasoning process and summarizes their core characteristics; 2)~upon encountering these points, it retrieves relevant demonstrations from the demonstration pool that match the confusion context and inserts them directly into the ongoing reasoning process to guide subsequent steps. Experiments show that PICL outperforms baseline methods by mitigating mid-inference confusion, highlighting the value of adaptive demonstration insertion in complex mathematical reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑