超越示例:基于MCTS的上下文学习中的高层次自动推理范式
Beyond Examples: High-level Automated Reasoning Paradigm in In-Context Learning via MCTS
AI总结:
本文提出HiAR-ICL,一种基于蒙特卡洛树搜索的高层次自动推理范式,通过构建抽象推理模式替代依赖具体示例,为模型提供动态推理指导,在多个数学基准上超越GPT-4o并具备跨领域泛化能力。
摘要:
上下文学习(ICL)使大型语言模型(LLM)能够通过高级提示和高质量示范来执行下游任务。然而,传统的ICL范式在复杂推理任务中遇到显著限制,主要源于其对示例质量的依赖以及缺乏明确的推理指导。为应对这些挑战,我们引入了HiAR-ICL,这是一种ICL中的高层次自动推理范式,将焦点从具体示例转向抽象推理模式,从而扩展了ICL中“上下文”的传统概念。我们的方法首先定义了五个原子推理动作,在此基础上采用蒙特卡洛树搜索系统地构建高层次推理模式。在推理过程中,HiAR-ICL根据问题属性动态选择合适的推理模式,为模型的推理过程提供明确指导。实验证明了HiAR-ICL的有效性和效率:仅使用200个先验样本与Qwen2.5-7B-Instruct,我们的方法在MATH上达到80.6%准确率,在AMC上达到62.5%,超越了GPT-4o的77.2%和57.5%。我们的方法提升了不同规模模型的性能,同时在不同领域间有效泛化。进一步分析表明,HiAR-ICL还可作为即插即用的推理方法,与GRPO等后训练技术兼容。代码和数据可在https://github.com/jinyangwu/HiARICL获取。
英文摘要:
In-context learning (ICL) enables large language models (LLMs) to perform downstream tasks through advanced prompting and high-quality demonstrations. However, traditional ICL paradigms encounter significant limitations in complex reasoning tasks, stemming primarily from their dependence on example quality and absence of explicit reasoning guidance. To address these challenges, we introduce HiAR-ICL, a **Hi**gh-level **A**utomated **R**easoning paradigm in **ICL** that shifts focus from specific examples to abstract reasoning patterns, thereby extending the conventional concept of "context" in ICL. Our approach begins by defining five atomic reasoning actions, upon which we employ Monte Carlo Tree Search to systematically construct high-level reasoning patterns. During inference, HiAR-ICL dynamically selects appropriate reasoning patterns based on problem attributes, providing explicit guidance for the model's reasoning process. Experiments demonstrate HiAR-ICL's effectiveness and efficiency: utilizing only 200 prior samples with Qwen2.5-7B-Instruct, our method achieves 80.6% accuracy on MATH and 62.5% on AMC, exceeding GPT-4o's 77.2% and 57.5%. Our approach enhances performance across models of varying sizes while generalizing effectively across domains. Further analysis reveals that HiAR-ICL can also serve as a plug-and-play inference method compatible with post-training techniques like GRPO. Code and data are available at https://github.com/jinyangwu/HiARICL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。