LEGO-Prover:基于成长式库的神经定理证明
LEGO-Prover: Neural Theorem Proving with Growing Libraries
AI总结:
LEGO-Prover 通过成长式技能库让大语言模型在定理证明中模块化地检索、创建并演化可复用引理,在 miniF2F 基准上提升通过率并生成超过 20,000 个技能。
摘要:
尽管大语言模型(LLMs)取得了成功,定理证明任务仍然是最困难的推理任务之一,远未得到完全解决。先前使用语言模型的方法已经展示出有希望的结果,但它们在证明甚至中学水平的定理时仍然存在困难。这些方法的一个共同局限是,它们在整个定理证明过程中假设使用固定的定理库。然而,众所周知,创造新的有用定理甚至新理论不仅是有帮助的,而且对于推进数学发展和证明更困难、更深刻的结果是至关重要且必要的。在这项工作中,我们提出了 LEGO-Prover,它采用一个成长式技能库,其中包含经过验证的引理作为技能,以增强用于定理证明的 LLMs 的能力。通过模块化地构造证明,LEGO-Prover 使 LLMs 能够利用从库中检索到的现有技能,并在证明过程中创建新技能。这些技能进一步演化(通过提示 LLM)以在另一个尺度上丰富库。模块化和可复用的技能不断被添加到库中,以应对日益复杂的数学问题。此外,学习到的库通过使缺失步骤的补全更加容易,进一步弥合了人类证明与形式化证明之间的差距。LEGO-Prover 在 miniF2F-valid 上(48.0% 到 57.0%)和 miniF2F-test 上(45.5% 到 47.1%)推进了最先进的通过率。在证明过程中,LEGO-Prover 还成功生成了超过 20,000 个技能(定理/引理),并将它们添加到成长式库中。我们的消融研究表明,这些新添加的技能确实有助于定理证明,使成功率从 47.1% 提高到 50.4%。我们还发布了代码和所有生成的技能。
英文摘要:
Despite the success of large language models (LLMs), the task of theorem proving still remains one of the hardest reasoning tasks that is far from being fully solved. Prior methods using language models have demonstrated promising results, but they still struggle to prove even middle school level theorems. One common limitation of these methods is that they assume a fixed theorem library during the whole theorem proving process. However, as we all know, creating new useful theorems or even new theories is not only helpful but crucial and necessary for advancing mathematics and proving harder and deeper results. In this work, we present LEGO-Prover, which employs a growing skill library containing verified lemmas as skills to augment the capability of LLMs used in theorem proving. By constructing the proof modularly, LEGO-Prover enables LLMs to utilize existing skills retrieved from the library and to create new skills during the proving process. These skills are further evolved (by prompting an LLM) to enrich the library on another scale. Modular and reusable skills are constantly added to the library to enable tackling increasingly intricate mathematical problems. Moreover, the learned library further bridges the gap between human proofs and formal proofs by making it easier to impute missing steps. LEGO-Prover advances the state-of-the-art pass rate on miniF2F-valid (48.0% to 57.0%) and miniF2F-test (45.5% to 47.1%). During the proving process, LEGO-Prover also manages to generate over 20,000 skills (theorems/lemmas) and adds them to the growing library. Our ablation study indicates that these newly added skills are indeed helpful for proving theorems, resulting in an improvement from a success rate of 47.1% to 50.4%. We also release our code and all the generated skills.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。