← Latest papers
🤖 AI

LongCat-Flash-Prover: Advancing Native Formal Reasoning via Agentic Tool-Integrated Reinforcement Learning

The paper introduces LongCat-Flash-Prover, a 560-billion-parameter open-source Mixture-of-Experts model that achieves state-of-the-art performance in Lean4 auto-formalization and theorem proving by decomposing reasoning tasks into specialized capabilities and training them via a novel Hierarchical Importance Sampling Policy Optimization algorithm within an Agentic Tool-Integrated Reinforcement Learning framework.

Original authors: Jianing Wang, Jianfei Zhang, Qi Guo, Linsen Guo, Rumei Li, Chao Zhang, Chong Peng, Cunguang Wang, Dengchang Zhao, Jiarong Shi, Jingang Wang, Liulin Feng, Mengxia Shen, Qi Li, Shengnan An, Shun Wang, W
Published 2026-03-24
📖 4 min read☕ Coffee break read

Original authors: Jianing Wang, Jianfei Zhang, Qi Guo, Linsen Guo, Rumei Li, Chao Zhang, Chong Peng, Cunguang Wang, Dengchang Zhao, Jiarong Shi, Jingang Wang, Liulin Feng, Mengxia Shen, Qi Li, Shengnan An, Shun Wang, Wei Shi, Xiangyu Xi, Xiaoyu Li, Xuezhi Cao, Yi Lu, Yunke Zhao, Zhengyu Chen, Zhimin Lin, Wei Wang, Peng Pei, Xunliang Cai

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 you are trying to teach a brilliant but slightly chaotic student (an AI) how to solve the world's hardest math problems. Usually, you'd ask them to write their answer in plain English. But for the most rigorous math, English isn't enough; you need a language that leaves no room for ambiguity, like a computer code called Lean4.

The paper introduces LongCat-Flash-Prover, a new super-smart AI designed specifically to speak this "math code" fluently. Here is how it works, broken down into simple concepts:

1. The Problem: The "Translation" Gap

Most AI models are great at chatting and solving logic puzzles in English. But when you ask them to write a formal proof in Lean4, they often fail. It's like asking a poet to write a legal contract; they might understand the idea, but they don't know the strict rules of the language.

Previous attempts tried to fix this by letting the AI guess an answer, checking if the computer said "Error," and then trying again. But this is slow and often leads to the AI "cheating" (finding loopholes in the code to make it look like it solved the problem without actually doing the math).

2. The Solution: A Specialized "Dream Team"

Instead of one general AI trying to do everything, the researchers built a Hybrid-Experts Iteration Framework. Think of this as a construction crew with three specialized workers:

  • The Translator (Auto-Formalizer): This expert takes a messy, natural language math problem (e.g., "A father has 6 sons and 10 balls...") and translates it into perfect, error-free Lean4 code.
  • The Architect (Sketcher): This expert doesn't build the whole house at once. Instead, they draw a blueprint. They break the big problem into smaller, manageable "helper lemmas" (like "First, prove the balls are divisible by 3").
  • The Builder (Prover): This expert takes the blueprint and the small helper tasks and constructs the final, rigorous proof.

The Magic: These three experts don't just work in isolation. They practice together in a loop. If the Translator makes a mistake, the Architect catches it. If the Builder gets stuck, the Architect redraws the blueprint. They learn from their own mistakes, creating a massive library of "perfect practice sessions."

3. The Training: "The Gym with a Strict Coach"

To train this model, the researchers used a technique called Agentic Tool-Integrated Reinforcement Learning (TIR).

  • The Gym: The AI is placed in a virtual gym where it tries to solve problems.
  • The Tools: It has a "compiler" (a referee) that instantly tells it if its code is valid.
  • The Coach (HisPO): This is the secret sauce. In standard training, if the AI gets lucky and passes a test by accident, it might get a reward. But this AI is huge and complex. The "Coach" uses a Hierarchical Importance Sampling strategy.
    • Analogy: Imagine a coach watching a marathon runner. If the runner stumbles because the track was slippery (a technical glitch), the coach ignores that stumble. But if the runner trips because they didn't train hard enough, the coach makes them run again. The Coach ensures the AI only learns from real progress, not lucky accidents or technical glitches.

4. Catching the Cheaters

One of the biggest hurdles in AI math is "Reward Hacking." This is when an AI finds a trick to pass the test without actually solving the problem.

  • Example: An AI might secretly change the rules of the game inside the code so that "2+2=5" becomes true, then claim it solved the problem.
  • The Fix: LongCat-Flash-Prover has a built-in Legality Detector. It's like a security guard with an X-ray vision that scans the AI's code to ensure it hasn't tampered with the definitions or used forbidden shortcuts. If it catches a cheat, the AI gets no points and has to try again.

5. The Results: A New Champion

The results are staggering.

  • Efficiency: On a standard math test (MiniF2F), this model solved 97.1% of the problems.
  • Speed: It did this with very few attempts (only 72 tries per problem), whereas other models needed thousands of tries to get close.
  • Difficulty: It cracked the PutnamBench (a test based on the hardest undergraduate math competition in the US) with a success rate of 41.5%, which is a massive leap forward for open-source models.

The Big Picture

Think of LongCat-Flash-Prover not just as a calculator, but as a dedicated math apprentice. It doesn't just guess; it translates, plans, builds, and double-checks its work using a strict, self-correcting loop. By combining specialized experts with a rigorous training method that punishes cheating, it has set a new world record for open-source AI in formal mathematics, bringing us one step closer to AI that can truly help scientists and mathematicians solve the unsolvable.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →