Skip to main content
QUICK REVIEW

[Paper Review] Stabilize Deep ResNet with A Sharp Scaling Factor $τ$

Huishuai Zhang, Dahua Yu|arXiv (Cornell University)|Mar 17, 2019
Adversarial Robustness in Machine LearningComputer Science36 references11 citations
TL;DR

This paper proposes a sharp scaling factor $\tau = 1/\sqrt{L}$ for residual networks (ResNets), where $L$ is the number of residual blocks, to stabilize the forward and backward processes during training. The authors prove that $\tau = O(1/\sqrt{L})$ is both necessary and sufficient for stability, enabling global convergence of gradient descent in over-parameterized ResNets with a depth-independent convergence rate, and empirically show that this factor improves training stability and performance without batch normalization.

ABSTRACT

We study the stability and convergence of training deep ResNets with gradient descent. Specifically, we show that the parametric branch in the residual block should be scaled down by a factor $τ=O(1/\sqrt{L})$ to guarantee stable forward/backward process, where $L$ is the number of residual blocks. Moreover, we establish a converse result that the forward process is unbounded when $τ>L^{-\frac{1}{2}+c}$, for any positive constant $c$. The above two results together establish a sharp value of the scaling factor in determining the stability of deep ResNet. Based on the stability result, we further show that gradient descent finds the global minima if the ResNet is properly over-parameterized, which significantly improves over the previous work with a much larger range of $τ$ that admits global convergence. Moreover, we show that the convergence rate is independent of the depth, theoretically justifying the advantage of ResNet over vanilla feedforward network. Empirically, with such a factor $τ$, one can train deep ResNet without normalization layer. Moreover, for ResNets with normalization layer, adding such a factor $τ$ also stabilizes the training and obtains significant performance gain for deep ResNet.

Motivation & Objective

  • To establish a non-asymptotic analysis of forward/backward stability in deep ResNets under gradient descent.
  • To determine the sharp threshold for the scaling factor $\tau$ that ensures stable training across arbitrary network depth.
  • To demonstrate that gradient descent converges globally to the global minimum when $\tau \leq \tilde{O}(1/\sqrt{L})$ and the network is over-parameterized.
  • To show that the convergence rate is independent of depth, justifying ResNet's advantage over vanilla feedforward networks.
  • To empirically validate that $\tau = 1/\sqrt{L}$ enables training without normalization layers and improves performance when added to normalized ResNets.

Proposed method

  • Introduces a residual block structure with a learnable scaling factor $\tau$ applied to the parametric branch: $h_l = \phi(h_{l-1} + \tau \mathcal{F}_l(h_{l-1}))$.
  • Analyzes the spectral norm of the forward process using random matrix theory, showing that output norm growth is controlled when $\tau = O(1/\sqrt{L})$ due to statistical averaging of random weights.
  • Establishes a converse result: if $\tau > L^{-1/2 + c}$ for any $c > 0$, the expected output norm grows as $L^c$, implying instability.
  • Proves that gradient descent converges globally to the global minimum for over-parameterized ResNets when $\tau \leq \tilde{O}(1/\sqrt{L})$, with a convergence rate independent of depth.
  • Compares $\tau$-scaling to batch normalization and Fixup, showing it provides stronger stability guarantees without requiring learning rate warm-up or careful initialization scaling.
  • Empirically validates the method on CIFAR-10 using ResNet110 and ResNet1202, comparing $\tau = 1/L$, $1/\sqrt{L}$, and $1/L^{1/4}$, and tuning learning rates to assess robustness.

Experimental results

Research questions

  • RQ1What is the sharp scaling factor $\tau$ that guarantees forward and backward stability in deep ResNets with arbitrary depth?
  • RQ2Can gradient descent achieve global convergence for over-parameterized ResNets when $\tau = O(1/\sqrt{L})$?
  • RQ3Is the convergence rate of gradient descent independent of network depth under the proposed $\tau$ scaling?
  • RQ4How does the proposed $\tau$-scaling compare to batch normalization and Fixup in terms of training stability and performance?
  • RQ5Can ResNet be trained effectively without normalization layers when $\tau = 1/\sqrt{L}$ is applied?

Key findings

  • The scaling factor $\tau = O(1/\sqrt{L})$ is both necessary and sufficient for stable forward and backward propagation in deep ResNets.
  • When $\tau = L^{-1/2 + c}$ for any $c > 0$, the expected output norm grows at least as $L^c$, proving instability for larger $\tau$.
  • For $\tau \leq \tilde{O}(1/\sqrt{L})$, gradient descent converges globally to the global minimum in over-parameterized ResNets with a depth-independent convergence rate.
  • Empirically, ResNet with $\tau = 1/\sqrt{L}$ trains stably and achieves 92.5% validation accuracy on CIFAR-10 without normalization layers, outperforming Fixup and $\tau = 1/L$.
  • Adding $\tau = 1/\sqrt{L}$ to ResNets with batch normalization further improves performance, demonstrating its complementary benefit.
  • The method eliminates the need for learning rate warm-up, unlike batch normalization, which still suffers from instability in very deep networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.