评估代码辅助大模型的数学推理逻辑,发现其真实能力远低于表面准确率。
Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics
- 通过人工与自动分析生成代码的逻辑合理性,构建程序合理性分类体系。
- 闭源模型依赖数学概念,开源模型多靠记忆和暴力搜索,逻辑不严谨。
- 题目越难,逻辑正确率越低,暴露大模型在复杂数学中的本质缺陷。
将代码生成能力融入大语言模型可提升其数学推理表现,但现有评估仅关注执行结果正确性,缺乏对生成代码逻辑合理性的深入分析。本文针对多个数学数据集上五种大模型生成的代码进行深度分析,结合人工与自动评估,提出基于逻辑严谨性的程序分类体系。研究发现,模型能力显著影响解题逻辑:闭源模型倾向于基于数学概念构建程序,而开源模型常依赖记忆化信息或穷举搜索,逻辑不严谨。随着问题难度增加,所有模型的逻辑正确生成比例均下降,揭示出大模型在复杂数学任务中存在根本性短板,与表面准确率表现形成反差。本工作强调需超越执行正确率,建立更全面的评估体系,以真正理解大模型在数学领域的局限。
原文摘要 · Abstract (English)
Assisting LLMs with code generation improved their performance on mathematical reasoning tasks. However, the evaluation of code-assisted LLMs is generally restricted to execution correctness, lacking a rigorous evaluation of their generated programs. In this work, we bridge this gap by conducting an in-depth analysis of code-assisted LLMs generated programs in response to math reasoning tasks, with a focus on evaluating the soundness of the underlying reasoning processes. For this purpose, we assess the generations of five LLMs, on several math datasets, both manually and automatically, and propose a taxonomy of generated programs based on their logical soundness. Our findings show that the capabilities of models significantly impact the logic implemented to solve the problem. Closed-source LLMs ground their programs in mathematical concepts, whereas open-source models often resort to unsound reasoning, relying on memorized information and exhaustive searches. Furthermore, increasing the difficulty of problems decreases sound generations for all models, revealing a critical shortcoming of LLMs on complex mathematics, contrary to what accuracy metrics suggest. Our work highlights the need for more holistic evaluations of code-assisted LLMs beyond execution accuracy metrics, toward a better understanding of LLMs' limits in the math domain.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。