arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.05030cs.CLcs.SC
收藏

赋予大语言模型双向逻辑以进行稳健的链修复

Imbuing Large Language Models with Bidirectional Logic for Robust Chain Repair

Department of Computer Science, University of Oxford, UK(英国牛津大学计算机系);FLock.io;Institute of Logic and Computation, TU Wien, Austria(奥地利技术大学逻辑与计算研究所)

Zehua Cheng, Wei Dai, Jiahao Sun, Thomas Lukasiewicz

AI总结:

针对自回归链式推理中错误雪崩问题,提出Teleological Reasoning Infilling (TRI)框架,通过将错误推理段重构为填充中间任务并引入前缀-后缀-中间序列重排,结合符号验证器监督微调和直接偏好优化,实现仅修复受损段的高效链修复。

摘要:

大型语言模型(LLMs)中的自回归链式推理(CoT)本质上是前向的:每一步仅依赖于先前的令牌。这种单向归纳偏差使得即使是能力强的模型也容易受到错误雪崩的影响,即早期步骤中的单个逻辑或算术错误会不可逆地破坏整个推理链。我们提出了Teleological Reasoning Infilling (TRI),一个训练框架,赋予仅解码器变换器原生的目标条件桥接能力。关键见解是将错误的推理段重构为填充中间(FIM)任务:给定一个验证过的前缀前提P、一个验证过的下游里程碑S和原始查询Q,模型必须综合出连接P到S的逻辑桥M,要求严格且完整。为了实现这一目标,我们引入了一种前缀-后缀-中间(PSM)序列重排,使用三个非重叠的哨兵令牌,使得M能够同时关注P和S,而无需对自注意力机制进行任何结构修改。训练分两个阶段进行:(i)在从形式数学语料库中提取的符号验证的(P, S, M)三元组上进行监督微调(SFT),以及(ii)以确定性符号验证器(Lean 4 / Python)作为唯一奖励神谕的直接偏好优化(DPO),消除了LLM评判的谄媚。在推理时,TRI作为双系统循环中的外科修复模块运行:因果草稿模型生成初始轨迹,验证器定位失败点,TRI仅填充受损段,保留已验证部分不变。在三个基准上的综合实验表明,TRI在所有任务上达到了最先进的性能,同时每个问题的令牌消耗减少了31.2%。

英文摘要:

Autoregressive chain-of-thought (CoT) reasoning in large language models (LLMs) is fundamentally forward-directed: each step conditions only on prior tokens. This unidirectional inductive bias renders even capable models susceptible to error snowballing, wherein a single logical or arithmetic mistake in an early step irreversibly corrupts the entire reasoning chain. We introduce Teleological Reasoning Infilling (\TRI{}), a training framework that endows decoder-only transformers with a native \emph{goal-conditioned bridging} capability. The key insight is to reframe erroneous reasoning segments as fill-in-the-middle (FIM) tasks: given a verified prefix premise $P$, a verified downstream milestone $S$, and the original query $Q$, the model must synthesise the logical bridge $M$ that connects $P$ to $S$ rigorously and completely. To achieve this with standard causal architectures, we introduce a Prefix-Suffix-Middle (PSM) sequence rearrangement with three non-overlapping sentinel tokens, enabling $M$ to attend to both $P$ and $S$ without any structural modification to the self-attention mechanism. Training proceeds in two stages: (i) Supervised Fine-Tuning (SFT) on symbolically verified $(P, S, M)$ triples extracted from formal mathematics corpora, and (ii) Direct Preference Optimisation (DPO) with a deterministic symbolic verifier (Lean 4 / Python) as the sole reward oracle, eliminating LLM-judge sycophancy. At inference, TRI operates as a surgical repair module within a dual-system loop: a causal draft model generates an initial trace, the verifier pinpoints failures, and TRI infills only the damaged segment, leaving verified sections intact. Comprehensive experiments on three benchmarks demonstrate that TRI achieves state-of-the-art performance across all tasks, while reducing per-problem token expenditure by 31.2%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑