全带宽变压器

·

观点分析 · 2026/08/14

自回归Transformer沿两个轴计算:水平方向跨越生成的token,垂直方向贯穿模型深度。密集注意力赋予每个token对过去的广泛水平访问,但解码步骤之间的垂直反馈通道仍然狭窄:只有采样的token返回堆栈底部,而顶层隐藏状态被丢弃。我们引入了全带宽Transformer,通过潜在反馈拓宽这一通道:在每个解码步骤,前一个顶层隐藏状态通过门控线性单元与采样的token嵌入融合,并作为下一个输入反馈回去。潜在反馈使非言语化的计算能够以更新的深度预算重新进入堆栈,同时保持标准Transformer架构、KV缓存和语言建模目标。为了在不失去并行教师强制的情况下训练全带宽Transformer,我们使用了一种调度的多遍目标,在预训练后期引入潜在反馈,并混合一小部分更深反馈遍以保持稳定性。我们训练了高达400B token的1B参数全带宽Transformer,发现潜在反馈改善了验证损失、5-shot语言模型评估、数学和代码生成以及指令调优性能。由于每token解码开销可忽略不计,全带宽Transformer匹配或接近使用约1.5倍更多token训练的标准Transformer,并且能够在相同或更好的准确率下产生更短的推理轨迹。

该论文提出了一种新颖的架构改进,通过潜在反馈拓宽垂直信息通道,在不改变标准Transformer架构和推理开销的情况下显著提升性能,并展示了在多个任务上的优势,对自回归模型的设计具有重要参考价值。

Autoregressive transformers compute along two axes: horizontally across generated tokens, and vertically through model depth. Dense attention gives each token broad horizontal access to the past, but the vertical feedback channel between decoding steps remains narrow: only the sampled token returns to the bottom of the stack, while the top-layer hidden state is discarded. We introduce the full-bandwidth transformer, which widens this channel with latent feedback: at each decoding step, the previous top-layer hidden state is fused with the sampled token embedding through a gated linear unit and fed back as the next input. Latent feedback lets non-verbalized computation re-enter the stack with a renewed depth budget, while preserving the standard transformer architecture, KV cache, and language-modeling objective. To train full-bandwidth transformers without losing parallel teacher forcing, we use a scheduled multi-pass objective that introduces latent feedback late in pretraining and mixes a small fraction of deeper feedback passes for stability. We train 1B-parameter full-bandwidth transformers up to 400B tokens and find that latent feedback improves validation loss, 5-shot language-model evaluation, math and coding generation, and instruction-tuned performance. With negligible per-token decoding overhead, full-bandwidth transformers match or approach standard transformers trained with roughly 1.5times more tokens, and manage to produce shorter reasoning traces at equal or better accuracy.

阅读原文

参与讨论