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

混合LLM中的注意力遗忘:当CoT微调破坏长程记忆时,如何修复

Attention Amnesia in Hybrid LLMs: When CoT Fine-Tuning Breaks Long-Range Recall, and How to Fix It

LARK, HKUST(GZ)(香港科技大学(广州)LARK实验室);UCL(伦敦大学学院);Mistral AI;Tsinghua University(清华大学);SUTD(新加坡科技设计大学);HKUST(香港科技大学)

Xinyu Zhou, Boyu Zhu, Yi Xu, Zhiwei Li, Yingfa Chen, Huiming Wang, Zhijiang Guo

AI总结:

发现CoT监督微调会系统性降低混合线性注意力模型的长上下文召回能力,提出QK-Restore方法通过恢复微调前的查询-键投影矩阵来修复,无需额外训练。

摘要:

链式思维(CoT)监督微调(SFT)被广泛用于提升推理能力,但我们发现它会系统性降低混合线性注意力模型的长上下文召回能力。在包括HypeNet和Jet-Nemotron在内的架构中,CoT-SFT后Needle-In-A-Haystack(NIAH)上的检索性能大幅下降,且在更难的检索设置和更长的上下文窗口下退化更严重。例如,HypeNet-9B在NIAH-S2@256K上的性能从$67.2\%$降至$9.4\%$。我们将其归因于CoT-SFT将注意力梯度偏向短程模式,破坏了负责长程路由的查询-键投影($W_Q, W_K$)。基于此观察,我们提出QK-Restore,一种无需训练的方法,仅从预SFT检查点恢复$W_Q$和$W_K$,同时保留所有其他后SFT参数。我们进一步引入Procrustes变体以平衡路由保留和推理适应。在各种架构上,QK-Restore在零训练成本下一致地恢复长上下文能力,同时保持推理性能;例如,在HypeNet-5B上,它将S3@256K从$65.4\%$提升至$76.4\%$,同时保持强大的推理性能。

英文摘要:

Chain-of-thought (CoT) supervised fine-tuning (SFT) is widely adopted to improve reasoning ability, yet we find that it systematically degrades long-context recall in hybrid linear-attention models. Across architectures including HypeNet and Jet-Nemotron, retrieval performance on Needle-In-A-Haystack (NIAH) deteriorates substantially after CoT-SFT, and the degradation becomes more severe under harder retrieval settings and longer context windows. For example, HypeNet-9B on NIAH-S2@256K decreases from $67.2\%$ to $9.4\%$. We attribute this to CoT-SFT biasing attention gradients toward short-range patterns, disrupting query-key projections ($W_Q, W_K$) that are responsible for long-range routing. Motivated by this observation, we propose QK-Restore, a training-free method that restores only $W_Q$ and $W_K$ from the pre-SFT checkpoint while preserving all other post-SFT parameters. We further introduce a Procrustes variant to balance routing preservation and reasoning adaptation. Across architectures, QK-Restore consistently restores long-context capability at zero training cost while preserving reasoning performance; for instance, on HypeNet-5B it improves S3@256K from $65.4\%$ to $76.4\%$ while maintaining strong reasoning performance.

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

↑