Research Papers 论文研究 4h ago Updated 22m ago 更新于 22分钟前 46

Data Predictability Shapes Weibull Weight-Scale Growth in Transformer Training 数据可预测性塑造Transformer训练中的Weibull权重尺度增长

Transformer weight magnitudes follow a stable two-parameter Weibull distribution (shape k ≈ 1.2), with the scale parameter λ capturing nearly all training-induced variation A training-free, pre-training statistic—bigram conditional entropy D = H(next | prev)—predicts how much λ grows during training, governed by the law λ² − λ₀² = C₀(η) + C₁(η)(H_r − D)^0.59 After normalizing out per-learning-rate coefficients, 23 runs spanning an order of magnitude in learning rate collapse onto a single curve Transformer训练后权重幅度服从形状参数稳定的Weibull分布,尺度参数λ承载主要训练动态。 预训练前的双词条件熵D可精准预测λ的增长幅度,揭示数据可预测性对模型权重分布的决定性作用。 提出学习率条件经验定律λ²−λ₀²=C₀(η)+C₁(η)(Hᵣ−D)⁰·⁵⁹,跨23次实验、一个数量级学习率变化下归一化拟合R²达0.941。 该定律为前向预测工具,自验证相对误差仅5.7%,且在多层级与不同架构间保持函数形式一致。 跨语料预测在代码数据上存在偏差,提示冗余度需作为第二维度纳入更广义的数据-权重映射框架Φ(D,R,A,H)。

62
Hot 热度
72
Quality 质量
65
Impact 影响力

Analysis 深度分析

TL;DR

  • Transformer weight magnitudes follow a stable two-parameter Weibull distribution (shape k ≈ 1.2), with the scale parameter λ capturing nearly all training-induced variation
  • A training-free, pre-training statistic—bigram conditional entropy D = H(next | prev)—predicts how much λ grows during training, governed by the law λ² − λ₀² = C₀(η) + C₁(η)(H_r − D)^0.59
  • After normalizing out per-learning-rate coefficients, 23 runs spanning an order of magnitude in learning rate collapse onto a single curve with unit slope (R² = 0.941), outperforming direct per-η fits (R² ≈ 0.82)
  • The convex exponent 0.59 is inherited from an independently measured data-side saturation relation, not directly fitted to the weight-growth curve
  • Cross-corpus prediction fails for code (over-predicts), suggesting redundancy R is a second axis in a broader data-to-weight framework Φ(D, R, A, H)

Why It Matters

This work provides a rare pre-training, training-free predictor of post-training weight-scale behavior, enabling practitioners to estimate model capacity utilization and training dynamics before committing computational resources. The finding that diverse learning rates and architectures collapse onto a single predictive law suggests deep, universal structure in how data predictability shapes learned representations, offering a new lens for dataset selection and curriculum design.

Technical Details

  • Weibull weight-scale model: Trained transformer weight magnitudes are summarized by a two-parameter Weibull distribution; the shape parameter k ≈ 1.2 is stable across layers and models, making the scale parameter λ the primary carrier of training-induced change.
  • Bigram conditional entropy as predictor: The pre-training statistic D = H(next | prev) quantifies corpus predictability. The growth law λ² − λ₀² = C₀(η) + C₁(η)(H_r − D)^0.59 relates weight-scale expansion to the gap between a matched-budget shuffle baseline H_r and the corpus entropy D.
  • Universal collapse across learning rates: Normalizing by per-η coefficients causes 23 runs across an order of magnitude in learning rate to collapse onto (H_r − D)^0.59 with unit slope (R² = 0.941), demonstrating that the functional form is learning-rate-invariant.
  • Forward prediction accuracy: End-to-end self-validation recovers held-out within-family weight growth with 5.7% relative error. The law holds at both model-level and per-layer resolutions and across two tested architectures, with only coefficients changing.
  • Boundary and extension: Cross-corpus prediction over-predicts on code corpora, implicating data redundancy as a second axis and motivating a broader framework Φ(D, R, A, H) where R = redundancy and A = architecture.

Industry Insight

  • Pre-training corpus entropy can serve as a cheap proxy for estimating training intensity and weight-scale outcomes, enabling better budget allocation and early stopping decisions without running full training trials.
  • The universal collapse across learning rates suggests that hyperparameter tuning may be decoupled from fundamental data-to-weight scaling laws, pointing toward more robust, transferable training strategies.
  • The failure of cross-corpus prediction for code highlights that redundancy-aware dataset curation is essential; future work extending Φ(D, R, A, H) could enable more accurate cross-domain generalization estimates and guide mixed-corpus training decisions.

TL;DR

  • Transformer训练后权重幅度服从形状参数稳定的Weibull分布,尺度参数λ承载主要训练动态。
  • 预训练前的双词条件熵D可精准预测λ的增长幅度,揭示数据可预测性对模型权重分布的决定性作用。
  • 提出学习率条件经验定律λ²−λ₀²=C₀(η)+C₁(η)(Hᵣ−D)⁰·⁵⁹,跨23次实验、一个数量级学习率变化下归一化拟合R²达0.941。
  • 该定律为前向预测工具,自验证相对误差仅5.7%,且在多层级与不同架构间保持函数形式一致。
  • 跨语料预测在代码数据上存在偏差,提示冗余度需作为第二维度纳入更广义的数据-权重映射框架Φ(D,R,A,H)。

为什么值得看

本文首次将Transformer训练后的权重幅度分布与训练前数据本身的统计特性(双词条件熵)建立定量联系,为“数据决定模型上限”提供了可计算、可验证的数学表述。对AI从业者而言,该研究不仅揭示了权重增长的物理规律,更为预训练前的数据质量评估、学习率调度及算力预算分配提供了低成本的理论依据。

技术解析

  • 权重分布建模:训练完成的Transformer各层权重幅度可被双参数Weibull分布良好拟合,形状参数k≈1.2在层与模型间高度稳定,因此尺度参数λ成为刻画训练动态的核心指标。
  • 数据可预测性度量:引入训练前即可计算的双词条件熵D=H(next|prev)作为语料可预测性的代理变量,并构造匹配预算的洗牌基线Hᵣ,以(Hᵣ−D)量化数据相对于随机基线的“信息增益”。
  • 经验定律与归一化坍缩:提出定律λ²−λ₀²=C₀(η)+C₁(η)(Hᵣ−D)⁰·⁵⁹,其中指数0.59独立来源于数据侧饱和关系而非直接拟合。消除学习率相关系数后,23组跨越一个数量级学习率的实验数据坍缩至单位斜率直线,R²=0.941,显著优于逐学习率单独拟合(R²≈0.82)。
  • 前向预测与泛化边界:该定律具备前向预测能力,自验证对未见样本的权重增长预测相对误差仅5.7%;在模型整体与逐层粒度、两种不同架构下函数形式均保持稳健。但在跨语料(如代码)预测时出现高估,表明数据冗余度R需作为第二轴引入,指向更广义的映射框架Φ(D,R,A,H)。

行业启示

  • 数据质量评估前置化:无需等待训练即可通过双词条件熵等轻量统计量预判模型权重增长潜力,为数据集筛选、清洗与配比提供可量化的前置指标,降低无效算力浪费。
  • 超参数与算力预算的协同设计:学习率与数据可预测性存在耦合规律,未来可在训练前联合优化η与数据选择策略,实现给定算力预算下的权重增长效率最大化。
  • 从单一熵指标向多维数据画像演进:当前定律在跨域(如代码)场景存在偏差,提示行业需构建融合可预测性、冗余度、结构复杂度等多维特征的数据-模型性能预测框架,推动预训练从“经验试错”走向“理论驱动”。

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

Research 科学研究 LLM 大模型 Training 训练