Skip to main content
QUICK REVIEW

[论文解读] On the impact of activation and normalization in obtaining isometric embeddings at initialization

Amir Joudaki, Hadi Daneshmand|arXiv (Cornell University)|May 28, 2023
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

该论文证明,层归一化与非线性激活函数联合作用,可在深度多层感知机初始化时诱导出等距表征,其收敛速率通过激活函数的埃尔米特展开进行量化。实验结果表明,该等距强度与浅层网络中随机梯度下降的更快收敛存在强相关性。

ABSTRACT

In this paper, we explore the structure of the penultimate Gram matrix in deep neural networks, which contains the pairwise inner products of outputs corresponding to a batch of inputs. In several architectures it has been observed that this Gram matrix becomes degenerate with depth at initialization, which dramatically slows training. Normalization layers, such as batch or layer normalization, play a pivotal role in preventing the rank collapse issue. Despite promising advances, the existing theoretical results do not extend to layer normalization, which is widely used in transformers, and can not quantitatively characterize the role of non-linear activations. To bridge this gap, we prove that layer normalization, in conjunction with activation layers, biases the Gram matrix of a multilayer perceptron towards the identity matrix at an exponential rate with depth at initialization. We quantify this rate using the Hermite expansion of the activation function.

研究动机与目标

  • 为解决目前理论对层归一化与非线性激活函数如何共同影响深层网络表征等距性尚缺乏理解的问题。
  • 量化在使用层归一化与标准激活函数的深层MLP中,中间表征的格拉姆矩阵收敛到单位矩阵的速率。
  • 弥合现有理论的空白,该理论尚未扩展至层归一化,也未完全刻画非线性激活函数在防止秩崩溃中的作用。
  • 通过实验验证等距强度与随机梯度下降训练速度之间的关联。
  • 探索在无显式归一化条件下,激活函数实现等距性的条件,提示其具备自归一化特性。

提出的方法

  • 对在层归一化与激活函数下深层MLP中格拉姆矩阵动力学的理论分析,重点关注倒数第二层。
  • 利用埃尔米特多项式展开表征非线性激活函数,并推导格拉姆矩阵收敛到单位矩阵的速率。
  • 证明等距性在批量归一化与层归一化下被保持并增强,且收敛速率随深度呈指数级。
  • 基于激活函数的埃尔米特系数,推导出等距速率参数βσ的闭式表达式。
  • 通过不同激活函数的SGD收敛速度实验评估,与计算出的等距强度βσ进行相关性分析。
  • 对比不同归一化方案(层归一化 vs. 均值场归一化)以及层顺序(归一化在激活前/后),以评估等距偏差。
Figure 4.1 : Validation of Corollary 4.2 Isometry (y-axis) vs different layer of an MLP: Normalization layers (shaded blue) across all layers and configurations maintain or increase isometry both before (left) and after (right) training, validating Corollary 4.2 . Hyper parameters: activation: $\tan
Figure 4.1 : Validation of Corollary 4.2 Isometry (y-axis) vs different layer of an MLP: Normalization layers (shaded blue) across all layers and configurations maintain or increase isometry both before (left) and after (right) training, validating Corollary 4.2 . Hyper parameters: activation: $\tan

实验结果

研究问题

  • RQ1层归一化如何影响深层MLP在初始化时中间表征的等距性?
  • RQ2在层归一化与非线性激活函数下,格拉姆矩阵收敛到单位矩阵的定量速率是多少?
  • RQ3激活函数的埃尔米特展开如何决定深层网络中的等距速率?
  • RQ4等距强度是否与随机梯度下降中的训练速度相关?若相关,在何种条件下成立?
  • RQ5某些激活函数能否在无显式归一化条件下实现等距性?归一化与激活的顺序起什么作用?

主要发现

  • 层归一化与非线性激活函数联合作用,可在深层MLP的倒数第二层格拉姆矩阵中诱导出等距性,且收敛到单位矩阵的速率随深度呈指数级。
  • 收敛速率由激活函数的埃尔米特展开量化,等距强度βσ由激活函数的第一个非零埃尔米特系数决定。
  • 实验结果表明,βσ值越高,浅层MLP(如10层)中SGD收敛越快,但该相关性在更深网络中失效。
  • 归一化与激活层的顺序对等距性有决定性影响,归一化在激活之后的配置比归一化在激活之前产生更接近各向同性的格拉姆矩阵。
  • SeLU与tanh类激活函数表现出自归一化行为,仅通过偏移与缩放调整即可实现等距性,提示其理论基础可通过埃尔米特展开得到支持。
  • 层归一化通过控制误差随深度的累积,稳定了均值场预测,这很可能是由于其诱导等距性的偏差,如定理4.1所证明。
Figure 5.1 : Validation of Theorem 5.1 . Solid blue traces show the isometry of MLP with $n=100,$ $d=5000,$ and various activations $\sigma$ . Solid lines show the average of $\#10$ independent runs. The dashed traces are theoretical upper bounds given in Theorem 5.1 , with constant $C=1$ .
Figure 5.1 : Validation of Theorem 5.1 . Solid blue traces show the isometry of MLP with $n=100,$ $d=5000,$ and various activations $\sigma$ . Solid lines show the average of $\#10$ independent runs. The dashed traces are theoretical upper bounds given in Theorem 5.1 , with constant $C=1$ .

阅读本论文

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

在 Nubint 中阅读本论文

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