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

LEAN-GitHub:编译GitHub LEAN仓库以构建通用的LEAN证明器

LEAN-GitHub: Compiling GitHub LEAN repositories for a versatile LEAN prover

Shanghai AI Laboratory(上海人工智能实验室);The Chinese University of Hong Kong(香港中文大学)

Zijian Wu, Jiayu Wang, Dahua Lin, Kai Chen

AI总结:

针对形式化定理证明数据稀缺的问题,本文提出了从GitHub提取大规模数据的LEAN-GitHub数据集,并基于此微调InternLM-math-plus模型,在多个Lean 4基准测试上达到了最先进水平。

摘要:

最近,大型语言模型在辅助形式化数学推理方面展现出了有前景的结果。然而,由于形式化定理证明数据的稀缺性,其性能受到了限制,这些数据需要花费额外的精力从原始形式化语言语料库中提取。同时,大量人类编写的形式化语言语料库仍未得到充分利用。为了解决这个问题,我们提出了LEAN-GitHub,这是一个包含从GitHub上几乎所有Lean 4仓库中提取的大规模形式化数据的数据集。在该数据集上对InternLM-math-plus进行微调后,我们的模型在Lean 4 miniF2F测试中分别实现了48.8%的单次通过准确率和54.5%的64次通过准确率,超越了当时最先进方法52%的准确率。此外,它还在针对不同数学领域和水平的另外两个Lean 4基准(ProofNet和Putnam)上达到了最先进的水平。这些结果证明,我们提出的数据集对广泛的数学主题的形式化推理是有益的。我们在https://GitHub.com/InternLM/InternLM-Math开源了我们的模型,并在https://huggingface.co/datasets/InternLM/Lean-GitHub开源了我们的数据。

英文摘要:

Recently, large language models have presented promising results in aiding formal mathematical reasoning. However, their performance is restricted due to the scarcity of formal theorem-proving data, which requires additional effort to be extracted from raw formal language corpora. Meanwhile, a significant amount of human-written formal language corpora remains underutilized. To address this issue, we propose LEAN-GitHub, a dataset consisting of large-scale formal data extracted from almost all Lean 4 repositories on GitHub. After fine-tuning InternLM-math-plus on this dataset, our model achieved accuracies of 48.8% with a single pass and 54.5% with 64 passes on the Lean 4 miniF2F test, surpassing state-of-the-art method at 52%. And it also achieves state-of-the-art on two other Lean 4 benchmarks (ProofNet and Putnam) targeting different fields/levels of math. These results demonstrate that our proposed dataset is beneficial for formal reasoning on a wide range of math topics. We open-source our model at https://GitHub. com/InternLM/InternLM-Math and our data at https://huggingface.co/ datasets/InternLM/Lean-GitHub

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

↑