使用估计验证与方程生成求解数学应用题
Solving Math Word Problems Using Estimation Verification and Equation Generation
AI总结:
本文提出先用LLM生成方程并由外部求解器求解,再通过LLM估计验证答案、失败时迭代纠正的方法,在数值与代数应用题上取得新SOTA,并引入SVAMPClean和Trig300数据集。
摘要:
大型语言模型(LLMs)在包括问题求解和问答在内的多种任务上表现出色。然而,LLMs 通常认为数学应用题(MWPs)具有挑战性,因为求解这些问题需要一系列推理和数学能力,而 LLMs 似乎在这些方面存在困难。近期的努力通过改进提示帮助 LLMs 求解更复杂的 MWPs。本研究提出一种新方法:首先提示 LLM 根据问题的分解创建方程,然后使用外部符号方程求解器生成答案。为确保所得答案的准确性,受数学教师既定建议的启发,要求 LLM 第二次求解该 MWP,但这次的目标是估计正确答案,而不是精确求解。然后将估计值与生成的答案进行比较以进行验证。如果验证失败,则采用迭代纠正过程,以确保最终找到正确答案。该方法在先前已发表研究中使用的数值型和代数型 MWPs 数据集上取得了新的最先进结果,平均比之前的最佳结果提高了近两个百分点。此外,该方法在三角学 MWPs 上取得了令人满意的结果,据作者所知,此前尚未有人尝试过该任务。本研究还引入了两个新数据集 SVAMPClean 和 Trig300,以进一步推进对 LLMs 推理能力的测试。
英文摘要:
Large Language Models (LLMs) excel at various tasks, including problem-solving and question-answering. However, LLMs often find Math Word Problems (MWPs) challenging because solving them requires a range of reasoning and mathematical abilities with which LLMs seem to struggle. Recent efforts have helped LLMs solve more complex MWPs with improved prompts. This study proposes a novel method that initially prompts an LLM to create equations from a decomposition of the question, followed by using an external symbolic equation solver to produce an answer. To ensure the accuracy of the obtained answer, inspired by an established recommendation of math teachers, the LLM is instructed to solve the MWP a second time, but this time with the objective of estimating the correct answer instead of solving it exactly. The estimation is then compared to the generated answer to verify. If verification fails, an iterative rectification process is employed to ensure the correct answer is eventually found. This approach achieves new state-of-the-art results on datasets used by prior published research on numeric and algebraic MWPs, improving the previous best results by nearly two percent on average. In addition, the approach obtains satisfactory results on trigonometric MWPs, a task not previously attempted to the authors' best knowledge. This study also introduces two new datasets, SVAMPClean and Trig300, to further advance the testing of LLMs' reasoning abilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。