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

炼金术:通过符号突变放大定理证明能力

Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutation

National Key Laboratory of Human-Machine Hybrid Augmented Intelligence(人机混合增强智能国家重点实验室);Institute of Artificial Intelligence and Robotics, Xi’an Jiaotong University(西安交通大学人工智能与机器人研究所);Microsoft Research Asia(微软亚洲研究院)

Shaonan Wu, Shuai Lu, Yeyun Gong, Nan Duan, Ping Wei

摘要:

即使对于有经验的专家来说,编写正式的证明也是一项挑战。神经定理证明(NTP)的最新进展显示了加快这一过程的希望。然而,与一般文本相比,互联网上提供的正式语料库有限,这对NTP构成了严重的数据短缺挑战。为了解决这个问题,这项工作提出了炼金术,数据合成的一般框架,通过符号突变构建正式的定理。具体来说,对于Mathlib中的每个候选定理,我们识别出所有可以用来重写或应用于它的可调用定理。随后,我们通过将语句中的相应项替换为其等价形式或先行项来改变候选定理。因此,我们的方法将Mathlib中的定理数量增加了一个数量级,从110k增加到6M。此外,我们在这个增强的语料库上为大语言模型进行持续的预训练和监督微调。实验结果表明,我们的方法的有效性,实现了4.70%的绝对性能提高Leandojo基准。此外,基于合成数据,我们的方法在分布式miniF2F基准测试中获得了2.47%的绝对性能提升。为了提供进一步的见解,我们对合成数据的组成和训练范式进行了全面的分析,为开发强大的定理证明器提供了有价值的指导。

英文摘要:

Formal proofs are challenging to write even for experienced experts. Recent progress in Neural Theorem Proving (NTP) shows promise in expediting this process. However, the formal corpora available on the Internet are limited compared to the general text, posing a significant data scarcity challenge for NTP. To address this issue, this work proposes Alchemy, a general framework for data synthesis that constructs formal theorems through symbolic mutation. Specifically, for each candidate theorem in Mathlib, we identify all invocable theorems that can be used to rewrite or apply to it. Subsequently, we mutate the candidate theorem by replacing the corresponding term in the statement with its equivalent form or antecedent. As a result, our method increases the number of theorems in Mathlib by an order of magnitude, from 110k to 6M. Furthermore, we perform continual pretraining and supervised finetuning on this augmented corpus for large language models. Experimental results demonstrate the effectiveness of our approach, achieving a 4.70% absolute performance improvement on Leandojo benchmark. Additionally, our approach achieves a 2.47% absolute performance gain on the out-of-distribution miniF2F benchmark based on the synthetic data.To provide further insights, we conduct a comprehensive analysis of synthetic data composition and the training paradigm, offering valuable guidance for developing a strong theorem prover.

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

↑