StepFun-Formalizer: 通过知识推理融合解锁大语言模型的自动形式化潜力
StepFun-Formalizer: Unlocking the Autoformalization Potential of LLMs through Knowledge-Reasoning Fusion
AI总结:
StepFun-Formalizer通过知识推理融合提升大语言模型的自动形式化能力,在FormalMATH-Lite和ProverBench上取得最佳成绩。
摘要:
自动形式化旨在将自然语言数学陈述翻译成形式语言。尽管大语言模型(LLMs)在该领域加速了进展,但现有方法仍存在准确率低的问题。我们识别出有效自动形式化的两个关键能力:对形式语言领域知识的全面掌握,以及自然语言问题理解和非正式到正式对齐的推理能力。没有前者,模型无法识别正确的形式对象;没有后者,它难以解读现实世界情境并精确映射到形式表达。为解决这些缺口,我们引入ThinkingF,一种数据合成和训练流水线,以提升这两种能力。首先,我们构建了两个数据集:一个通过蒸馏和选择富含形式知识的大规模示例,另一个通过专家设计的模板生成非正式到正式的推理轨迹。然后我们应用SFT和RLVR,利用这些数据集进一步融合和优化这两种能力。最终的7B和32B模型在形式知识和非正式到正式推理方面均表现出色。值得注意的是,StepFun-Formalizer-32B在FormalMATH-Lite上实现了SOTA BEq@1分数40.5%,在ProverBench上实现了26.7%,超越了所有先前通用和专用模型。
英文摘要:
Autoformalization aims to translate natural-language mathematical statements into a formal language. While LLMs have accelerated progress in this area, existing methods still suffer from low accuracy. We identify two key abilities for effective autoformalization: comprehensive mastery of formal-language domain knowledge, and reasoning capability of natural language problem understanding and informal-formal alignment. Without the former, a model cannot identify the correct formal objects; without the latter, it struggles to interpret real-world contexts and map them precisely into formal expressions. To address these gaps, we introduce ThinkingF, a data synthesis and training pipeline that improves both abilities. First, we construct two datasets: one by distilling and selecting large-scale examples rich in formal knowledge, and another by generating informal-to-formal reasoning trajectories guided by expert-designed templates. We then apply SFT and RLVR with these datasets to further fuse and refine the two abilities. The resulting 7B and 32B models exhibit both comprehensive formal knowledge and strong informal-to-formal reasoning. Notably, StepFun-Formalizer-32B achieves SOTA BEq@1 scores of 40.5% on FormalMATH-Lite and 26.7% on ProverBench, surpassing all prior general-purpose and specialized models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。