LeanAgent:用于形式化定理证明的终身学习
LeanAgent: Lifelong Learning for Formal Theorem Proving
AI总结:
针对形式化定理证明中静态LLM泛化性差的问题,提出终身学习框架LeanAgent,通过课程学习、动态数据库和渐进训练持续扩展数学知识,成功证明155个高级定理,并在稳定性和后向迁移上表现优越。
摘要:
大型语言模型(LLMs)在与 Lean 等交互式证明助手集成后,在形式化定理证明等数学推理任务中取得了成功。现有方法涉及在特定数据集上训练或微调 LLM,以在特定领域(如本科数学)中表现良好。这些方法难以推广到高级数学。一个根本局限在于这些方法在静态领域上运行,未能捕捉数学家通常如何同时或周期性地跨多个领域和项目工作。我们提出了 LeanAgent,一个用于形式化定理证明的新型终身学习框架,它持续泛化并改进不断扩展的数学知识,而不遗忘先前学到的知识。LeanAgent 引入了几个关键创新,包括按数学难度优化学习轨迹的课程学习策略、用于高效管理不断演变的数学知识的动态数据库,以及平衡稳定性和可塑性的渐进式训练。LeanAgent 成功为 23 个不同的 Lean 存储库中先前缺失形式化证明的 155 个定理生成了形式化证明,其中许多来自高级数学。它表现显著优于静态 LLM 基线,证明了抽象代数和代数拓扑等领域中的挑战性定理,同时展示了从基础概念到高级主题的清晰学习进展。此外,我们分析了 LeanAgent 在关键终身学习指标上的优越性能。LeanAgent 在稳定性和后向迁移方面取得了优异成绩,其中学习新任务提高了先前学习任务的性能。这强调了 LeanAgent 的持续泛化能力和改进,解释了其优越的定理证明性能。
英文摘要:
Large Language Models (LLMs) have been successful in mathematical reasoning tasks such as formal theorem proving when integrated with interactive proof assistants like Lean. Existing approaches involve training or fine-tuning an LLM on a specific dataset to perform well on particular domains, such as undergraduate-level mathematics. These methods struggle with generalizability to advanced mathematics. A fundamental limitation is that these approaches operate on static domains, failing to capture how mathematicians often work across multiple domains and projects simultaneously or cyclically. We present LeanAgent, a novel lifelong learning framework for formal theorem proving that continuously generalizes to and improves on ever-expanding mathematical knowledge without forgetting previously learned knowledge. LeanAgent introduces several key innovations, including a curriculum learning strategy that optimizes the learning trajectory in terms of mathematical difficulty, a dynamic database for efficient management of evolving mathematical knowledge, and progressive training to balance stability and plasticity. LeanAgent successfully generates formal proofs for 155 theorems across 23 diverse Lean repositories where formal proofs were previously missing, many from advanced mathematics. It performs significantly better than the static LLM baseline, proving challenging theorems in domains like abstract algebra and algebraic topology while showcasing a clear progression of learning from basic concepts to advanced topics. In addition, we analyze LeanAgent's superior performance on key lifelong learning metrics. LeanAgent achieves exceptional scores in stability and backward transfer, where learning new tasks improves performance on previously learned tasks. This emphasizes LeanAgent's continuous generalizability and improvement, explaining its superior theorem-proving performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。