arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.07172cs.CLcs.PL
收藏

VerityMath:通过单位一致性自验证推进数学推理

VerityMath: Advancing Mathematical Reasoning by Self-Verification Through Unit Consistency

Singapore University of Technology and Design(新加坡科技设计大学)

Vernon Toh Yan Han, Ratish Puduppully, Nancy F. Chen

AI总结:

本研究提出VerityMath方法,通过定义和验证数学应用题中数量的单位一致性,微调开源LLMs以提升推理能力,虽当前性能略逊,但提供了错误分析和改进方向。

摘要:

大型语言模型(LLMs)结合基于程序的求解技术,在数学推理方面展现出日益增强的能力。例如,闭源模型如OpenAI GPT-4和Claude在解决数学应用题方面表现出色。然而,开源LLMs在数学应用题求解方面的进展有限,且这些模型面临的挑战尚未得到充分研究。本文研究了包括Llama 2(7B)、Code Llama(7B)和Mistral(7B)在内的强开源LLMs在使用基于程序的求解技术处理数学应用题时的表现。具体而言,我们分析了这些模型应用于数学应用题时的输出,并识别出一类构成显著挑战的问题,尤其是涉及跨多个单位的数量的问题。为解决此问题,我们提出了一种系统方法,通过为每个数量定义单位并确保数学运算中这些单位的一致性。我们开发了单位一致性程序(UCPs),这是一个带注释的数学应用题数据集,每个问题配有针对单位规范和单位验证例程的程序。我们使用UCPs对Llama 2(7B)、Code Llama(7B)和Mistral(7B)模型进行微调,以生成它们的VerityMath变体。我们的研究结果表明,我们纳入单位一致性的方法目前略逊于不采用此方法的方法。为理解其背后的原因,我们进行了深入的错误分析,并提出了未来改进的建议。我们的代码和数据集可在https://github.com/vernontoh/VerityMath获取。

英文摘要:

Large Language Models (LLMs), combined with program-based solving techniques, are increasingly demonstrating proficiency in mathematical reasoning. For example, closed-source models such as OpenAI GPT-4 and Claude show excellent results in solving math word problems. However, progress in math word problem-solving for open-source LLMs is limited, and the challenges these models face are not well-studied. In this paper, we study the performance of strong open-source LLMs, including Llama 2 (7B), Code Llama (7B), and Mistral (7B) on math word problems using program-based solving techniques. Specifically, we analyze the outputs of these models when applied to math word problems and identify a category of problems that pose a significant challenge, particularly those involving quantities spanning multiple units. To address this issue, we propose a systematic approach by defining the units for each quantity and ensuring the consistency of these units during mathematical operations. We developed Unit Consistency Programs (UCPs), an annotated dataset of math word problems, each paired with programs containing unit specifications and unit verification routines. We fine-tuned Llama 2 (7B), Code Llama (7B), and Mistral (7B) models with UCPs to produce theirVerityMath variants. Our findings indicate that our approach, which incorporates unit consistency, currently slightly underperforms compared to an approach that does not. To understand the reasons behind this, we conduct an in-depth error analysis and suggest options for future improvements. Our code and dataset are available at https://github.com/vernontoh/VerityMath.

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

↑