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

带工具反馈的自动形式化器

Autoformalizer with Tool Feedback

Qi Guo, Jianing Wang, Jianfei Zhang, Deyang Kong, Xiangzhou Huang, Xiangyu Xi, Wei Wang, Jingang Wang, Xunliang Cai, Shikun Zhang, Wei Ye

AI总结:

针对自动形式化中语句语法与语义一致性问题,提出带工具反馈的ATF方法,集成Lean 4编译器和多LLM评判,通过冷启动、专家迭代和偏好优化训练,显著优于基线,并开源75万条数据集。

摘要:

自动形式化通过将数学问题从自然语言翻译为形式化语句,解决了自动定理证明(ATP)中数据稀缺的问题。近期工作从直接提示大型语言模型转向从头训练端到端形式化模型,取得了显著进展。然而,现有形式化模型仍难以一致地生成满足语法有效性和语义一致性的有效语句。为解决此问题,我们提出了带工具反馈的自动形式化器(ATF),一种将语法和一致性信息作为工具纳入形式化过程的新方法。通过集成Lean 4编译器进行语法修正,并采用多LLM作为评判者(multi-LLMs-as-judge)方法进行一致性验证,模型能够根据工具反馈自适应地改进生成的语句,增强语法有效性和语义一致性。ATF的训练包括在合成工具调用数据上的冷启动阶段、提升形式化能力的专家迭代阶段,以及用于减少无效修订的直接偏好优化。实验结果表明,ATF显著优于一系列基线形式化模型,其优越性能进一步通过人工评估得到验证。后续分析显示,ATF展现出优秀的推理扩展特性。此外,我们开源了Numina-ATF,一个包含75万条合成形式化语句的数据集,以促进自动形式化和ATP研究的发展。

英文摘要:

Autoformalization addresses the scarcity of data for Automated Theorem Proving (ATP) by translating mathematical problems from natural language into formal statements. Efforts in recent work shift from directly prompting large language models to training an end-to-end formalizer model from scratch, achieving remarkable advancements. However, existing formalizer still struggles to consistently generate valid statements that meet syntactic validity and semantic consistency. To address this issue, we propose the Autoformalizer with Tool Feedback (ATF), a novel approach that incorporates syntactic and consistency information as tools into the formalization process. By integrating Lean 4 compilers for syntax corrections and employing a multi-LLMs-as-judge approach for consistency validation, the model is able to adaptively refine generated statements according to the tool feedback, enhancing both syntactic validity and semantic consistency. The training of ATF involves a cold-start phase on synthetic tool-calling data, an expert iteration phase to improve formalization capabilities, and Direct Preference Optimization to alleviate ineffective revisions. Experimental results show that ATF markedly outperforms a range of baseline formalizer models, with its superior performance further validated by human evaluations. Subsequent analysis reveals that ATF demonstrates excellent inference scaling properties. Moreover, we open-source Numina-ATF, a dataset containing 750K synthetic formal statements to facilitate advancements in autoformalization and ATP research.

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

↑