atlas

Research map / Large language models / Agents, code and math

Subgoal-based Demonstration Learning for Formal Theorem Proving

ICML 2024 · Large language models › Agents, code and math · approach: Retrieval-augmented formal theorem proving

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes subgoal-based demonstration learning for LLM formal theorem proving in Isabelle, refining subgoal proofs with a prover and organizing in-context demonstrations (selection and order) via a graph discrete diffusion model, reaching 45.5% on miniF2F-test.

Problem

LLM-based formal theorem proving is sensitive to the format and selection/ordering of in-context demonstration examples, and informal proofs are poorly suited to LLMs; the joint subset selection and ordering problem is combinatorially hard.

Approach

Replace informal proofs with subgoal-based proofs refined iteratively with an LLM and Isabelle verification (guided by subgoal learning theory), and treat demonstration subset selection plus ordering as a graph diffusion problem trained on successful demonstration organizations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use subgoal-based proofs instead of informal proofs (ablation)Ours · miniF2F-testpass rate: 40.6% -> 45.5%Helped
Use diffusion-based demonstration reorganization instead of randomized selection (ablation)Ours · miniF2F-testpass rate: 44.1% -> 45.5%Helped
Add subgoal-based proofs and diffusion-based demonstration reorganization (ablation)gpt-3.5-turbo-0301 · miniF2F-testpass rate: 38.7% -> 45.5%Helped
Add subgoal-based proofs and diffusion-based demonstration reorganizationDSP (540B Minerva) · miniF2F-testpass rate: 38.9% -> 45.5%Helped
Use diffusion-based demonstration reorganizationOurs · miniF2F-test with 20 LLM callspass rate: 38.5%Helped

Surprising findings

Limitations

Experimental setup

Datasets: miniF2F

Benchmarks: miniF2F

Metrics: pass rate cumulative pass rate number of problems solved vs LLM calls

Baselines: Sledgehammer Sledgehammer+heuristic Thor Thor + expert iteration DSP LEGO-Prover Lyra Top-K demonstration selection GNN demonstration selection

Builds on: Draft, Sketch, and Prove (DSP) Thor Sledgehammer discrete diffusion models for NP-complete problems subgoal learning (Zhang et al., 2021)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy