Research Papers 论文研究 3h ago Updated 54m ago 更新于 54分钟前 50

Wiring Beats Blending: What Transfers Between Transformer Sizes -- and What Doesn't 布线胜于混合:Transformer尺寸之间什么能迁移——什么不能

Representations align strongly (ridge R²=0.84) across Transformer sizes while raw parameters align weakly, indicating transfer value resides in initialization rather than weight structure Dense weight projection for size conversion is functionally destructive because basis mixing breaks rotary embeddings, per-head attention, GELU, and LayerNorm structure Conversion decomposes into two independent levers: least-squares compensation (optimizing zero-shot function) and variance-preserving rescale ( 研究Pythia家族1.4B→410M模型转换,发现跨尺寸表示强对齐(ridge R²=0.84)但参数对齐弱,转换价值主要存在于初始化而非权重 证明密集权重投影在功能上具有破坏性,因基混合会破坏rotary、per-head注意力、GELU和LayerNorm等关键结构 提出双杠杆转换方法:最小二乘补偿(优化零样本性能)与方差保持重缩放(优化训练动态),两者独立且互补 在30M tokens低预算下,补偿方法在宽度缩减对(84.0 vs 89.7)和深度缩减对(109.3 vs 117.9)上均优于最强子克隆变体 方法存在边界:当捐赠者规模达接收者~5倍时(6.9B→1.4B),堆叠杠杆会过

68
Hot 热度
76
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • Representations align strongly (ridge R²=0.84) across Transformer sizes while raw parameters align weakly, indicating transfer value resides in initialization rather than weight structure
  • Dense weight projection for size conversion is functionally destructive because basis mixing breaks rotary embeddings, per-head attention, GELU, and LayerNorm structure
  • Conversion decomposes into two independent levers: least-squares compensation (optimizing zero-shot function) and variance-preserving rescale (optimizing training dynamics)
  • At low continued pre-training budgets (30M tokens), the method significantly outperforms subcloning variants and from-scratch training, but converges to parity with subcloning at ~33x larger budgets
  • The approach breaks down at ~5x donor scale (6.9B→1.4B) due to ill-conditioning of the compensation solve, suggesting dimension-aware regularization as a remedy

Why It Matters

This work directly challenges the industry assumption that model families must train every size from scratch, offering a token-efficient pathway to derive smaller models from existing large pretrained weights. For practitioners constrained by compute budgets, the finding that conversion initialization beats from-scratch training by up to 18x at low budgets provides a practical strategy for deploying smaller variants without full retraining.

Technical Details

  • Representation vs. parameter alignment: Ridge regression across Pythia sizes shows R²=0.84 for hidden representations but weak parameter-space alignment, confirming that semantic content transfers even when weights do not directly correspond.
  • Dense weight projection failure: A provable result shows that naively projecting weights between sizes breaks structural invariants (rotary position embeddings, per-head attention, GELU activation, LayerNorm), making it functionally destructive rather than an artifact of model assembly.
  • Two-lever conversion framework: (1) Least-squares compensation maps donor weights to minimize zero-shot loss on the target architecture; (2) variance-preserving rescale maintains activation statistics for stable continued pre-training dynamics.
  • Empirical results on Pythia 1.4B→410M: At 30M tokens, compensation beats subcloning on width-reduced pairs (84.0±1.8 vs. 89.7±3.7) and depth-reduced pairs (109.3 vs. 117.9), both across 3/3 seeds. At 33× budget, both methods reach parity (40.0 vs. 40.0), still far ahead of from-scratch.
  • Scaling boundary: At ~5× donor scale (6.9B→1.4B), stacking both levers causes over-correction traced to ill-conditioning of the least-squares solve at large width, pointing to dimension-aware regularization as the fix.

Industry Insight

  • Organizations maintaining model families should consider conversion-based initialization for smaller variants rather than training each size independently, especially when compute for continued pre-training is limited—low-budget conversion delivers disproportionate gains.
  • The ill-conditioning observed at large scale gaps (~5×) suggests that direct weight conversion has practical limits; investing in dimension-aware regularization could extend the approach to more aggressive size reductions and larger donor models.
  • The decomposition into functional (compensation) and dynamical (rescale) levers provides a modular framework that can be independently improved, offering a clear research roadmap for enhancing transfer efficiency between arbitrarily sized Transformers.

TL;DR

  • 研究Pythia家族1.4B→410M模型转换,发现跨尺寸表示强对齐(ridge R²=0.84)但参数对齐弱,转换价值主要存在于初始化而非权重
  • 证明密集权重投影在功能上具有破坏性,因基混合会破坏rotary、per-head注意力、GELU和LayerNorm等关键结构
  • 提出双杠杆转换方法:最小二乘补偿(优化零样本性能)与方差保持重缩放(优化训练动态),两者独立且互补
  • 在30M tokens低预算下,补偿方法在宽度缩减对(84.0 vs 89.7)和深度缩减对(109.3 vs 117.9)上均优于最强子克隆变体
  • 方法存在边界:当捐赠者规模达接收者~5倍时(6.9B→1.4B),堆叠杠杆会过度校正,需维度感知正则化修复

为什么值得看

这篇论文为模型压缩和迁移学习提供了新的理论视角,证明预训练大模型的初始化价值远大于直接权重迁移,为低成本小模型训练提供了实用方案。同时揭示了Transformer架构中结构保持的重要性,对模型蒸馏和尺寸缩放策略具有指导意义。

技术解析

  • 表示vs参数对齐分析:通过ridge回归量化不同尺寸模型间的对齐程度,发现表示空间对齐强(R²=0.84)而参数空间对齐弱,证明转换的核心价值在于初始化而非权重直接映射
  • 权重投影的破坏性证明:严格证明密集权重投影会破坏rotary位置编码、per-head注意力、GELU激活和LayerNorm等结构,且这种破坏是功能性的而非组装伪影
  • 双杠杆转换框架:最小二乘补偿负责优化零样本性能,方差保持重缩放负责优化训练动态,两者在匹配预算的持续预训练中独立发挥作用
  • 实验验证与边界探索:在Pythia家族上进行宽度缩减和深度缩减实验,发现低预算(30M tokens)下迁移初始化比从头训练快最多18倍;当规模差异达5倍时出现过度校正问题

行业启示

  • 模型压缩策略转型:从"权重迁移"转向"初始化迁移",利用大模型初始化加速小模型训练可大幅降低计算成本,尤其适合资源受限场景
  • 架构结构保持的重要性:Transformer的关键结构组件(rotary、LayerNorm等)在尺寸转换中需保持完整,直接权重投影会破坏这些结构导致性能下降
  • 预算感知的策略选择:低预算场景下迁移学习优势显著(最多18倍),但高预算下优势收敛至相同水平,建议根据计算资源预算选择合适策略

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Training 训练 Research 科学研究 LLM 大模型 Fine-tuning 微调