arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06600cs.CL
收藏

回声作为锚点:在大语言模型推理中的概率成本与注意力再聚焦

Echoes as Anchors: Probabilistic Costs and Attention Refocusing in LLM Reasoning

Harbin Institute of Technology(哈尔滨工业大学);Pengcheng Laboratory(鹏城实验室);Huazhong University of Science and Technology(华中科技大学)

Zhuoyuan Hao, Zhuo Li, Wu Li, Fangming Liu, Min Zhang, Jing Li

AI总结:

本研究通过回声蒸馏监督微调和回声提示技术,利用大语言模型中自发的回声现象,提升推理准确性与注意力聚焦效果。

摘要:

在大型推理模型(LRMs)中,测试时的计算分配被广泛使用,并应用于数学问题解决、代码合成和规划。最近的工作通过扩展自一致性和平行思维来解决这个问题,添加了通用的“思考标记”并提示模型在回答前重新阅读问题。不幸的是,这些方法要么注入任务无关的标记,要么强制使用不解释——甚至常常忽略——许多LRMs在内部链头自发重复的现象。相反,我们分析并利用模型重述问题的倾向,我们称之为“提示回声(EOP)”,作为前加载的、计算塑造机制。我们通过将回声移除视为拒绝基于的条件化来形式化其概率成本,并定义回声似然差距ΔL作为可计算的代理。这提供了缺失的理论链接,将早期重复与似然增益和下游准确性联系起来。然而,它本身并不指定如何利用EOP。因此,我们开发了回声蒸馏监督微调(ED-SFT)以通过监督微调植入“回声后推理”模式,并开发回声提示(EP)以在跟踪中重新定位模型而不进行训练。虽然有希望,但量化超出冗余性的收益是困难的。因此,我们进行了长度和后缀控制的似然分析,以及逐层注意力研究,显示EOP在中层增加回答到回答前缀的注意力,这与“注意力再聚焦”机制一致。我们在GSM8K、MathQA、Hendrycks-MATH、AIME24和MATH-500上进行评估,在相同的解码设置和预算下,发现与基线相比的一致收益。代码可在https://github.com/hhh2210/echoes-as-anchors上获得。

英文摘要:

Recent work improves reasoning in large reasoning models (LRMs) by test-time scaling through self-consistency and parallel thinking, adding generic "thinking tokens", or presenting the question twice, as in re-reading (RE2). However, these approaches either inject task-agnostic tokens or mandate heuristics that do not explain, and often ignore, the spontaneous repetition that many LRMs exhibit at the head of their long chain-of-thought (CoT). In this work, we investigate the model's tendency to restate the question, which we dub Echo of Prompt (EOP), as a mechanism that shapes computation from the start and can be viewed as prompt repetition inside the reasoning trace rather than in the input. We formalize its probabilistic cost by casting echo removal as rejection sampling, and define the Echo Likelihood Gap as a computable proxy linking early repetition to likelihood gains and downstream accuracy. We find that (1) in a causal intervention, reinserting an echo into failed GSM8K traces raises exact match by 7.9-10.4 points for two reasoning models but not for a non-reasoning base model; and (2) likelihood analyses controlling for length and suffix indicate that EOP's benefits go beyond verbosity, while layer-wise attention studies show that EOP increases attention from answer tokens to the answer prefix in middle layers, consistent with an attention refocusing mechanism. Building on these findings, we develop Echo-Distilled SFT (ED-SFT) to instill echoing before reasoning via supervised fine-tuning, and training-free Echoic Prompting (EP) to ground the model on the prompt midway through the trace. We evaluate on GSM8K, MathQA, Hendrycks-MATH, AIME24, and MATH-500 under identical decoding settings and budgets, and observe gains over baselines, including the insertion of thinking tokens, in most settings. Our code is publicly released at https://github.com/hhh2210/echoes-as-anchors.

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

↑