arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.06599cs.LGeess.AS
收藏

权重衰减使Transformer损失景观变得Villani:优化和泛化的功能-分析基础

Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalization

Science and Technology Organization, GE HealthCare(科技组织,GE医疗)

Abhijit Das, Sayantan Dutta

AI总结:

本文通过功能-分析方法研究权重衰减对Transformer损失景观的影响,证明其满足Villani的 coercive 能量函数条件,并推导出与正则化强度和模型维度相关的收敛保证和泛化界限。

摘要:

权重衰减在大型语言模型中被广泛用作正则化器,但其在塑造Transformer损失景观中的精确作用仍缺乏理论研究。本文首次严格地从功能-分析角度对标准Transformer目标函数——交叉熵损失与L²正则化相结合的函数进行了表征,通过证明其满足Villani对 coercive 能量函数的条件。具体而言,我们证明了正则化损失F是无限次可微的,至少以二次速度增长,具有高斯可积的尾部,并满足当θ的范数趋于无穷时,对于所有s>0,-ΔF + (1/s)||∇F||²趋于无穷的微分增长条件。从这种结构中,我们推导出显式的log-Sobolev和Poincaré常数C_LS ≤ λ⁻¹ + d/λ²,将正则化强度λ和模型维度d与噪声随机梯度下降的有限时间收敛保证以及PAC-Bayesian泛化界限联系起来,这些界限随着λ的增加而收紧。为了验证我们的理论,我们引入了一个可扩展的Villani诊断Ψ_s(θ) = -ΔF + s⁻¹||∇F||²,并利用Hutchinson迹探针在具有超过1亿参数的模型中高效地估计它。在GPT-Neo-125M模型上对Penn Treebank和WikiText-103的实验验证了预测的Ψ_s二次增长、Hessian的谱膨胀以及与我们log-Sobolev分析一致的指数收敛行为。这些结果表明,权重衰减不仅在经验上提高了泛化能力,还建立了深度学习中快速Langevin混合和理论支撑的曲率感知优化所需的数学条件。

英文摘要:

Weight decay is widely used as a regularizer in large language models, yet its precise role in shaping Transformer loss landscapes remains theoretically underexplored. This paper provides the first rigorous functional-analytic characterization of the standard Transformer objective--cross-entropy loss with $L^2$ regularization--by proving it satisfies Villani's criteria for coercive energy functions. Specifically, we show that the regularized loss $\mathcal{F}$ is infinitely differentiable, grows at least quadratically, has Gaussian-integrable tails, and satisfies the differential growth condition $-Δ\mathcal{F} + \tfrac{1}{s}\|\nabla\mathcal{F}\|^{2} \to \infty$ as $\|θ\| \to \infty$ for all $s>0$. From this structure, we derive explicit log-Sobolev and Poincaré constants $C_{\mathrm{LS}} \leq λ^{-1} + d/λ^{2}$, linking the regularization strength $λ$ and model dimension $d$ to finite-time convergence guarantees for noisy stochastic gradient descent and PAC-Bayesian generalization bounds that tighten with increasing $λ$. To validate our theory, we introduce a scalable Villani diagnostic $Ψ_s(θ) = -Δ\mathcal{F} + s^{-1}\|\nabla \mathcal{F}\|^2$ and estimate it efficiently using Hutchinson trace probes in models with over 100M parameters. Experiments on GPT-Neo-125M across Penn Treebank and WikiText-103 confirm the predicted quadratic growth of $Ψ_s$, spectral inflation of the Hessian, and exponential convergence behavior consistent with our log-Sobolev analysis. These results demonstrate that weight decay not only improves generalization empirically but also establishes the mathematical conditions required for fast Langevin mixing and theoretically grounded curvature-aware optimization in deep learning.

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

↑