研究问题
参数缩放律表明模型变大常有收益,但 residual stream 内部的层如何共同产生收益并不清楚。作者问增加 layers 何时真正改善预测,何时只是重复已有方向;能否用单层偏差与层间多样性解释边际收益递减。
背景
在 pre-layer-norm Transformer,embedding、attention 和 MLP 输出累加到 residual stream,再经 norm/projection 预测。论文借鉴 ensemble 的 bias-diversity decomposition:每层输出离真值的误差是 bias,层输出之间的不同是 diversity。若层各自接近真值且不冗余,组合应更好;若 conditional redundancy 高,额外层可能不带来单调改进。
模型与方法
作者把 residual-stream junction 的 layer outputs 映射至 logit/probability 表示,推导 MSE、bias、diversity 与 conditional redundancy 的关系,并讨论相应集合函数的 supermodularity/submodularity。实验用多种 LLM、语义理解任务和不同层数,在每个 junction 测 accuracy/MSE/bias/diversity 的 Pearson/Spearman 相关,进一步按 layer size 分配各模块贡献。
核心结果与证据
理论结论是性能改善不仅取决于每层 bias 低,也取决于层预测多样;当 bias 远离零时 diversity 特别重要。Figure 3 报告 accuracy 与 MSE、bias、diversity 的跨任务相关,Figure 4 显示 MLP 通常主导 diversity 而 embedding 贡献有限。Figure 5 观察某些阶段可同时改善 bias 与 diversity,并非必有简单 trade-off。Figure 6(第 5--6 页)在大模型任务平均中显示增加层的效益递减,作者把退化情形解释为 conditional redundancy 非零。
Figure 6 · 图是任务平均/模型筛选后的经验趋势,不是对任一固定模型的层数消融因果实验。
物理解读:The authors relate the trend to conditional redundancy. It does not establish that depth scaling in all architectures or training regimes follows one universal logarithmic curve.
来源:paper.pdf pp. 5--6, Figure 6; MinerU image 167278da7c86ea6c5e3982646337e5f84e777d967de2c6ff0d12a2a7fdde9368.jpg
有效性与局限
贡献是把参数缩放的宏观现象连到可测 layer ensemble 结构,并给出“层必须行为不同”这一可操作诊断。限制是 bias/diversity 来自特定 residual/logit 映射、数据集与统计相关;模块贡献不是训练时的因果消融。Figure 6 的任务平均和模型筛选不能推出固定层数变化必然导致同样曲线。层多样性也可能只是其他训练、宽度、数据质量变化的伴随量。
复现与资源
论文称代码将发布于 https://github.com/naist-nlp/tf_diversity。复核需加载相同模型/任务,在 residual junction 捕获各层输出并按论文定义计算 MSE、bias、diversity、conditional redundancy;再对层数和性能做分任务而非仅平均分析。需保留 layer size 权重、normalization、token position、模型版本与统计检验。本文卡未运行代码或模型推理。
阅读指南
先看 Figure 1 明确 residual stream 的“层 ensemble”视角,再读 bias-diversity 定义与定理条件。之后结合 Figure 3--5 区分相关事实、模块归因和可能 trade-off。最后读 Figure 6:它支持边际递减的缩放解释,却不等于增加深度在每个模型上都无效;关键是新增层的 conditional redundancy。
← 上一篇 Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
下一篇 → How do Transformers Learn Implicit Reasoning?
Discussion
评论与讨论
评论公开保存在 GitHub Discussions;阅读无需登录,发表评论需要 GitHub 账号。