Magnushammer: A Transformer-Based Approach to Premise Selection

Maciej Mikuła, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski, Albert Qiaochu Jiang +5 more
3/8/2023
cs.LGcs.AIcs.LO
transformer-attention

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mikua2023magnushammer,
  title  = {Magnushammer: A Transformer-Based Approach to Premise Selection},
  author = {Maciej Mikuła and Szymon Tworkowski and Szymon Antoniak and Bartosz Piotrowski and Albert Qiaochu Jiang and Jin Peng Zhou and Christian Szegedy and Łukasz Kuciński and Piotr Miłoś and Yuhuai Wu},
  year   = {2023},
  eprint = {2303.04488},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.04488v3},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.04488.svg)](https://codeofpaper.com/paper/2303.04488)

Discussion