VeryTrace: 通过可编译形式化与结构化验证验证推理轨迹
VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verification
AI总结:
提出VeryTrace框架,将自然语言推理轨迹形式化为可编译的领域特定语言(DSL),结合确定性检查与LLM审计进行混合验证,实现步骤级错误定位与修复,在数学、机器人规划、亲属推理任务上提升准确率。
摘要:
基于思维链(CoT)提示的多步推理仍然脆弱:早期步骤中的逻辑错误或幻觉会悄然传播,产生自信但错误的结论。本文提出VeryTrace,一个零样本验证与修复框架,将自然语言推理轨迹形式化为结构化的可编译表示。VeryTrace引入领域特定语言(DSL),该语言(i)使步骤依赖关系显式化,(ii)将定量内容机械化为可执行表达式,(iii)通过演绎模式结构化语义推理。我们的混合验证器将计算正确性、依赖解析和约束满足的确定性检查与针对不可机械化语义判断的定向LLM审计相结合,实现步骤级错误定位与修复。在三个不同领域——竞赛数学(AIME 2025)、机器人规划(LLM-BabyBench)和亲属推理(CLUTRR)中,VeryTrace在无需领域特定训练或上下文示例的情况下,提升了最先进LLM在零样本基线之上的准确率,证明了形式化轨迹验证同时实现了精确性和泛化性。
英文摘要:
Multi-step reasoning with Chain-of-Thought (CoT) prompting remains fragile: logical errors or hallucinations in early steps silently propagate, producing confident but incorrect conclusions. This paper presents VeryTrace, a zero-shot verification-and-repair framework that formalizes natural-language reasoning traces into a structured, compilable representation. VeryTrace introduces a Domain-Specific Language (DSL) that (i) makes step dependencies explicit, (ii) mechanizes quantitative content as executable expressions, and (iii) structures semantic inferences via deduction schemas. Our hybrid verifier combines deterministic checks for computational correctness, dependency resolution, and constraint satisfaction with targeted LLM audits for non-mechanizable semantic judgments, enabling step-level error localization and repair. Across three diverse domains-competition mathematics (AIME 2025), robotics planning (LLM-BabyBench), and kinship reasoning (CLUTRR), VeryTrace improves accuracy over zero-shot baselines on state-of-the-art LLMs without requiring domain-specific training or in-context examples, demonstrating that formalized trace verification achieves both precision and generalization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。