Skip to main content
QUICK REVIEW

[Paper Review] Why ResNet Works? Residuals Generalize

Fengxiang He, Tongliang Liu|arXiv (Cornell University)|Apr 2, 2019
Advanced Neural Network ApplicationsComputer Science50 references5 citations
TL;DR

This paper provides a theoretical analysis of why residual networks (ResNets) generalize well despite their complex architecture. It shows that residual connections do not increase the hypothesis space complexity compared to chain-like networks when the total number of weights and nonlinearities is fixed. The key contribution is a generalization bound of order $\mathcal{O}(1/\sqrt{N})$ for ResNet, which depends on the product of weight matrix norms and justifies weight decay as a regularization technique.

ABSTRACT

Residual connections significantly boost the performance of deep neural networks. However, there are few theoretical results that address the influence of residuals on the hypothesis complexity and the generalization ability of deep neural networks. This paper studies the influence of residual connections on the hypothesis complexity of the neural network in terms of the covering number of its hypothesis space. We prove that the upper bound of the covering number is the same as chain-like neural networks, if the total numbers of the weight matrices and nonlinearities are fixed, no matter whether they are in the residuals or not. This result demonstrates that residual connections may not increase the hypothesis complexity of the neural network compared with the chain-like counterpart. Based on the upper bound of the covering number, we then obtain an $\mathcal O(1 / \sqrt{N})$ margin-based multi-class generalization bound for ResNet, as an exemplary case of any deep neural network with residual connections. Generalization guarantees for similar state-of-the-art neural network architectures, such as DenseNet and ResNeXt, are straight-forward. From our generalization bound, a practical implementation is summarized: to approach a good generalization ability, we need to use regularization terms to control the magnitude of the norms of weight matrices not to increase too much, which justifies the standard technique of weight decay.

Motivation & Objective

  • To understand why residual connections in deep neural networks lead to good generalization despite potential increases in model complexity.
  • To analyze the influence of residual connections on the hypothesis space complexity using covering numbers.
  • To derive a generalization bound for ResNet based on the covering number and weight norm product.
  • To provide theoretical justification for the widely used weight decay regularization technique.
  • To extend the generalization analysis to other residual-based architectures like DenseNet and ResNeXt.

Proposed method

  • The authors define a stem-vine framework to model deep neural networks with residual connections, separating the main chain (stem) from residual skip connections.
  • They derive an upper bound on the covering number of the hypothesis space, showing it remains unchanged regardless of whether weight matrices are in residuals or the stem, given fixed total numbers of weights and nonlinearities.
  • The covering number bound is used to derive a Rademacher complexity upper bound via standard statistical learning theory techniques.
  • A margin-based multi-class generalization bound of order $\mathcal{O}(1/\sqrt{N})$ is established for ResNet, where $N$ is the training sample size.
  • The generalization bound depends on the product of the $L_2$ norms of all weight matrices, implying that controlling this product improves generalization.
  • The theoretical framework is extended to other residual architectures like DenseNet and ResNeXt through the same covering number and generalization bound principles.

Experimental results

Research questions

  • RQ1Does the addition of residual connections increase the hypothesis space complexity of deep neural networks?
  • RQ2How does the covering number of the hypothesis space in ResNet compare to that of a chain-like deep network with the same number of parameters?
  • RQ3Can a generalization bound be derived for ResNet that explains its strong generalization performance?
  • RQ4What is the role of weight matrix norms in the generalization error of residual networks?
  • RQ5How does the proposed theory justify the effectiveness of weight decay in training deep residual networks?

Key findings

  • The covering number of the hypothesis space in a residual network is bounded by the same value as in a corresponding chain-like network when the total number of weight matrices and nonlinearities is fixed.
  • Residual connections do not increase the hypothesis space complexity, countering the intuition that skip connections increase model capacity.
  • A generalization bound of order $\mathcal{O}(1/\sqrt{N})$ is derived for ResNet, where $N$ is the number of training samples.
  • The generalization bound depends on the product of the $L_2$ norms of all weight matrices, indicating that larger norms lead to worse generalization.
  • The theoretical analysis justifies the use of weight decay as a regularization technique, since it controls the norm of weight matrices and thus improves generalization.
  • The generalization bound can be extended to other residual architectures such as DenseNet and ResNeXt with minimal modifications.

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.