mlsanityData to 7 Oct 2026

Magnushammer: A Transformer-Based Approach to Premise Selection

arXiv 2303.04488 ↗First posted 8 Mar 2023cs.LG cs.AI cs.LOcited by 50

Not on the map. Why?

Abstract (arXiv)

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 4x 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.

Key facts. Cited by 50 papers in the map (data through 7 Oct 2026). Builds on 37 of its 92 references that are in the map. First posted on arXiv 8 Mar 2023.

Builds on

37 of 92 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  10. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  11. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  12. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
25 more
  1. 2019Cross-lingual Language Model Pretrainingcited by 1,088
  2. 2019Passage Re-ranking with BERTcited by 629
  3. 2020Contrastive Learning with Hard Negative Samplescited by 619
  4. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
  5. 2020Generative Language Modeling for Automated Theorem Provingcited by 379
  6. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
  7. 2022Autoformalization with Large Language Modelscited by 252
  8. 2022Memorizing Transformerscited by 219
  9. 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
  10. 2022Formal Mathematics Statement Curriculum Learningcited by 141
  11. 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
  12. 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
  13. 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
  14. 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
  15. 2019Graph Representations for Higher-Order Logic and Theorem Provingcited by 55
  16. 2017Premise Selection for Theorem Proving by Deep Graph Embeddingcited by 44
  17. 2017HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Provingcited by 26
  18. 2020First Neural Conjecturing Datasets and Experimentscited by 26
  19. 2013MizAR 40 for Mizar 40cited by 23
  20. 2018ATPboost: Learning Premise Selection in Binary Setting with ATP Feedbackcited by 12
  21. 2020Stateful Premise Selection by Recurrent Neural Networkscited by 11
  22. 2013HOL(y)Hammer: Online ATP Service for HOL Lightcited by 8
  23. 2022The Isabelle ENIGMAcited by 8
  24. 2015Premise Selection and External Provers for HOL4cited by 7
  25. 2018PaMpeR: Proof Method Recommendation System for Isabelle/HOLcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 6; 2024: 21; 2025: 14; 2026: 9.

50 papers.

Sort:

By area:

  1. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  2. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  3. 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 126
  4. 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
  5. 2024A Survey on Deep Learning for Theorem Provingcited by 55
  6. 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 52
  7. 2024Process-Driven Autoformalization in Lean 4cited by 45
  8. 2023Decomposing the Enigma: Subgoal-based Demonstration Learning for Formal Theorem Provingcited by 37
  9. 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
  10. 2025Solving Formal Math Problems by Decomposition and Iterative Reflectioncited by 35
  11. 2024LeanAgent: Lifelong Learning for Formal Theorem Provingcited by 34
  12. 2024Proving Theorems Recursivelycited by 25
38 more
  1. 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 24
  2. 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchicallycited by 22
  3. 2024Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programmingcited by 19
  4. 2024Graph2Tac: Online Representation Learning of Formal Math Conceptscited by 15
  5. 2024Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Provingcited by 11
  6. 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Provingcited by 11
  7. 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
  8. 2024Can Transformers Do Enumerative Geometry?cited by 8
  9. 2024Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verificationcited by 8
  10. 2025Lean Finder: Semantic Search for Mathlib That Understands User Intentscited by 7
  11. 20243D-Prover: Diversity Driven Theorem Proving With Determinantal Point Processescited by 6
  12. 2025HybridProver: Augmenting Theorem Proving with LLM-Driven Proof Synthesis and Refinementcited by 6
  13. 2025Premise Selection for a Lean Hammercited by 6
  14. 2024Smart Vision-Language Reasonerscited by 5
  15. 2025MiniF2F in Rocq: Automatic Translation Between Proof Assistants -- A Case Studycited by 5
  16. 2025MIRB: Mathematical Information Retrieval Benchmarkcited by 5
  17. 2025Agentic Verification of Software Systemscited by 5
  18. 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalizationcited by 4
  19. 2024Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutationcited by 3
  20. 2025Verifying LLM-Generated Code in the Context of Software Verification with Ada/SPARKcited by 3
  21. 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
  22. 2023Enhancing Neural Theorem Proving through Data Augmentation and Dynamic Sampling Methodcited by 2
  23. 2024Learning Structure-Aware Representations of Dependent Typescited by 2
  24. 2024Next-Token Prediction Task Assumes Optimal Data Ordering for LLM Training in Proof Generationcited by 2
  25. 2025Local Look-Ahead Guidance via Verifier-in-the-Loop for Automated Theorem Provingcited by 2
  26. 2024Learning Better Representations From Less Data For Propositional Satisfiabilitycited by 1
  27. 2024tsGT: Stochastic Time Series Modeling With Transformercited by 1
  28. 2025Hierarchical Attention Generates Better Proofscited by 1
  29. 2025Clarifying Before Reasoning: A Coq Prover with Structural Contextcited by 1
  30. 2026TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematicscited by 1
  31. 2025Learning Representations Through Contrastive Neural Model Checkingcited by 0
  32. 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematicscited by 0
  33. 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
  34. 2026Geometric Measurements of the Axiom of Choice in Neural Proof Embeddingscited by 0
  35. 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
  36. 2026Beyond Correctness: Toward Automated Novelty Verification with Lean 4cited by 0
  37. 2026Governed Deduction: Policy-Grounded Premise Authorization Beyond Relevancecited by 0
  38. 2026When Does Structured Knowledge Help Neural Theorem Proving?cited by 0