Training Better CNNs Requires to Rethink ReLU

Gangming Zhao, Zhaoxiang Zhang, Jingdong Wang, He GuanarXiv 2017

Abstract

Most convolutional neural networks share the same characteristic: each convolutional layer is followed by a nonlinear activation layer where Rectified Linear Unit (ReLU) is the most widely used. In this paper, we argue that the designed structure with the equal ratio between these two layers may not be the best choice since it could result in the poor generalization ability. Thus, we try to investigate a more suitable method on using ReLU to explore the better network architectures. Specifically, we propose a proportional module to keep the ratio between convolution and ReLU amount to be N:M (N>M). The proportional module can be applied in almost all networks with no extra computational cost to improve the performance. Comprehensive experimental results indicate that the proposed method achieves better performance on different benchmarks with different network architectures, thus verify the superiority of our work.

Introduction: The Information Loss Paradox

In modern Deep Learning, the "1:1 ratio" convention—where every convolutional layer is paired with a non-linear activation function like ReLU—is rarely questioned. While ReLU effectively addresses the vanishing gradient problem and encourages sparsity, researchers from CASIA and Microsoft Research suggest this ubiquity may be counterproductive.

The core issue identified is information loss. ReLU operates by zeroing out all negative values. While this non-linearity is vital for learning complex, non-linear mappings, applying it indiscriminately after every convolution can discard useful features prematurely. This redundancy limits the network's expressive power, potentially leading to overfitting and degraded generalization in very deep architectures.

Comparison between the original Conv-BN-ReLU sequence and the proposed DropReLU approach.

Methodology: The Proportional Module

To mitigate information loss, the authors introduce the Proportional Module. This approach breaks the standard 1:1 symmetry by maintaining an N:M ratio (where N > M) between convolutional and ReLU layers.

By strategically removing specific ReLU layers, the network allows for a sequence of linear transformations before a non-linearity is applied. This enables subsequent convolutional layers to "recover" or better utilize information that would otherwise have been pruned.

Different N:M ratios for the proportional module, ranging from the standard 1:1 to 3:0.

The implementation varies by architecture:

  • Plain Networks: ReLUs are removed at regular intervals (e.g., every other block).
  • Residual Networks (ResNets): The "building blocks" are modified. For instance, in a two-layer residual block, the first ReLU is removed, leaving only the activation following the skip-connection addition.
  • Bottleneck Blocks: The authors evaluated the redundancy of the three ReLUs typically found in bottleneck structures, finding that the first ReLU is often the most redundant.

This optimization is computationally "free," requiring no additional parameters and slightly reducing the total number of operations.

Experimental Evaluation

The proposed method was evaluated on the CIFAR-10 and CIFAR-100 benchmarks. CIFAR-100, with its 100 classes, provided a particularly rigorous test for the model's generalization capabilities.

Key Results in Plain Networks

The impact was most significant in deep "plain" networks (those without skip connections), which typically suffer from training degradation:

  • 62-layer Plain Net: Accuracy improved from 56.88% (1:1 ratio) to 60.86% (2:1 ratio).
  • 84-layer Plain Net: Accuracy saw a massive jump from 44.16% to 55.98%, an 11.82% improvement achieved solely by removing redundant ReLUs.

Performance in Modern Architectures

The gains persisted in state-of-the-art architectures:

  • ResNet-110: On CIFAR-100, a 2:1 ratio improved accuracy from 72.46% to 73.41%.
  • Deep Fusion Networks (DFN): Consistent improvements across different configurations demonstrated that the method is architecture-agnostic.

Discussion and Insights

The study reveals several critical insights into network design:

  1. ReLU Redundancy: Not every layer requires non-linearity. Some layers function more effectively as linear units that preserve data distribution.
  2. Positioning is Critical: In ResNet bottlenecks, removing the final ReLU (after addition) hurts performance, suggesting that the terminal non-linearity is essential for maintaining depth properties.
  3. Alleviating Degradation: The proportional approach helps deep plain networks converge more effectively, indicating that excessive ReLUs contribute to the difficulty of training deep architectures.

Conclusion and Future Work

By rethinking the role of ReLU, the authors demonstrate that "less is more" when it comes to activation functions in deep CNNs. While the current study focuses on CIFAR datasets, the consistent gains across plain and residual networks suggest broad applicability. Future research may involve using Reinforcement Learning or Neural Architecture Search (NAS) to automatically determine the optimal N:M ratio and placement for specific tasks and datasets, moving beyond manual heuristics.

Summary updated

BibTeX
@misc{zhao2017training,
  author = {Gangming Zhao and Zhaoxiang Zhang and Jingdong Wang and He Guan},
  title = {{Training Better CNNs Requires to Rethink ReLU}},
  year = {2017},
  eprint = {1709.06247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.06247},
}
Figure