[论文解读] Phase Transitions for Feature Learning in Neural Networks
论文在高维下分析两层网络的梯度下降动力学,发现Hessian中的谱相变控制困难潜在方向的特征学习,给出可计算的阈值δNN,用于判断神经网络在何时学习超出简单方向的特征。
According to a popular viewpoint, neural networks learn from data by first identifying low-dimensional representations, and subsequently fitting the best model in this space. Recent works provide a formalization of this phenomenon when learning multi-index models. In this setting, we are given $n$ i.i.d. pairs $({\boldsymbol x}_i,y_i)$, where the covariate vectors ${\boldsymbol x}_i\in\mathbb{R}^d$ are isotropic, and responses $y_i$ only depend on ${\boldsymbol x}_i$ through a $k$-dimensional projection ${\boldsymbol Θ}_*^{\sf T}{\boldsymbol x}_i$. Feature learning amounts to learning the latent space spanned by ${\boldsymbol Θ}_*$. In this context, we study the gradient descent dynamics of two-layer neural networks under the proportional asymptotics $n,d o\infty$, $n/d oδ$, while the dimension of the latent space $k$ and the number of hidden neurons $m$ are kept fixed. Earlier work establishes that feature learning via polynomial-time algorithms is possible if $δ> δ_{ ext{alg}}$, for $δ_{ ext{alg}}$ a threshold depending on the data distribution, and is impossible (within a certain class of algorithms) below $δ_{ ext{alg}}$. Here we derive an analogous threshold $δ_{ ext{NN}}$ for two-layer networks. Our characterization of $δ_{ ext{NN}}$ opens the way to study the dependence of learning dynamics on the network architecture and training algorithm. The threshold $δ_{ ext{NN}}$ is determined by the following scenario. Training first visits points for which the gradient of the empirical risk is large and learns the directions spanned by these gradients. Then the gradient becomes smaller and the dynamics becomes dominated by negative directions of the Hessian. The threshold $δ_{ ext{NN}}$ corresponds to a phase transition in the spectrum of the Hessian in this second phase.
研究动机与目标
- 解释在比例极限下,梯度下降如何在多指标模型中学习低维潜在结构。
- 表征梯度下降过程中Hessian的谱相变,如何使学习困难的潜在方向成为可能。
- 提供一个可计算的阈值δNN,用以区分两层网络在具有/不具有特征学习的两种行为。
- 将理论联系到groking等现象,以及激活函数、损失函数、初始化和网络宽度的依赖。
提出的方法
- 对一个固定读出层、仅训练第一层权重,使用全批梯度下降来建模两层神经网络。
- 在n, d趋于无穷、n/d→δ、潜在维度k和网络宽度m固定的比例极限下进行分析。
- 通过将潜在空间分解为易学习子空间UE和难学习子空间UH,定义硬子空间UH。
- 分析沿梯度下降轨迹的经验风险Hessian,推导出基于解析子(resolvent)的离群特征值描述。
- 证明当δ超过可计算的δNN(t)时,Hessian存在与难子空间对齐的负离群特征值,指示开始学习特征。
- 给出m=1与m≫1两种情况的结果,并给出Hessian的分块近似的情形。
实验结果
研究问题
- RQ1标准的两层神经网络是否在算法阈值之上学习硬潜在方向,且这如何依赖于网络结构与训练设置?
- RQ2梯度下降如何在损失面上遍历以学习硬方向,其是否可由Hessian的谱相变来描述?
- RQ3如何量化决定特征学习的阈值δNN,以及它与数据、激活、损失、初始化和宽度的关系?
- RQ4学习动力学与groking现象是否可由对齐于硬方向的负Hessian特征值的出现来解释?
- RQ5在窄网络(m=1)与宽网络(m≫1)之间,Hessian谱和学习阈值在结果上有何不同?
主要发现
- 在O(1)梯度步内无法学习硬方向;对于任意固定的t,Θ(t)在渐近意义上与硬子空间UH正交。
- 沿梯度轨迹的Hessian呈现谱相变:当δ超过δNN时,出现与UH对齐的负离群特征值,从而使特征学习成为可能。
- 总体特征学习阈值为δNN = min_j δ∗_j,由Hessian各分块中的离群值出现决定,且δ∗_j依赖于损失、激活、初始化及学习细节。
- 易学习子空间UE在O(1)迭代内可学习,与δ无关;而难方向需要足够的样本量(δ>δNN)才能出现具有信息性的特征向量。
- 当δ>δNN时出现grokking行为,且泛化误差下降所需时间随δ接近δNN而增加,原因是谱间隙趋于0。
- 给出一个严格、明确的框架,研究目标函数、损失、激活、宽度和初始化如何影响特征学习阈值。
- 使用GeLU和相位检索设定的数值实验支持所预测的δNN及其与groking的关系。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。