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

更深并非总是更好:通过置信层解码缓解对齐税

Deeper is Not Always Better: Mitigating the Alignment Tax via Confident Layer Decoding

Qwen Team, Alibaba Inc.(阿里巴巴集团 Qwen 团队);Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学)

Xuanming Zhang, Sining Zhoubian, Yuxuan Chen, Tianyi Tang, An Yang, Sean Du, Chujie Zheng, Fei Huang, Dayiheng Liu, Gao Huang, Jingren Zhou

AI总结:

提出Confident Decoding,一种无需训练的解码策略,通过熵引导的保守反向搜索动态选择最可靠的近最终层,以缓解对齐微调导致的最终层扰动,提升推理性能。

摘要:

大型语言模型(LLM)中的自回归生成通常从最后一层解码,假设更深层的表示能产生更可靠的下一词预测。我们通过揭示一种反复出现的“猜测-细化-扰动”动态来重新审视这一假设:早期层形成粗略猜测,中间层细化与推理相关的语义,而最终层可能将这些细化后的预测扰动为通用或对齐偏好的词。我们引入了Confident Decoding,一种无需训练的解码策略,通过熵引导的保守反向搜索动态选择最可靠的近最终层。我们进一步将层选择理论化为一个最优停止问题,表明在有界投影噪声和主导的后期对齐扰动下,我们的搜索规则能够过滤扰动,同时相对于最优细化层限制损失。在密集型和混合专家LLM上的实验表明,在具有挑战性的推理基准(包括GPQA-Diamond、Omni-MATH和HLE)上,该方法实现了持续的性能提升,且零内存开销,延迟增加不到2%。这些结果表明,动态绕过最终层扰动可以从对齐的LLM中解锁更强的推理行为。

英文摘要:

Autoregressive generation in large language models (LLMs) conventionally decodes from the final layer, assuming that deeper representations yield more reliable next-token predictions. We revisit this assumption by revealing a recurring Guess-Refine-Perturb dynamic: early layers form coarse guesses, intermediate layers refine reasoning-relevant semantics, and final layers can perturb these refined predictions toward generic or alignment-preferred tokens. We introduce Confident Decoding, a training-free decoding strategy that dynamically selects the most reliable near-final layer through entropy-guided conservative backward search. We further provide a theoretical formulation of layer selection as an optimal stopping problem, showing that under bounded projection noise and dominant late-stage alignment perturbation, our search rule filters perturbation while bounding the loss relative to the oracle refinement layer. Experiments across dense and Mixture-of-Experts LLMs demonstrate consistent gains on challenging reasoning benchmarks, including GPQA-Diamond, Omni-MATH, and HLE, with zero memory overhead and less than 2% latency increase. These results suggest dynamically bypassing final-layer perturbations can unlock stronger reasoning behavior from aligned LLMs.

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

↑