Sequent-Prover:训练智能体以进行基于SMT的可验证形式化推理
Sequent-Prover: Training Agents for Formal, Checkable SMT-based Reasoning
AI总结:
Sequent-Prover是一类使用验证器的语言模型智能体,通过验证器条件轨迹蒸馏后训练框架,在37个基准测试上提升了4B模型的SMT推理准确率与可靠性,减少了SMT调用次数和token数,答案有可执行形式化产物支撑。
摘要:
我们推出Sequent-Prover,这是一类使用验证器的语言模型智能体,以及生成它们的后训练框架。这些智能体在可执行的SMT-LIB草稿板中进行推理:它们编写完整的SMT-LIB程序,在多轮交互中查询Z3,检查求解器反馈,修正形式化表述,并以明确的答案终止。我们的方法是验证器条件轨迹蒸馏,通过采样多轮轨迹,保留正确、非平凡、基于事实且可执行的成功尾部,再应用监督微调与轨迹级偏好优化,从有噪声的教师提议策略中进行自举。由于仅求解器成功无法保证语义忠实性,我们评估任务准确率、k样本可靠性和SMT程序质量。在37个基准测试及每个模型系列7254个问题上,后训练将4B模型的单尝试准确率从85.6%提升至97.0%,四样本全正确可靠性(pass^4)从64.1%提升至91.7%,还将平均SMT调用次数从4.10降至2.52,单尝试token数从18.97k降至12.72k。Sequent-Prover智能体给出的答案有可执行形式化产物作为支撑。
英文摘要:
We introduce Sequent-Prover, a family of verifier-using language-model agents, and the post-training framework that produces them. Agents reason in an executable SMT-LIB scratchpad: they write complete SMT-LIB programs, query Z3 across turns, inspect solver feedback, repair formalizations, and terminate with an explicit answer. Our recipe, verifier-conditioned trajectory distillation, bootstraps from a noisy teacher proposal policy by sampling multi-turn trajectories, retaining the successful tail that is correct, non-trivial, grounded, and executable, then applying supervised fine-tuning and trajectory-level preference optimization. Because solver success alone does not guarantee semantic faithfulness, we evaluate task accuracy, k-sample reliability, and SMT program quality. Across 37 benchmarks and 7,254 problems per model family, post-training raises the 4B model's per-attempt accuracy from 85.6% to 97.0% and four-sample all-correct reliability (pass^4}) from 64.1% to 91.7%. It also reduces average SMT calls from 4.10 to 2.52 and tokens per attempt from 18.97k to 12.72k. Sequent-Prover agents give answers backed by executable formal artifacts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。