arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.09102cs.CLcs.AI
收藏

结合语言模型与符号求解器解决数学应用题

Solving Math Word Problems by Combining Language Models With Symbolic Solvers

Stanford University(斯坦福大学)

Joy He-Yueya, Gabriel Poesia, Rose E. Wang, Noah D. Goodman

AI总结:

本文提出将 LLM 增量形式化出的变量与方程交给外部符号求解器,在 GSM8K 上媲美 PAL,并在更难的 ALGEBRA 数据集上绝对提升 20%。

摘要:

自动生成高质量的数学应用题逐步解答在教育领域有许多应用。近来,将大型语言模型(LLM)与外部工具结合以执行复杂推理和计算,已成为解决数学应用题的一个有前景方向;但诸如 Program-Aided Language model(PAL,程序辅助语言模型)等以往方法偏向简单的程序性问题,对于需要声明式推理的问题效果较差。我们提出一种方法,将一个能够增量地把应用题形式化为一组变量和方程的 LLM,与一个能够求解这些方程的外部符号求解器相结合。我们的方法在数学应用题基准 GSM8K 上取得了与原始 PAL 相当的准确率,并在 ALGEBRA 上以绝对 20% 的优势超过 PAL;ALGEBRA 是一个从代数教科书中提取、包含更具挑战性应用题的新数据集。我们的工作凸显了在连接外部工具解决复杂数学应用题时,使用声明式和增量表示的益处。我们的数据和提示词公开发布于 https://github.com/joyheyueya/declarative-math-word-problem。

英文摘要:

Automatically generating high-quality step-by-step solutions to math word problems has many applications in education. Recently, combining large language models (LLMs) with external tools to perform complex reasoning and calculation has emerged as a promising direction for solving math word problems, but prior approaches such as Program-Aided Language model (PAL) are biased towards simple procedural problems and less effective for problems that require declarative reasoning. We propose an approach that combines an LLM that can incrementally formalize word problems as a set of variables and equations with an external symbolic solver that can solve the equations. Our approach achieves comparable accuracy to the original PAL on the GSM8K benchmark of math word problems and outperforms PAL by an absolute 20% on ALGEBRA, a new dataset of more challenging word problems extracted from Algebra textbooks. Our work highlights the benefits of using declarative and incremental representations when interfacing with an external tool for solving complex math word problems. Our data and prompts are publicly available at https://github.com/joyheyueya/declarative-math-word-problem.

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

↑