Learn from Failure: Fine-Tuning LLMs with Trial-and-Error Data for Intuitionistic Propositional Logic Proving
Not on the map. Why?
Abstract (arXiv)
Recent advances in Automated Theorem Proving have shown the effectiveness of leveraging a (large) language model that generates tactics (i.e. proof steps) to search through proof states. The current model, while trained solely on successful proof paths, faces a discrepancy at the inference stage, as it must sample and try various tactics at each proof state until finding success, unlike its training which does not incorporate learning from failed attempts. Intuitively, a tactic that leads to a failed search path would indicate that similar tactics should receive less attention during the following trials. In this paper, we demonstrate the benefit of training models that additionally learn from failed search paths. Facing the lack of such trial-and-error data in existing open-source theorem-proving datasets, we curate a dataset on intuitionistic propositional logic theorems and formalize it in Lean, such that we can reliably check the correctness of proofs. We compare our model trained on relatively short trial-and-error information (TrialMaster) with models trained only on the correct paths and discover that the former solves more unseen theorems with lower trial searches.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 25 of its 49 references that are in the map. First posted on arXiv 10 Apr 2024.
Builds on
25 of 49 references.
References · 25
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 387
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Futurecited by 184
13 more
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
- 2021NaturalProofs: Mathematical Theorem Proving in Natural Languagecited by 80
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2021Constructions in combinatorics via neural networkscited by 46
- 2017Premise Selection for Theorem Proving by Deep Graph Embeddingcited by 44
- 2020Learning to Prove Theorems by Learning to Generate Theoremscited by 43
- 2021TacticZero: Learning to Prove Theorems from Scratch with Deep Reinforcement Learningcited by 37
- 2019Learning to Reason in Large Theories without Imitationcited by 27
- 2019A Survey on Theorem Provers in Formal Methodscited by 8
- 2018Automated Theorem Proving in Intuitionistic Propositional Logic by Deep Reinforcement Learningcited by 7
- 2017Towards Proof Synthesis Guided by Neural Machine Translation for Intuitionistic Propositional Logiccited by 1
- 2018Automated proof synthesis for propositional logic with deep neural networkscited by 1
Built on by
Citing papers per year: 2024: 4; 2025: 4; 2026: 3.
11 papers.
- 2024A Survey on Deep Learning for Theorem Provingcited by 55
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verificationcited by 25
- 2025On Almost Surely Safe Alignment of Large Language Models at Inference-Timecited by 13
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 9
- 2026QED: An Open-Source Multi-Agent System for Generating Mathematical Proofs on Open Problemscited by 9
- 2024Can Transformers Do Enumerative Geometry?cited by 8
- 2024Next-Token Prediction Task Assumes Optimal Data Ordering for LLM Training in Proof Generationcited by 2
- 2025LLM-based Automated Theorem Proving Hinges on Scalable Synthetic Data Generationcited by 1
- 2025WarriorMath: Enhancing the Mathematical Ability of Large Language Models with a Defect-aware Frameworkcited by 1
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Tracescited by 1
- 2026LeanPolish: Verified Supervision for Lean Proof Compressioncited by 0
- 2026LeanPolish: Verified Supervision for Lean Proof Compression29 Sep 2026
- 2026QED: An Open-Source Multi-Agent System for Generating Mathematical Proofs on Open Problems27 Apr 2026
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces16 Feb 2026
- 2025WarriorMath: Enhancing the Mathematical Ability of Large Language Models with a Defect-aware Framework2 Aug 2025
- 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Tasks26 May 2025
- 2025LLM-based Automated Theorem Proving Hinges on Scalable Synthetic Data Generation17 May 2025
- 2025On Almost Surely Safe Alignment of Large Language Models at Inference-Time3 Feb 2025
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification18 Dec 2024
- 2024Next-Token Prediction Task Assumes Optimal Data Ordering for LLM Training in Proof Generation30 Oct 2024
- 2024Can Transformers Do Enumerative Geometry?27 Aug 2024
- 2024A Survey on Deep Learning for Theorem Proving15 Apr 2024