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

一例既示,万理皆知!数学大语言模型中反例驱动的概念推理

One Example Shown, Many Concepts Known! Counterexample-Driven Conceptual Reasoning in Mathematical LLMs

Tsinghua University(清华大学);Sun-Yat Sen University(孙中山大学);School of Mathematical Science, Fudan University(复旦大学数学学院);Bytedance Inc.(字节跳动公司);INFLY TECH (Shanghai) Co., Ltd.(INFLY TECH(上海)有限公司);ARC Lab, Arizona State University(ARC实验室,亚利桑那州立大学);University of Illinois Chicago(伊利诺伊大学芝加哥分校);Peng Cheng Laboratory(鹏城实验室);Guangdong Provincial Key Laboratory of Fire Science(广东省消防科学与智能应急技术重点实验室)

Yinghui Li, Jiayi Kuang, Haojing Huang, Zhikun Xu, Xinnian Liang, Yi Yu, Wenlian Lu, Yangning Li, Xiaoyu Tan, Chao Qu, Ying Shen, Hai-Tao Zheng, Philip S. Yu

AI总结:

本文提出反例驱动的数学推理基准 CounterMATH 及配套数据工程框架,用于评估和增强大语言模型通过反例证明数学命题的概念推理能力,实验表明现有模型在该任务上能力不足,加强此类训练有助于提升整体数学能力。

摘要:

利用数学大语言模型(LLMs)进行证明生成是 LLMs 研究中的一个基础性课题。我们认为,当前 LLMs 证明命题的能力在很大程度上取决于它们是否在训练过程中遇到过相关的证明过程。这种依赖限制了它们对数学定理及相关概念的深层理解。受人类数学教育中常用的“反例证明”教学方法的启发,我们的工作旨在通过反例来增强 LLMs 进行数学推理和证明的能力。具体而言,我们手工构建了一个高质量的大学水平数学基准 CounterMATH,该基准要求 LLMs 通过提供反例来证明数学命题,从而评估它们对数学概念的掌握程度。此外,我们开发了一个数据工程框架,用于自动获取训练数据以进一步改进模型。大量实验和详细分析表明,CounterMATH 具有挑战性,说明诸如 OpenAI o1 等 LLMs 的反例驱动证明能力不足。而且,我们对模型训练的探索揭示,加强 LLMs 反例驱动的概念推理能力对于提升其整体数学能力至关重要。我们相信,我们的工作为数学 LLMs 社区提供了新的视角。

英文摘要:

Leveraging mathematical Large Language Models (LLMs) for proof generation is a fundamental topic in LLMs research. We argue that the ability of current LLMs to prove statements largely depends on whether they have encountered the relevant proof process during training. This reliance limits their deeper understanding of mathematical theorems and related concepts. Inspired by the pedagogical method of "proof by counterexamples" commonly used in human mathematics education, our work aims to enhance LLMs' ability to conduct mathematical reasoning and proof through counterexamples. Specifically, we manually create a high-quality, university-level mathematical benchmark, CounterMATH, which requires LLMs to prove mathematical statements by providing counterexamples, thereby assessing their grasp of mathematical concepts. Additionally, we develop a data engineering framework to automatically obtain training data for further model improvement. Extensive experiments and detailed analyses demonstrate that CounterMATH is challenging, indicating that LLMs, such as OpenAI o1, have insufficient counterexample-driven proof capabilities. Moreover, our exploration into model training reveals that strengthening LLMs' counterexample-driven conceptual reasoning abilities is crucial for improving their overall mathematical capabilities. We believe that our work offers new perspectives on the community of mathematical LLMs.

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

↑