arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19348cs.LGcs.CL
收藏

Transformer语言模型中的解剖异质性

Anatomical Heterogeneity in Transformer Language Models

Independent Researcher(独立研究者)

Tomasz Wietrzykowski

AI总结:

研究发现Transformer语言模型各层存在显著异质性,包括权重规律性、层重要性差异及训练预算分配策略的影响。

摘要:

当前的Transformer语言模型在所有层上采用统一的计算预算进行训练,隐含假设各层具有同质性。通过使用五个诊断指标对SmolLM2-135M进行实证分析,该模型是一个具有30层、135000个参数的因果语言模型。研究发现显著的解剖异质性:(1)层权重遵循强烈的数学规律性(R2=0.91),具有普遍的振荡delta模式(相关性约-0.50),但预测的权重由于非线性误差累积导致灾难性失败。(2)层重要性跨度达10^7,从关键核心层(L8-11,PPL降解高达+63,419%)到反层(L14、L17),其移除可提高性能。(3)恢复速度与层重要性相关,表明差异化的训练需求。(4)在五种测试的权重调整策略中,只有权重缩放(alpha=0.9)能保持模型质量。(5)生长Transformer训练,通过层重要性分配预算,实现了约54%的成本降低。概念验证实验证实了这一点:在相同参数数量下,验证损失降低了4.7倍,同时训练速度提高了13%。

英文摘要:

Current transformer language models are trained with uniform computational budgets across all layers, implicitly assuming layer homogeneity. We challenge this assumption through empirical analysis of SmolLM2-135M, a 30-layer, 135M-parameter causal language model, using five diagnostic metrics: weight predictability (R2), ablation degradation, recovery speed, weight manipulation robustness, and structural analysis. We find profound anatomical heterogeneity: (1) Layer weights follow strong mathematical regularity (R2 = 0.91) with a universal oscillatory delta pattern (correlation ~= -0.50), yet predicted weights cause catastrophic failure due to nonlinear error accumulation. (2) Layer importance spans a 10^7 range, from a critical core (L8-11, up to +63,419% PPL degradation) to anti-layers (L14, L17) whose removal improves performance. (3) Recovery speed correlates with layer importance, indicating differential training requirements. (4) Only weight scaling (alpha = 0.9) preserves model quality among five tested manipulation strategies. (5) Growth Transformer Training, allocating budget by layer importance, achieves ~54% cost reduction. A proof-of-concept experiment confirms this: 4.7x lower validation loss than uniform training at identical parameter count, while being 13% faster.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑