Abstract
We introduce LongCat-Flash-Prover, a flagship 560-billion-parameter open-source Mixture-of- Experts (MoE) model that advances Native Formal Reasoning in Lean4 through agentic tool-integrated reasoning (TIR). We decompose the native formal reasoning task into three independent formal capabilities, i.e., auto-formalization, sketching, and proving. To facilitate these capabilities, we propose a Hybrid-Experts Iteration Framework to expand high-quality task trajectories, including generating a formal statement based on a given informal problem, producing a whole-proof directly from the statement, or a lemma-style sketch. During agentic RL, we present a Hierarchical Importance Sampling Policy Optimization (HisPO) algorithm, which aims to stabilize the MoE model training on such long-horizon tasks. It employs a gradient masking strategy that accounts for the policy staleness and the inherent train-inference engine discrepancies at both sequence and token levels. Additionally, we also incorporate theorem consistency and legality detection mechanisms to eliminate reward hacking issues. Extensive evaluations show that our LongCat-Flash-Prover sets a new state-of-the-art for open-weights models in both auto-formalization and theorem proving. Demonstrating remarkable sample efficiency, it achieves a 97.1% pass rate on MiniF2F-Test using only 72 inference budget per problem. On more challenging benchmarks, it solves 70.8% of ProverBench and 41.5% of PutnamBench with no more than 220 attempts per problem, significantly outperforming existing open-weights baselines.
Abstract (translated)
我们推出了旗舰级开源混合专家(MoE)模型LongCat-Flash-Prover,该模型拥有5600亿参数,通过智能体工具集成推理(TIR)技术推动了Lean4中的原生形式推理发展。我们将原生形式推理任务分解为三种独立的形式化能力:自动形式化、草图构建与定理证明。为促进这些能力,我们提出了混合专家迭代框架以扩展高质量任务轨迹,包括基于给定非形式化问题生成形式化陈述、直接从陈述生成完整证明或引理式草图。在智能体强化学习阶段,我们提出了分层重要性采样策略优化(HisPO)算法,旨在稳定MoE模型在长周期任务上的训练。该算法采用梯度掩蔽策略,同时考虑策略陈旧性以及序列和标记层面固有的训练-推理引擎差异。此外,我们还整合了定理一致性与合法性检测机制以消除奖励作弊问题。广泛评估表明,我们的LongCat-Flash-Prover在自动形式化和定理证明两项任务上为开源权重模型设立了新的最先进水平。该模型展现出卓越的样本效率,在MiniF2F-Test测试中仅用每题72次推理预算即达到97.1%通过率。在更具挑战性的基准测试中,它以每题不超过220次尝试解决了70.8%的ProverBench和41.5%的PutnamBench题目,显著超越现有开源基线模型。
URL
https://arxiv.org/abs/2603.21065