少即是多:提前的上层注意力专业化损害语言模型预训练
Learning Less Is More: Premature Upper-Layer Attention Specialization Hurts Language Model Pretraining
AI总结:
本文发现GPT预训练中上层注意力过早专业化导致性能下降,通过减缓上层Q/K投影可提升效果,揭示解码器架构与优化的交互点。
摘要:
因果解码器块是分层的:下层构建残差基础,上层在此基础上进行注意力。我们发现GPT预训练中的失败模式:上层在下层特征稳定前就形成了尖锐的注意力模式。我们称之为提前上层注意力专业化。在早期训练中仅暂时减缓上层Q/K投影可提升最终困惑度和下游准确性,而无需改变其他参数;这防止了上层注意力塌陷到不成熟的残差基础。在LLaMA风格的块中,这种干预几乎不需要。通过消融实验,我们确定乘法门控前馈网络(而非RMSNorm或移除偏置)是抑制上游残差写入的组件。路径分析统一了这两个发现:学习率干预减少了步长因子,而门控FFN减少了同一路径上的残差能量因子。我们的结果识别了上层Q/K时间作为解码器架构与优化之间的具体交互点。
英文摘要:
A causal-decoder block is hierarchical: lower layers build the residual basis that upper layers attend over. We identify a failure mode in GPT pretraining: upper layers commit to sharp attention patterns before lower-layer features stabilize. We call this premature upper-layer attention specialization. Temporarily slowing only upper-layer Q/K projections during early training improves final perplexity and downstream accuracy without altering other parameters; it prevents upper attention from collapsing onto an immature residual basis. In LLaMA-style blocks, the same intervention is nearly unnecessary. Through ablations, we isolate multiplicative gated FFNs (not RMSNorm or bias removal) as the component that suppresses the upstream residual writes driving the failure. A pathwise analysis unifies both findings: the learning-rate intervention reduces a step-size factor, while gated FFNs reduce a residual-energy factor on the same growth pathway. Our results identify upper-layer Q/K timing as a concrete interaction point between decoder architecture and optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。