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

基于大语言模型MathAgent的复杂数学推理建模

Modeling Complex Mathematical Reasoning via Large Language Model based MathAgent

Haoran Liao, Qinyi Du, Shaohua Hu, Hao He, Yanyan Xu, Jidong Tian, Yaohui Jin

AI总结:

针对大语言模型复杂数学推理能力不足的问题,提出PRER零样本智能体框架及两款MathAgent,在多个数学基准上显著超越GPT-4,为LLM智能体行为研究提供新视角。

摘要:

大语言模型(LLM)在求解复杂数学问题时面临挑战,这类问题需要具备解析题干、关联领域知识、执行复合逻辑推理以及整合中间推理过程的综合能力。一次性解决所有这些问题对LLM而言可能十分艰巨,进而会导致生成过程出现混乱。在本研究中,我们通过对数学推理过程进行精细分解与建模,探索借助智能体增强LLM的潜力。具体而言,我们提出了数学求解的形式化描述,并基于智能体框架扩展了LLM,提出了名为Planner-Reasoner-Executor-Reflector(PRER,规划器-推理器-执行器-反思器)的零样本框架。我们进一步提出并实现了两个MathAgent(数学智能体),它们通过不同粒度与方向的动作池定义逻辑形式与内在关联:MathAgent-M的动作适配LLM,MathAgent-H的动作则与人类行为对齐。在miniF2F和MATH数据集上的实验证明了PRER及所提MathAgent的有效性,相较于GPT-4,其在MiniF2F上提升了12.3%(从53.9%升至66.2%),在MATH上提升了9.2%(从49.8%升至59.0%),在MATH的5级难度问题上提升了13.2%(从23.2%升至35.4%)。进一步的分析结果为挖掘LLM作为智能体的行为特性提供了更具洞见的视角。

英文摘要:

Large language models (LLMs) face challenges in solving complex mathematical problems that require comprehensive capacities to parse the statements, associate domain knowledge, perform compound logical reasoning, and integrate the intermediate rationales. Tackling all these problems once could be arduous for LLMs, thus leading to confusion in generation. In this work, we explore the potential of enhancing LLMs with agents by meticulous decomposition and modeling of mathematical reasoning process. Specifically, we propose a formal description of the mathematical solving and extend LLMs with an agent-based zero-shot framework named $\bf{P}$lanner-$\bf{R}$easoner-$\bf{E}$xecutor-$\bf{R}$eflector (PRER). We further provide and implement two MathAgents that define the logical forms and inherent relations via a pool of actions in different grains and orientations: MathAgent-M adapts its actions to LLMs, while MathAgent-H aligns with humankind. Experiments on miniF2F and MATH have demonstrated the effectiveness of PRER and proposed MathAgents, achieving an increase of $12.3\%$($53.9\%\xrightarrow{}66.2\%$) on the MiniF2F, $9.2\%$ ($49.8\%\xrightarrow{}59.0\%$) on MATH, and $13.2\%$($23.2\%\xrightarrow{}35.4\%$) for level-5 problems of MATH against GPT-4. Further analytical results provide more insightful perspectives on exploiting the behaviors of LLMs as agents.

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

↑