Autoformalizer with Tool Feedback

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Guo, Qi, Wang, Jianing, Zhang, Jianfei, Kong, Deyang, Huang, Xiangzhou, Xi, Xiangyu, Wang, Wei, Wang, Jingang, Cai, Xunliang, Zhang, Shikun, Ye, Wei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909831115309056
author Guo, Qi
Wang, Jianing
Zhang, Jianfei
Kong, Deyang
Huang, Xiangzhou
Xi, Xiangyu
Wang, Wei
Wang, Jingang
Cai, Xunliang
Zhang, Shikun
Ye, Wei
author_facet Guo, Qi
Wang, Jianing
Zhang, Jianfei
Kong, Deyang
Huang, Xiangzhou
Xi, Xiangyu
Wang, Wei
Wang, Jingang
Cai, Xunliang
Zhang, Shikun
Ye, Wei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_06857
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Autoformalizer with Tool Feedback
Guo, Qi
Wang, Jianing
Zhang, Jianfei
Kong, Deyang
Huang, Xiangzhou
Xi, Xiangyu
Wang, Wei
Wang, Jingang
Cai, Xunliang
Zhang, Shikun
Ye, Wei
Artificial Intelligence
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.
title Autoformalizer with Tool Feedback
topic Artificial Intelligence
url https://arxiv.org/abs/2510.06857