ReForm:具有前瞻性有界序列优化的反思自动形式化
ReForm: Reflective Autoformalization with Prospective Bounded Sequence Optimization
AI总结:
ReForm通过整合语义一致性评估和前瞻性有界序列优化,提升自动形式化任务的准确性和语义保真度,实验表明其在四个基准上的性能提升了22.6个百分点。
摘要:
自动形式化,即将自然语言数学转换为可由机器验证的形式语句,对于使用形式数学推理解决自然语言陈述的数学问题至关重要。尽管大语言模型可以生成语法正确的形式语句,但它们往往无法保持原始问题的语义意图。这种局限性源于LLM方法将自动形式化视为简单的翻译任务,缺乏自我反思和迭代改进的机制,而这些机制是人类专家自然运用的。为了解决这些问题,我们提出了ReForm,一种反思自动形式化方法,该方法紧密整合了语义一致性评估到自动形式化过程中。这使模型能够迭代生成形式语句,评估其语义保真度,并通过逐步细化自我纠正识别出的错误。为了有效训练这种反思模型,我们引入了前瞻性有界序列优化(PBSO),它在不同序列位置使用不同的奖励,以确保模型既能准确地进行自动形式化,又能正确地进行语义验证,防止表面批评,从而削弱反思的目的。在四个自动形式化基准上的广泛实验表明,ReForm在最强基线上的平均改进率为22.6个百分点。为进一步确保评估可靠性,我们引入了ConsistencyCheck,一个包含859个专家标注项的基准,不仅验证了LLM作为裁判的有效性,还揭示了自动形式化本质上具有挑战性:即使人类专家在多达38.少数情况下也会产生语义错误。
英文摘要:
Autoformalization, which translates natural language mathematics into machine-verifiable formal statements, is critical for using formal mathematical reasoning to solve math problems stated in natural language. While Large Language Models can generate syntactically correct formal statements, they often fail to preserve the original problem's semantic intent. This limitation arises from the LLM approaches' treating autoformalization as a simplistic translation task which lacks mechanisms for self-reflection and iterative refinement that human experts naturally employ. To address these issues, we propose ReForm, a Reflective Autoformalization method that tightly integrates semantic consistency evaluation into the autoformalization process. This enables the model to iteratively generate formal statements, assess its semantic fidelity, and self-correct identified errors through progressive refinement. To effectively train this reflective model, we introduce Prospective Bounded Sequence Optimization (PBSO), which employs different rewards at different sequence positions to ensure that the model develops both accurate autoformalization and correct semantic validations, preventing superficial critiques that would undermine the purpose of reflection. Extensive experiments across four autoformalization benchmarks demonstrate that ReForm achieves an average improvement of 22.6 percentage points over the strongest baselines. To further ensure evaluation reliability, we introduce ConsistencyCheck, a benchmark of 859 expert-annotated items that not only validates LLMs as judges but also reveals that autoformalization is inherently difficult: even human experts produce semantic errors in up to 38.5% of cases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。