[论文解读] Magnushammer: A Transformer-Based Approach to Premise Selection
Magnushammer 是一个基于变换器的前提选择方法,在 PISA 与 MiniF2F 基准测试上显著超过 Sledgehammer,并在与神经证明器 Thor 结合时,在 PISA 上达到 71.0% 的新状态-of-the-art。
This paper presents a novel approach to premise selection, a crucial reasoning task in automated theorem proving. Traditionally, symbolic methods that rely on extensive domain knowledge and engineering effort are applied to this task. In contrast, this work demonstrates that contrastive training with the transformer architecture can achieve higher-quality retrieval of relevant premises, without the engineering overhead. Our method, Magnushammer, outperforms the most advanced and widely used automation tool in interactive theorem proving called Sledgehammer. On the PISA and miniF2F benchmarks Magnushammer achieves $59.5\%$ (against $38.3\%$) and $34.0\%$ (against $20.9\%$) success rates, respectively. By combining \method with a language-model-based automated theorem prover, we further improve the state-of-the-art proof success rate from $57.0\%$ to $71.0\%$ on the PISA benchmark using $4$x fewer parameters. Moreover, we develop and open source a novel dataset for premise selection, containing textual representations of (proof state, relevant premise) pairs. To the best of our knowledge, this is the largest available premise selection dataset, and the first one for the Isabelle proof assistant.
研究动机与目标
- 推动一个数据驱动、通用的前提选择工具,以最小化领域特定工程。
- 证明基于变换器的检索与再排序在大型前提库上能超越符号方法。
- 展示规模对模型大小、数据规模和计算预算的可扩展性。
- 发布一个大规模、基于文本的前提对数据集,促进未来研究。
- 研究与神经定理证明器的整合,以提升整体证明成功率。
提出的方法
- 两阶段检索:选择阶段通过在共享嵌入空间中以余弦相似度检索 1024 个前提。
- 再排序阶段使用一个对证明状态标记对前提标记进行注意的变换器重新评估检索到的前提,输出相关性分数。
- 训练使用两种交替目标:Select 使用修改后的 InfoNCE 损失进行训练,Rerank 使用二分类交叉熵训练。
- 骨干变换器在语言建模任务(GitHub/arXiv 子集 The Pile)上进行预训练,并在 (proof_state, premise) 对上进行微调。
- 数据集:440 万前提选择样本,包含 433k 条唯一前提(MAPL),另有 Human Proofs Library(HPL)数据;数据为文本形式并在 Hugging Face 上发布。
实验结果
研究问题
- RQ1变换器型前提选择在有限领域工程的情况下,是否能在标准基准(PISA、MiniF2F)上超越符号方法?
- RQ2模型大小、数据规模和推理预算如何影响前提选择质量?
- RQ3将 Magnushammer 与神经定理证明器(如 Thor)结合对多步证明有何影响?
- RQ4预训练与数据集组成(HPL vs MAPL)是否影响性能和数据效率?
- RQ5仅选择检索策略是否足以在降低计算量的同时维持高证明率?
主要发现
- Magnushammer 在 PISA 的单步证明中达到 59.5% 的证明率, Sledgehammer 为 38.3%。
- 在多步场景下,Thor + Magnushammer 在 PISA 上达到 71.0% 的证明率,超过以前的 Thor 基线 57.0%。
- 在 MiniF2F 上,Magnushammer 单步为 34.0%,对比 Sledgehammer 的 20.9%;多步与 Thor + Magnushammer 的测试集为 37.3%,相较其他方法。
- 即使是只有 92 万参数的较小模型,配合 Magnushammer 的证明率也优于 Sledgehammer(40.7% 对 38.3%。)
- 使用 Magnushammer 搭配 Thor 在 PISA 上实现了最先进的性能,在 MiniF2F 上也达到具竞争力的结果,且相较于某些基线,模型规模显著更小。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。