深度增加并未带来新计算,而是细调已有计算。
Do Language Models Use Their Depth Efficiently?
- 分析残差流发现后半层贡献远低于前半层,存在明显分界点。
- 跳过后半层对输出影响小,证明其作用有限。
- 深层模型未用深度完成多步推理,仅重复浅层计算。
现代大语言模型日益加深,深度与性能正相关,但收益递减。然而,这些模型是否高效利用了深度?它们是否通过组合特征实现浅层无法完成的高阶计算,还是仅仅将相同计算分散到更多层?我们分析了 Llama 3.1、Qwen 3 与 OLMo 2 系列模型的残差流。结果表明:第一,相比子层输出,后半段层对残差流贡献显著更低,前后两段间存在清晰相变;第二,跳过后半段层对后续计算和输出预测影响极小;第三,对于多跳任务,未发现模型利用深度组合中间结果的证据;第四,为验证深层模型是否引入新计算,我们训练从浅层模型到深层模型的线性映射,发现同相对深度的层之间映射效果最佳,说明深层模型只是将相同计算摊薄到更多层中。所有证据表明,深度增加并未带来新计算,仅用于更精细的残差调整,这或可解释为何堆叠Transformer架构在扩大规模时出现收益递减。
原文摘要 · Abstract (English)
Modern LLMs are increasingly deep, and depth correlates with performance, albeit with diminishing returns. However, do these models use their depth efficiently? Do they compose more features to create higher-order computations that are impossible in shallow models, or do they merely spread the same kinds of computation out over more layers? To address these questions, we analyze the residual stream of the Llama 3.1, Qwen 3, and OLMo 2 family of models. We find: First, comparing the output of the sublayers to the residual stream reveals that layers in the second half contribute much less than those in the first half, with a clear phase transition between the two halves. Second, skipping layers in the second half has a much smaller effect on future computations and output predictions. Third, for multihop tasks, we are unable to find evidence that models are using increased depth to compose subresults in examples involving many hops. Fourth, we seek to directly address whether deeper models are using their additional layers to perform new kinds of computation. To do this, we train linear maps from the residual stream of a shallow model to a deeper one. We find that layers with the same relative depth map best to each other, suggesting that the larger model simply spreads the same computations out over its many layers. All this evidence suggests that deeper models are not using their depth to learn new kinds of computation, but only using the greater depth to perform more fine-grained adjustments to the residual. This may help explain why increasing scale leads to diminishing returns for stacked Transformer architectures.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。