arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.24898cs.LGcs.AI
收藏

密集监督还不够:循环语言模型中的读出盲点

Dense Supervision Is Not Enough: The Readout Blind Spot in Looped Language Models

Virginia Tech(弗吉尼亚理工大学)

Rituraj Sharma, Tu Vu

AI总结:

本文揭示循环语言模型中密集交叉熵损失仅控制读出变量,忽略隐藏状态尺度,导致尺度失控;提出尺度可见读出、显式范数惩罚或尺度移除循环的修复方法。

摘要:

循环语言模型将隐藏状态转化为运行时状态:每个状态被解码用于预测并反馈到未来的计算中。这产生了一个基本的监督问题:交叉熵实际上控制了哪些状态变量?我们表明,密集的每循环交叉熵控制由读出暴露的变量,而不是循环转换中活跃的每个变量。隐藏状态尺度给出了一个具体的失败模式。尺度不变的读出(如RMSNorm和LayerNorm)将径向尺度隐藏于直接的交叉熵损失之外,而预归一化残差循环继续携带并更新相同的尺度。因此,每循环损失可以使早期退出可用,而不控制循环尺度。在44M和129M的循环Transformer中,如果没有循环间归一化,通过RMSNorm读出的每循环交叉熵仍会将最终隐藏状态范数驱动到数千或数万。尺度可见的读出和显式范数惩罚将范数保持在数十,而尺度移除循环是补充性的架构修复。由此产生的设计规则很简单:密集监督训练退出;循环尺度控制需要要么使尺度对损失可见,要么将其从循环中移除。与此规则一致,在我们的变深度基准测试中,尺度控制的变体在匹配的推理深度操作点上实现了更低的困惑度。

英文摘要:

Looped language models turn hidden states into runtime state: each state is decoded for prediction and fed back into future computation. This creates a basic supervision question: which state variables does cross-entropy actually control? We show that dense per-loop cross-entropy controls the variables exposed by the readout, not every variable active in the recurrent transition. Hidden-state scale gives a concrete failure mode. Scale-invariant readouts such as RMSNorm and LayerNorm hide radial scale from the immediate cross-entropy loss, while pre-norm residual recurrence continues to carry and update that same scale. Thus per-loop loss can make early exits usable without controlling recurrent scale. In 44M and 129M looped transformers without inter-loop normalization, per-loop cross-entropy through RMSNorm readouts still drives final hidden-state norms into the thousands or tens of thousands. Scale-visible readouts and explicit norm penalties keep norms in the tens, and scale-removing recurrence is the complementary architectural fix. The resulting design rule is simple: dense supervision trains exits; recurrent scale control requires either making scale visible to a loss or removing it from the loop. Consistent with this rule, scale-controlled variants achieve lower perplexity at matched inference-depth operating points in our variable-depth benchmarks.

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

↑