arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.06820cs.AI
收藏

评估用于计算和实验数学的SageMath增强型大语言模型智能体

Evaluating SageMath-Augmented LLM Agents for Computational and Experimental Mathematics

The Sage Developers(Sage开发者团队)

Pavel Snopov, German Magai

AI总结:

研究聚焦AI在数学领域进展,提出结合大语言模型推理与SageMath反馈的智能体设置,改进RealMath基准。实验表明该设置能提升模型性能,缩小模型差距,CAS增强型智能体在计算探索上有潜力,朝自动猜想发现迈进。

摘要:

人工智能在数学领域的进展主要集中在自动形式化和定理证明,计算机代数系统(CAS)在智能体大语言模型工作流程中的作用未得到充分探索。我们提出一种ReAct风格的智能体设置,将大语言模型推理与来自SageMath的可验证反馈相结合,并结合Context7提供最新文档。我们在模拟计算数学研究循环的环境中,针对前沿模型评估此智能体设置以解决RealMath基准中的研究级数学问题。我们还对RealMath基准进行改进,引入多步骤后处理程序和多阶段验证管道,提高提取问题集的质量和可靠性。实验表明,所有评估模型通过访问SageMath平均性能提升9.7个百分点,提升范围为1.5至27.8个百分点,缩小了开放权重模型和封闭模型之间的差距。Qwen~3.7 - Max从SageMath中受益最大,而GPT - 5.5在启用工具的配置中实现了75.2%的最高求解率和最低令牌使用量。我们的发现表明,CAS增强型智能体是协助数学家进行计算探索的一个有前途的方向,这项工作朝着自动猜想发现迈进了一步。项目存储库可在线获取。

英文摘要:

Recent advances in AI for Mathematics have focused largely on autoformalization and theorem proving, leaving the role of Computer Algebra Systems (CAS) in agentic LLM workflows underexplored. We propose a ReAct-style agentic setup that combines LLM reasoning with verifiable feedback from SageMath, together with Context7 for the up-to-date documentation. We evaluate this agentic setup across frontier models for solving research-level mathematical problems from the RealMath benchmark in a setting that emulates a computational-mathematics research loop. We also propose a refinement to the RealMath benchmark by introducing a multi-step post-processing procedure and a multi-stage validation pipeline, both of which improve the quality and reliability of the extracted problem set. Our experiments reveal substantial performance gains from SageMath access across all evaluated models on +9.7~pp on average, the gains range from 1.5~pp to 27.8~pp and narrow the gap between open-weight and closed models. Qwen~3.7-Max benefits from SageMath the most, while GPT-5.5 achieves the highest solve rate of $75.2\%$ and the lowest token usage among tool-enabled configurations. Our findings suggest that CAS-augmented agents represent a promising direction for assisting mathematicians in computational exploration, and we believe that this work is a step towards automated conjecture discovery. The project repository is available online.

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

↑