Inference-Time Diversity in RL-Trained Lean Theorem Provers: A Diagnostic Study
This study reveals that RL-trained Lean theorem provers suffer from inference-time mode collapse, which can be effectively mitigated by applying a fixed schedule of diverse tactic skeletons to recover significant performance gains, whereas prompt paraphrasing and irrelevant comments prove ineffective or detrimental.
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
Imagine a brilliant student who has been trained to solve very difficult math puzzles using a special computer language called Lean. This student, let's call them "DeepSeek," is incredibly smart but has a strange habit: when asked to solve a puzzle, they get stuck in a mental rut.
This paper is a diagnostic report on why this happens and how to fix it. Here is the story of what the researchers found, told in everyday terms.
1. The Problem: The "Broken Record" Effect
The researchers noticed that when they asked DeepSeek to solve the same math puzzle over and over again (just with slightly different random seeds, like rolling dice), the student kept trying the exact same first step.
- The Analogy: Imagine you are trying to open a locked door. You try the key in the lock. It doesn't work. You try again. It still doesn't work. You try a third time, and a hundredth time. Even if you try 64 times, you are just jamming the same key into the same lock in the same way. You aren't exploring other keys or other ways to open the door.
- The Result: In the study, doubling the number of attempts from 32 to 64 didn't solve a single new puzzle. The student had "mode collapsed"—they were stuck on a narrow path and couldn't think of anything else.
2. The Fix: Giving a "First Step" Hint
The researchers realized that the student wasn't lazy; they were just too stuck in their routine. So, they tried a new trick: before asking the student to solve the puzzle, they gave them a specific instruction on how to start.
- The Analogy: Instead of just saying, "Solve this puzzle," the researchers said, "Start by simplifying the numbers," or "Start by introducing a new variable." It's like giving the student a specific key to try first, rather than letting them guess.
- The Result: This simple nudge broke the rut. The student suddenly started solving many more puzzles. The "rut" wasn't because the student was bad at math; it was because they were too rigid in how they started.
3. The "Why": It's a Training Issue, Not a Brain Issue
The researchers wanted to know: Is the student naturally bad at math, or did the training make them rigid?
- The Experiment: They tested the student before they got the special math training (the "Base" model).
- The Finding: The untrained student couldn't solve any puzzles at all. They just gave up or repeated the question.
- The Conclusion: The special training (Reinforcement Learning) is what taught the student how to solve puzzles in the first place. But, that same training is also what made them rigid and stuck in a rut. The training created the skill, but it also created the "broken record" problem.
4. Who Else Has This Problem?
The researchers tested other "students" (different AI models) to see if this was a universal problem.
- The "SFT" Student: One student was trained differently (Supervised Fine-Tuning). This student was actually better at solving puzzles overall, but they didn't have the "rut" problem. When the researchers gave them hints, it actually made them slightly worse. They were already flexible enough to find their own path.
- The "RL" Students: The students trained with the special "Reinforcement Learning" method (like DeepSeek) were the ones who got stuck. They needed the "first step" hints to break out of their narrow thinking.
5. The "First Move" Evidence
To prove this wasn't just a fluke, the researchers looked at the actual "first moves" the students made.
- The Finding: Out of 64 attempts on a single puzzle, the "rutty" student used the exact same first move in nearly half the cases. They were incredibly predictable.
- The Metaphor: If you asked a human to write a story 64 times, they might start with "Once upon a time," "The sun was shining," or "It was a dark night." But this AI student would start with "Once upon a time" 32 times, and "The sun was shining" 30 times. They had almost no variety in their opening.
Summary
The paper concludes that Reinforcement Learning (a specific way of training AI) creates a double-edged sword:
- It teaches the AI how to solve formal math proofs (which it couldn't do before).
- But it also makes the AI so focused on a few "winning" strategies that it stops exploring new ones.
The solution isn't to give the AI more computing power or more time to think; it's to give it structural guidance—a simple nudge on how to start the proof. This forces the AI to break its routine and explore new paths, unlocking solutions it was previously too stubborn to find.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.