Diffusion-Proof: Recipe for Formal Theorem Proving Beyond Auto-Regressive Generation
The paper introduces **Diffusion-Proof**, the first framework to apply diffusion-based Large Language Models for formal theorem proving, which outperforms traditional auto-regressive baselines by leveraging iterative denoising for long-range coherence and local correction, achieving significant benchmark improvements and solving an IMO problem that state-of-the-art models could not.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Idea: Fixing the "One-Way Street" of AI Math
Imagine you are trying to solve a very complex math puzzle, like a proof in a formal language called Lean. This language is like a strict computer code where every single step must be logically perfect. If you make one tiny mistake, the whole proof collapses.
For years, the best AI models for this job have been Auto-Regressive (AR) models. Think of these models like a person writing a story one word at a time, strictly from left to right. They can't see what they are about to write, and they can't easily go back and change a word they wrote five minutes ago without rewriting the whole sentence.
The Problem:
In long math proofs, this "one-way street" approach causes two big issues:
- The Domino Effect: If the AI makes a small mistake early on, it keeps building on that mistake, making the error worse and worse until the proof is garbage.
- No "Looking Back": If the AI realizes halfway through that the first step was wrong, it can't easily fix just that first step. It has to start over or awkwardly try to patch the end of the sentence to match the beginning.
The Solution: The "Diffusion" Approach
The authors of this paper propose a new way to build AI for math called Diffusion-Proof. Instead of writing word-by-word, they use a Diffusion Large Language Model (dLLM).
The Analogy: The Sculptor vs. The Scribe
- The Old Way (AR Model): Imagine a scribe writing a letter. Once the ink is dry, they can't change it. If they misspell a word, they have to cross it out and write a messy note next to it.
- The New Way (Diffusion Model): Imagine a sculptor working with a block of clay. They don't just add clay; they start with a rough, noisy lump and iteratively refine it. They can look at the whole shape at once, smooth out a bump on the left side while looking at the curve on the right side, and fix mistakes by "denoising" the whole picture until it's perfect.
In technical terms, the Diffusion model generates text in blocks (chunks of words) rather than single words. It can look at the beginning and the end of a sentence simultaneously to figure out what fits in the middle.
How Diffusion-Proof Works: The Duo Team
The paper introduces a two-part team to solve these math problems:
1. The Architect (dLLM-Prover-7B)
This is the main builder. Because it uses the "sculptor" method (block diffusion), it is much better at long-range planning.
- Why it matters: When building a long proof, the Architect can see the "big picture." It knows that the final step requires a specific condition, so it sets up the beginning of the proof to match that condition perfectly. It doesn't get lost in the middle because it can "see" the whole block of text at once.
2. The Inspector (dLLM-Corrector-7B)
Even the best Architect makes mistakes. Sometimes the proof looks good, but a specific step is wrong.
- The Old Way: If an AR model makes a mistake, it often tries to fix it by writing more text after the error, which usually makes things worse.
- The New Way: The Inspector is a special model trained to fill in the blanks. If the proof fails, the system takes the broken part, covers it with a "mask" (like a blank space), and asks the Inspector to rewrite just that specific chunk.
- The Superpower: Because the Inspector uses the diffusion method, it can look at the text before the error and the text after the error to figure out exactly what the missing piece should be. It's like a editor who reads the sentence before and after a typo to guess the right word, rather than just guessing based on the previous word.
The Results: Beating the Giants
The researchers tested this new system on two famous math benchmarks:
- MiniF2F: A collection of high-school and competition math problems.
- ProofNet: A collection of college-level math problems.
The Scoreboard:
- The new Diffusion-Proof system beat the best traditional (Auto-Regressive) models trained on the exact same data.
- It solved 6.14% more problems on the MiniF2F test.
- It solved 1.61% more problems on the ProofNet test.
The "IMO" Moment:
The most exciting result was a specific International Math Olympiad (IMO) problem. A very advanced, famous AI model called DeepSeek-Prover-V2 (which uses "Chain of Thought" reasoning) failed to solve it. Diffusion-Proof solved it.
Why? The DeepSeek model got stuck in a loop of trying to fix its own plan, but it couldn't see the long-range connection between the start and end of the proof. The Diffusion model, with its ability to look at the whole "block" of the proof at once, found the correct path.
Summary
The paper claims that by switching from "writing one word at a time" to "sculpting blocks of text," AI can become much better at formal math. It creates a system that plans better over long distances and can fix its own mistakes by looking at the whole context, not just the immediate past. This allows it to solve hard math problems that previous AI models simply couldn't crack.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.