自动生成高质量的数学应用题逐步解答在教育领域有许多应用。近来,将大型语言模型(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.
Adaptive LLM-Symbolic Reasoning via Dynamic Logical Solver Composition
Idiap Research Institute(Idiap研究机构);École Polytechnique Fédérale de Lausanne(联邦理工学院洛桑分校);School of Computer Science, University of Sheffield(谢菲尔德大学计算机科学学院);Department of Computer Science, University of Manchester(曼彻斯特大学计算机科学系);Cancer Biomarker Centre, CRUK Manchester Institute(癌症生物标志物中心,CRUK曼彻斯特研究所)
AutoVSR: Automatic Visual-to-Symbolic Reasoning for Symbolic Expression Generation from Circuit Schematic
Hunan University, Changsha, China(湖南大学);Wuhan University of Technology, Wuhan, China(武汉理工大学);Huazhong University of Science and Technology, Wuhan, China(华中科技大学)
Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solving
Florida International University(佛罗里达国际大学);SRI International(SRI国际(斯坦福国际研究院));United States Military Academy(美国军事学院(西点军校));University of Colorado Boulder(科罗拉多大学博尔德分校);University of Central Florida(中佛罗里达大学);Vanderbilt University(范德堡大学)
Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning
Sun Yat-sen University(中山大学);Beijing Institute of General Artificial Intelligence(北京通用人工智能研究院);Peking University(北京大学);Tsinghua University(清华大学);Zhejiang University(浙江大学)