JJava Stack Lab
论文雷达 · arXiv AI

功能深度是学出来的:分离出各层仅当协同工作时才产生的计算

摘要

研究考察 Transformer 在预训练中如何发展出功能深度,提出一种精确的容斥分解方法,用来分离出“连通分量”,也就是只有在指定的一组层于恒等消融(identity ablation)下共同作用时才会出现的计算。作者在 Pythia、OLMo 和 Amber 的公开检查点上追踪该指标,得到三点发现:写相对连通协调(write-relative connected coordination)随预训练推进而增强;删掉这些连通分量后,模型困惑度的下降比删除同位置、同范数的随机方向更严重;成对表示相似度与成对连通协调一致呈负相关,但这两个信号并不能互相替代。

查看原始标题和摘要

Functional Depth Is Learned: Isolating the Computation That Layers Produce Only Together

Transformer performance scales with depth, but layer count merely counts the opportunities for sequential computation: layers could still behave as nearly independent refinements that barely depend on one another. We study how transformers develop functional depth during pretraining, introducing an exact inclusion-exclusion decomposition that isolates the connected component, i.e., the computation that appears only when a specified set of layers acts together under identity ablation. Tracking this quantity across public checkpoints of Pythia, OLMo, and Amber yields three findings. First, write-relative connected coordination strengthens from its initialization or earliest-checkpoint baseline as pretraining proceeds, across all measured interaction orders. Second, these connected components are behaviorally consequential under direct intervention: deleting them damages perplexity more than deleting a norm-matched random direction at the same site in all 35 measured model-order cells. Third, pairwise representation similarity is consistently negatively correlated with pairwise connected coordination across seven models, yet the two signals are not interchangeable: similarity- and coo

核心要点

  • 提出基于容斥原理的精确分解,通过恒等消融分离出仅由多层协同产生的连通分量
  • 在 Pythia、OLMo、Amber 的公开检查点上跨多个交互阶数测量功能深度的演化
  • 连通协调从初始化或最早检查点基线起,随预训练逐步增强,且在所有测量到的交互阶数上均成立
  • 在全部 35 个模型与交互阶数组合的测量单元中,删除连通分量对困惑度的损害都大于删除同位置、同范数的随机方向
  • 在七个模型中,成对表示相似度与成对连通协调持续负相关;但基于相似度和基于协调的块删除判据在 Pythia 上常一致,在 Amber 上则分歧
  • 结论:架构深度只是提供顺序计算的机会,跨层依赖由预训练逐步组织形成

为什么值得后端工程师关注

提醒后端工程师:层数并不等于有效计算深度,模型容量与剪枝、层删除策略不能只看表示相似度这类单层信号;评估或裁剪模型时应测量跨层协同(连通分量)这一指标,因为它对模型行为的实际影响更大,而且不同模型家族上两种判据可能给出不同结论。