Skip to main content
QUICK REVIEW

[论文解读] From high-dimensional & mean-field dynamics to dimensionless ODEs: A unifying approach to SGD in two-layers networks

Luca Arnaboldi, Ludovic Stephan|arXiv (Cornell University)|Feb 12, 2023
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

该论文通过推导一个低维、无量纲的常微分方程(ODE)系统,统一了在高维、平均场和梯度流三种情形下对两层神经网络中随机梯度下降(SGD)的分析。关键贡献在于:当 γ/(dp) → 0+ 时,提出了一个严格且统一的描述,揭示了梯度流极限下的维数无关动力学,并通过充分统计量与高斯矩计算,弥合了此前相互分离的理论框架。

ABSTRACT

This manuscript investigates the one-pass stochastic gradient descent (SGD) dynamics of a two-layer neural network trained on Gaussian data and labels generated by a similar, though not necessarily identical, target function. We rigorously analyse the limiting dynamics via a deterministic and low-dimensional description in terms of the sufficient statistics for the population risk. Our unifying analysis bridges different regimes of interest, such as the classical gradient-flow regime of vanishing learning rate, the high-dimensional regime of large input dimension, and the overparameterised "mean-field" regime of large network width, covering as well the intermediate regimes where the limiting dynamics is determined by the interplay between these behaviours. In particular, in the high-dimensional limit, the infinite-width dynamics is found to remain close to a low-dimensional subspace spanned by the target principal directions. Our results therefore provide a unifying picture of the limiting SGD dynamics with synthetic data.

研究动机与目标

  • 统一两层神经网络中SGD动力学在不同 regime 下的分析:高维情形(d → ∞)、平均场情形(p → ∞)和经典梯度流情形(γ → 0)。
  • 识别一个低维、确定性的 ODE 系统,该系统通过种群风险的充分统计量描述极限 SGD 动力学。
  • 建立高维 ODE 方法与平均场 PDE 形式之间的严格联系,特别是在无限宽度极限下。
  • 证明在梯度流极限下,动力学与输入维数 d 无关,揭示了一种隐藏的维数不变性。
  • 提供一个数值求解器及开源代码,用于在不同参数设置下模拟推导出的 ODE 和 PDE。

提出的方法

  • 基于高斯数据和教师网络训练的两层网络,推导出单次遍历 SGD 动力学的非渐近 ODE 描述,利用种群风险的充分统计量。
  • 应用 Isserlis 定理计算高斯分布局部场多项式函数的期望,从而为 ODE 提供闭式表达式。
  • 通过比值 γ/(dp) → 0+ 引入无量纲缩放,统一三种情形,确保 ODE 在中间参数设置下依然有效。
  • 通过令 p → ∞ 在 ODE 中构造平均场 PDE 极限,表明动力学被限制在由目标主方向张成的低维子空间中。
  • 通过解耦动力学并考虑矩阵 Ξ 中的非对角项,显式推导出平均场 PDE,这些项对精度至关重要。
  • 开发了 ODE 和 PDE 的数值求解器,相关开源代码已发布于 GitHub,以支持可复现性与验证。
Figure 1: We discuss a unifying low-dimensional description of the one-pass SGD dynamics eq. ( 3 ) for two-layers neural networks as $\nicefrac{{\gamma}}{{dp}}\!\to\!0^{+}$ . This includes, in particular, the mean-field ( $p\!\to\!\infty$ ), the high-dimensional ( $d\!\to\!\infty$ ) and the classica
Figure 1: We discuss a unifying low-dimensional description of the one-pass SGD dynamics eq. ( 3 ) for two-layers neural networks as $\nicefrac{{\gamma}}{{dp}}\!\to\!0^{+}$ . This includes, in particular, the mean-field ( $p\!\to\!\infty$ ), the high-dimensional ( $d\!\to\!\infty$ ) and the classica

实验结果

研究问题

  • RQ1如何统一两层网络中 SGD 动力学在高维、平均场和梯度流三种情形下的分析?
  • RQ2比值 γ/(dp) 在决定 SGD 动力学低维 ODE 描述有效性方面起什么作用?
  • RQ3在梯度流极限(γ → 0)下,充分统计量的动力学是否与输入维数 d 无关,无论 d 取值如何?
  • RQ4有限维 d 和高维 d 下的平均场 PDE 有何不同?矩阵 Ξ 中的非对角项对动力学有何影响?
  • RQ5当忽略某些矩阵分量时,ODE 框架能否准确再现平均场情形下的动力学?

主要发现

  • 在 γ/(dp) → 0+ 的情形下,极限 SGD 动力学由一个低维、确定性的 ODE 系统控制,且在所有三种关键情形下均有效。
  • 在经典梯度流极限(γ → 0)下,充分统计量的动力学完全与输入维数 d 无关,揭示了显著的维数不变性。
  • 在 p → ∞ 极限下,平均场 PDE 自然地从 ODE 推导而出,且动力学被限制在由目标主方向张成的低维子空间中。
  • 忽略矩阵 Ξ 中的非对角项会导致 ODE 积分中出现显著偏差,尤其在如二次函数等偶函数激活情形下,数值实验已证实此点。
  • 对于 erf 激活函数,对称性降低了非对角项的影响,但它们在高维设置下对长期动力学的准确性仍至关重要。
  • 数值模拟表明,ODE 能够准确追踪 SGD 动力学,包括在长时间极限下收敛至完美学习(在 w* 和 -w* 处形成 δ-分布)的现象。
Figure 2: Dimension independence of the dynamics in the classical regime : Comparison between the simulated SGD dynamic and the analytical one obtained by integrating the differential equations. All the plots are using $\sigma=\text{erf}(\nicefrac{{\cdot}}{{\sqrt{2}}})$ . (Left:) Trajectories for th
Figure 2: Dimension independence of the dynamics in the classical regime : Comparison between the simulated SGD dynamic and the analytical one obtained by integrating the differential equations. All the plots are using $\sigma=\text{erf}(\nicefrac{{\cdot}}{{\sqrt{2}}})$ . (Left:) Trajectories for th

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。