Brute Force Meets Brilliance
AlphaProof's Path to the IMO Podium
In this series, we review NeurIPS, ICLR, AAAI, ICML, Nature and CVPR papers in an approachable way. Our main tool is NotebookLM, which is hacking into our human desire for narratives (improve recall and comprehension). To supplement, I provide brief commentary drawn from my experience as a Senior Research Scientist at Nvidia.
Today’s paper:
Google DeepMind. Nature 2025
Commentary
This AlphaProof paper is so permeated into the AI societal consciousness now that we almost take its recipe for granted. First, a formalization system, in this case Lean. Second, building a large domain-specific database. They used 80,000 to 100,000 TPU days (~274 years) just to formalize math problems into 8 million problems that they could then use for supervised training. And third, test time augmentation. In this case, they’re building similar problems, variance mode, on a very hard problem to build the muscles to solve a specific problem. The absolute computational resources they threw at this are enormous. And it’s funny that they only got silver, but eventually they did get gold. It shows that there are probably one or two more tricks up their sleeve. Or maybe it’s just further variance solving and fine-tuning of the reinforcement objective. In this case, the reinforcement objective they used to balance tactics and strategy. So there might be a little bit more tweaking on the tactics versus strategy tradeoff, which is very much related to the post I had on chess earlier here:
NotebookLM podcast and transcript (AI generated, lightly edited)
Read full AI transcript
“We have to start this deep dive with an achievement that is well it’s almost unbelievable. Earlier this year 2024 a system from Google DeepMind enters the International Mathematical Olympiad, the IMO and it walks away with a score that’s equivalent to a silver medal.
It’s just a profound landmark. I mean for decades the IMO has been this this fortress of human intellect. This is the first time an AI system has ever gotten to that competitive metal level status in you know real open-ended math.
And today, our mission is to really pull apart the sources the researchers put out there. We’re deep diving into the reasoning engine that made it happen, an agent called AlphaProof. We need to understand the tech stack that finally cracked what a lot of people consider the grandest challenge left for AI.
And it really is the grand challenge, mathematics. This isn’t about, you know, just processing text or making nice images. It demands incredibly complex, totally rigorous reasoning. And the domains are vast and abstract. The stakes are just so high because the output isn’t just a plausible answer. It has to be a verifiable absolute proof. You can’t be 99% sure. It has to be 100%.
Okay. So, let’s unpack that. The sources show Alpha Proof is built on this uh fascinating mix of ideas. It’s using reinforcement learning. So, the agent can learn from just massive amounts of its own experience. But, and this is key, it grounds all of that learning in a really specific hyper rigorous formal system called lean.
We have to start with lean because it’s it’s the non-negotiable foundation when we talk about large language. LLMs, they’re trained on natural language. They can write proofs that look impressive, sound right, and you know, are often correct, but there’s always that reliability gap. They can hallucinate. They can just kind of approximate correctness based on patterns. You can’t use that for new science.
Right. If an LLM tells me 2 plus 2 equals 5, it just means it saw that somewhere or made a statistical mistake.
Exactly. Formal systems like LeanJust, they eliminate that doubt. They give you absolute machine-verifiable certainty. When Alpha Proof produces is an answer. It isn’t an argument in English. It’s a specific data structure called a proof term.
A proof term. That sounds like the most technical way possible to describe a proof.
It is, but it’s crucial. This data structure, it encodes the entire logical argument line by line from the basic axioms all the way to the conclusion. And Lean’s tiny super reliable kernel checks it. If that kernel accepts the proof term, the theorem is proven. End of story. The machine guaranteed It’s correct.
So the AI isn’t just writing arguments. It’s building this verifiable thing inside Lean. How does it even interact with a system that rigid?
Well, it’s an interactive process almost like a game. Alpha Proof doesn’t try to spit out that entire massive truth term all at once. Instead, it uses things called tactics.
Tactics?
Yeah. Think of a tactic as a small pre-programmed move like rewrite this term or simplify or apply this lemma.
Ah, so the tactics are like moves in a game.
They are. And each tactic manipulates the current logical situ. situation which is called the tactic state.
That state has all your assumptions and hypotheses on one side and the goals you still need to prove on the other. Every time the agent applies a tactic, the state changes and moves a little closer to the goal.
That framing that sounds perfect for reinforcement learning. You have a starting state, the theorem, and the agent just has to pick a sequence of moves, tactics until it solves the puzzle.
It is, and this is where the design gets really interesting because the reward structure has to teach the AI not just to finish but to finish it elegantly. The simple part is it gets a penalty for every tactic it uses. A reward of negative one. So it’s incentivized to find the shortest proof.
Fewer steps, better score. Makes sense. But what about when a problem splits into multiple parts? That happens all the time in hard math.
That’s the core challenge they had to solve. When a state splits into say three different sub goals that all have to be proven, we call that an AD node.
Okay. So you have multiple tasks. I guess the reward is just you know the sum of how hard each of those subtasks is.
That’s the intuitive way. Yeah. But it’s not the best way to teach strategy. Instead of summing the returns, they did something really clever. The total return for that state is the minimum return over those sub goals. Remember the return is a negative number, a cost. So the minimum return is actually the longest or the hardest proof branch.
Wait, why would you penalize it based on the hardest branch? If I solve two easy parts and one really hard part, that’s still a win, isn’t it?
It is eventually. But by keeping analyzing based on the longest path. They’re teaching the agent to be a strategic problem balancer. Think about it. If you split a problem into one 100 step goal and one five-step goal, your score is negative. But if you can find a different way to split into four sub goals that each take 30 steps, your score is -30.
Oh, that is brilliant. It forces the agent to balance the difficulty right at the start. It stops it from just knocking out the easy stuff and then hitting a brick wall. That’s that’s really sophisticated.
It forces strategic thinking just like a human expert. So now let’s talk about the machine itself cuz this level of reasoning, it takes unbelievable horsepower and data,
right? So what is the actual agent? What’s the core architecture?
It’s a combination. AlphaProof has a deep neural network. It’s a three billion parameter transformer model. They call it the proof network. And it combines that with the alpha zero style tree we’ve been talking about. So you have the transformer giving the intuition and the tree search providing the logical rigorous exploration.
A three billion parameter model is big, but it still has to learn math from the ground up. The sources describe this multi-stage training process that is just dizzying in scale.
It had to be the agent needed both broad knowledge and very specific domain rigor. So stage one was just pre-training. They started the network on this huge corpus, something like 300 billion tokens of code and math text just to get a feel for logical structure.
So that’s the baseline getting a feel for how lodge work.
Exactly. Then came supervised fine-tuning as T. They took about 300,000 examples of state tactic pairs from human written proofs in Lean’s main library, Mathlib. This taught the network the specific syntax of Lean, and gave it a first guess at how hard a proof might be. It learned what a good move looks like.
But the real turning point where this gets really wild is the main reinforcement learning loop. To learn, the agent needs millions of problems. Humans just don’t write 80 million formal proofs.
They don’t. So to run that core alpha zero loop where the agent learns from its own self generated proofs, they had to basically manufacture a giant synthetic curriculum. And this took a huge effort in what they call auto formalization.
They used a version of Gemini, their big LLM, but fine-tuned to translate messy informal math problems into these perfectly rigorous lean statements.
Correct. And that LLM took around 1 million formal problems and translated them into, it’s almost hard to imagine, 80 million formal lean problems. That data set is just vastly bigger than anything else that exists. 80 million problems. That’s a whole computational project in itself. So that gave the agent enough raw material to just explore the mathematical universe, generating its own proofs, all with verifiable feedback from lean.
It is, but we have to be clear about the cost. The sources say the main RL loop alone took about 80,000 TPU days and the auto formalization step before that, another 100,000 TPU days of work.
A TPU day being one of those specialized chips running for a full 24 hours. So hundreds of thousands of days of high-end computation. What did that investment actually buy them?
Speed and efficiency when it really matters, at inference time. The data shows a clear pattern. As trading went on, the agent got exponentially better at guiding the search. The final trained agent needed way fewer tree search simulations to solve problems, sometimes orders of magnitude fewer. That huge upfront cost became powerful, efficient reasoning.
But even with all that training, some problems are just different. They’re locked up tight. And that brings us to the system. real secret weapon for the absolute hardest theorems.
That’s their big innovation, test time reinforcement learning or TTRL. The researchers saw that for the trickiest IMO level problems, just throwing more simulations at it, brute force search hits a point of diminishing returns, you need the agent to adapt to the specific problem.
So instead of just relying on its general knowledge from those 80 million problems, they actually teach the agent how to solve that one hard problem right there on the spot.
Precisely. TTRL is a two-step process. First, For a specific target problem, Alpha Proof uses its variant generator, that specialized Gemini model again, to create a custom-made curriculum of related synthetic problems.
What does a variant look like here?
It could be a simplified version of the problem, maybe a generalization. Or it could be finding related lemmas that are easier to prove but logically connected. It’s directly inspired by human problem solving, like George Polya’s idea of breaking a hard problem down into smaller related pieces.
It’s like the system is giving itself custom homework just to build up the specific concepts and muscle memory for that one final exam question.
That is a perfect analogy. And once it has that curriculum of variance, the RO loop runs again, but this time it’s hyperfocused only on solving those related problems. It fine-tunes itself on the fly, becoming a specialist trained to crack that one specific theorem.
That ability to adapt so quickly, to focus all that power on one obstacle, that must have made a huge difference.
It was the difference maker. The results are incredible. On the hardest benchmark, like the formal IMO problems and the platinum competition problems. TTRL boosted the solve rates by another 15 absolute percentage points. It just unlocked solutions that were completely out of reach otherwise.
Which brings us to the ultimate proof of capability. Beyond the internal tests, this thing was judged in a live high-stakes competition, the 2024 IMO.
Yeah, the benchmark results were already state-of-the-art. It was beating everything on formal math sets like Mini F2F. But the Mo that’s the main event.
So how did the system actually do against the world’s best high school mathematicians?
The combined AI system so alpha proof for most problems and a specialized alpha geometry 2 for geometry solved four out of six problems. Alpha proof itself handled the three non-geometry problems. P1, P2, and P6 which were algebra and number theory. And then alpha geometry 2 solved the geometry 1 P4.
Four out of six. That’s an incredible performance for any competitor. What was the final score?
The performance gave it a total score of 28 out of 4. 2 points. And critically, that score put the AI system squarely within the silver medal threshold for the 2024 competition. The first ever medal for an AI at the IMO. It’s historic.
And we really have to stress the difficulty here. P6, that final problem, it’s notoriously hard. It’s designed to find the absolute best of the best.
V6 was the single hardest problem in the competition. Yeah. Only five human contestants solved it that year. And Alpha Proof found the formal proof and verified it. And what’s really fascinating is the key in sight the system found it constructed this function 5xx plus 2 LC xxx that’s a really nonobvious deeply conceptual step it’s not just number crunching it’s advanced strategic reasoning
so what does all this mean we have this groundbreaking result but the sources are also pretty clear about the limitations AI hasn’t just solved math overnight
right the biggest limitation is the computational cost we talked about TTRL for those hardest problems took 2 to three days for a single problem a human contestant has 2 days for the entire competition. So, the time constraints are just completely different.
And that massive upfront investment, the 80 to 100,000 TPU days for training, that’s a scale that’s probably out of reach for most academic labs or even smaller companies.
Exactly. This is foundational pathfinding research. It wasn’t built to be efficient or democratized. It was a proof of concept. Just demonstrating that this is even possible is the critical first step. Now, future research can focus on making it faster, cheaper, more accessible,
and What about the mathematical frontier? Alpha proof success is in competition math which you know operates within a known library of concepts. What’s the next big hurdle?
The next step is true theory building. Moving beyond solving existing theorems and actually extending the frontiers of research. That means adding truly new concepts to the lean library, new definitions, maybe entire new branches of math, moving from solving problems to discovering them.”