arXiv:2505.15960cs.CL2025-05ACL被引 4

用形式化验证自动生成大模型推理训练数据,省去人工标注。

Efficient PRM Training Data Synthesis via Formal Verification

论文配图:Efficient PRM Training Data Synthesis via Formal Verification
图 1 · 摘自论文原文
  • 通过Z3、Isabelle等工具自动标注推理步骤错误,无需人工或额外LLM调用。
  • 在12个基准上微调后,模型在数学、逻辑及NLI等任务上均显著提升。
  • 适合关注高效构建推理监督数据的研究者和开发者。

过程奖励模型(PRMs)通过监督推理轨迹来提升大模型的推理能力,但现有训练数据构建方法成本高且噪声大,通常依赖人工标注或需多次调用LLM的采样标注。本文提出FoVer框架,利用形式化验证工具(如Z3、Isabelle)从形式化推理任务中自动生成带步骤级错误标签的PRM训练数据。该方法无需人工标注或额外LLM调用,实现高效准确的数据构建。基于该方法,我们在形式逻辑与定理证明任务上生成训练数据。实验在12个推理基准上表明,使用该数据微调的PRM不仅在数学和逻辑推理任务上表现更优(这些是训练任务的非正式变体),还在NLI和BBH等与训练任务差异较大的基准上取得提升。结果证明,通过形式化验证生成的训练数据能有效增强模型在自然语言非形式推理任务上的表现。相关数据集、模型与代码已开源:https://github.com/psunlpgroup/FoVer。

原文摘要 · Abstract (English)

Process Reward Models (PRMs) have emerged as a promising approach for improving LLM reasoning capabilities by providing process supervision over reasoning traces. However, existing approaches for constructing PRM training data remain costly and noisy, as they typically rely on human annotation or sampling-based labeling methods that require repeated LLM calls. In this work, we propose FoVer, a framework that synthesizes PRM training data from formal reasoning tasks by annotating step-level error labels using formal verification tools such as Z3 and Isabelle. By leveraging formal verification, FoVer enables efficient and accurate PRM data construction without requiring human annotation or additional LLM calls. Using FoVer, we create PRM training data from formal logic and theorem proving tasks. Experiments on 12 reasoning benchmarks show that fine-tuning on our training data improves PRMs not only on math and logic reasoning tasks, which are informal variants of the training tasks, but also on NLI and BBH benchmarks, which differ substantially from the tasks used to construct the training data. These results demonstrate the practical effectiveness of FoVer, showing that PRM training data created using formal verification improves PRMs on informal reasoning tasks written in natural language. The datasets, models, and code are provided at https://github.com/psunlpgroup/FoVer.

推理训练形式验证数据合成大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。