Peeking Behind the Curtains of Residual Learning

Tunhou Zhang, Feng Yan, Hai Helen Li, Yiran ChenarXiv 2024 · DOI

Abstract

Residual connections have become the de facto standard for training deep neural networks, yet the precise reason for their success—and the failure of "plain" networks—remains a subject of debate. This work identifies the "dissipating inputs" phenomenon, where compounding non-linearities like ReLU degrade input signals into noise, as the primary bottleneck in deep plain networks. We introduce the Plain Neural Net Hypothesis (PNNH) and a novel "Learner-Coder" paradigm. This approach allows deep plain networks to achieve ResNet-level accuracy while offering 2x better parameter efficiency and significantly higher training throughput.

Introduction: The Curse of Non-Linearity

Since the introduction of ResNet, skip connections have been the standard solution for convergence issues in deep architectures. While often attributed to vanishing or exploding gradients, this paper argues that the fundamental problem is information loss in the forward pass.

Specifically, non-linearities like ReLU act as low-rank operators by zeroing out negative responses. In deep plain networks, this effect compounds layer by layer, causing the original input signal to "dissipate" into random noise. By the time the signal reaches deeper layers, it lacks the necessary information for the network to learn meaningful representations.

The Plain Neural Net Hypothesis (PNNH)

The authors propose that a deep plain CNN is trainable from scratch provided there is an internal path that communicates input information to deeper layers before the non-linearity of each layer. This is formalized as the Learner-Coder paradigm, which replaces standard layers with a dual-path structure:

  1. The Learner: A standard supervised component (e.g., a convolution layer) that learns data-dependent features via stochastic gradient descent.
  2. The Coder: An unsupervised "internal path" designed to preserve input information, implemented as a lightweight autoencoder.

To maintain efficiency, the coder weights are shared across layers within a stage and frozen after an initial unsupervised training phase. The coder is pre-trained to reconstruct a "rectified normal distribution," mimicking the typical activation patterns in neural networks.

Empirical Evidence: Dissipating Inputs

To quantify information loss, the researchers utilize the DISTS dissimilarity score. This metric visualizes how quickly input information is lost across layers. In standard plain networks, the signal becomes indistinguishable from noise after approximately five layers. In contrast, ResNets and PNNH-enabled networks maintain signal integrity much longer.

Theoretically, the authors use the Chebyshev-Cantelli inequality to show that residual connections work by shifting the mean of neuron responses away from zero. This increases the "lower bound of surviving neurons," ensuring sufficient signal passes through the ReLU gate. PNNH generalizes this concept, suggesting that any rank-preserving internal path can enable deep training without explicit identity skip connections.

Experimental Results

The PNNH paradigm was evaluated on CIFAR-10/100 and ImageNet-1K using various backbones, including ResNet and Swin Transformers.

  • Parameter Efficiency: PNNH-enabled plain networks achieved 2× better parameter efficiency than ResNets. For example, a Plain-101 + PNNH model matches ResNet-101 accuracy with only 23.6M parameters compared to 44.5M.
  • Throughput and Memory: By avoiding the memory overhead of branching and merging paths, PNNH-enabled networks are more hardware-friendly, providing up to 0.3× higher training throughput and allowing for larger batch sizes on the same hardware.
  • Accuracy: On ImageNet, PNNH-enabled networks consistently outperformed standard plain networks by 1.0% to 5.0% in top-1 accuracy, matching or slightly exceeding ResNet baselines.

Conclusion and Future Work

This research demonstrates that identity mapping is a specific, manually-designed instance of a broader class of "coders" that preserve information flow. While PNNH successfully scales plain networks, theoretical limits suggest that even residual networks may eventually succumb to signal dissipation at extreme depths. Future work will explore the optimal coder designs for non-visual data and other architectures like Graph Neural Networks.

Summary updated

BibTeX
@misc{zhang2024peeking,
  author = {Tunhou Zhang and Feng Yan and Hai Helen Li and Yiran Chen},
  title = {{Peeking Behind the Curtains of Residual Learning}},
  year = {2024},
  eprint = {2402.08645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.08645},
}
Figure