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

大语言模型中的数学推理:评估广泛数值范围内的逻辑与算术错误

Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges

New York University Abu Dhabi(纽约大学阿布扎比分校)

Safal Shrestha, Minwu Kim, Keith Ross

AI总结:

针对现有LLM数学推理评估数值范围有限、缺乏推理过程洞察的问题,本文提出GSM-Ranges数据集生成器和区分逻辑与非逻辑错误的评分方法,揭示了模型在分布外数值推理的弱点及文字题中计算性能下降的问题。

摘要:

大语言模型(LLMs)的数学推理能力常通过数值范围有限的基准进行评估,无法反映不同规模下的真实世界问题解决能力。此外,多数现有评估方法仅将模型输出与真实答案对比,掩盖了对推理过程的洞察。为解决这些局限,我们引入GSM-Ranges,这是一种源自GSM8K的数据集生成器,通过系统扰动数学问题中的数值来评估模型在不同数值尺度下的鲁棒性。同时,我们提出一种新的评分方法,区分逻辑错误和非逻辑错误,提供超越计算准确性的更精准推理过程评估。我们对多种模型的实验显示,随着数值复杂度上升,逻辑错误率显著增加(最高达14个百分点),表明模型在分布外数值推理中存在普遍弱点;此外,模型在独立算术任务中准确率高,但计算嵌入文字题时性能大幅下降。这些发现为LLMs数学推理能力提供了全面评估,为改进语言模型数值泛化的未来研究方向提供了参考。

英文摘要:

Mathematical reasoning in Large Language Models (LLMs) is often evaluated using benchmarks with limited numerical ranges, failing to reflect real-world problem-solving across diverse scales. Furthermore, most existing evaluation methods only compare model outputs to ground-truth answers, obscuring insights into reasoning processes. To address these limitations, we introduce GSM-Ranges, a dataset generator derived from GSM8K that systematically perturbs numerical values in math problems to assess model robustness across varying numerical scales. Additionally, we propose a novel grading methodology that distinguishes between logical and non-logical errors, offering a more precise evaluation of reasoning processes beyond computational accuracy. Our experiments with various models reveal a significant increase in logical error rates-up to 14 percentage points-as numerical complexity rises, demonstrating a general weakness in reasoning with out-of-distribution numerical values. Moreover, while models demonstrate high accuracy on standalone arithmetic tasks, their performance deteriorates substantially when computations are embedded within word problems. These findings provide a comprehensive evaluation of LLMs' mathematical reasoning capabilities and inform future research directions for improving numerical generalization in language models.

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

↑