Abstract
Deep neural networks typically rely on dense activations, which are computationally expensive. While sparsifying activations like shifted ReLUs can reduce FLOPs, they often lead to training instability in deep architectures. This paper investigates the mathematical roots of this instability using Mean Field Theory and proposes magnitude-clipping as a stabilization mechanism. We introduce Clipped Shifted ReLU (CReLU) and Clipped Soft Thresholding (CST), demonstrating that 100-layer networks can be successfully trained with up to 85% activation sparsity without significant accuracy loss.
Introduction
As deep learning models scale, the computational cost of training and inference becomes a primary bottleneck. While weight pruning is a common technique for model compression, activation sparsity—where hidden layer outputs are forced to zero—offers a direct path to reducing Floating Point Operations (FLOPs) and memory usage. However, standard functions used to induce sparsity, such as shifted ReLUs or soft thresholding, are notoriously difficult to initialize in deep networks. Signals often vanish or explode exponentially, rendering the network untrainable.
Stability Analysis and Proposed Solutions
The authors utilize Mean Field Theory and Gaussian Process limits to analyze signal propagation at random initialization. They identify that for standard sparsifying activations, the "variance map"—which describes how signal variance evolves across layers—is inherently unstable. Even at the "Edge of Chaos" (EoC), where signals should theoretically propagate without dying or exploding, stochastic fluctuations in finite-width networks push the variance into unstable regimes.
To address this, the researchers propose two modified activation functions that incorporate magnitude clipping:
- CReLU (Clipped Shifted ReLU): A ReLU shifted by $\tau$ and capped at $m$.
- CST (Clipped Soft Thresholding): An odd-function variant of CReLU.
By capping the activation magnitude, the variance map is "bent" back into a stable regime. This clipping fundamentally changes the derivative of the variance map at the fixed point, making the EoC initialization locally stable for sparse contexts.
Experimental Results
The proposed methods were validated on MNIST (100-layer DNNs) and CIFAR-10 (50-layer CNNs).
- High Sparsity Performance: On MNIST, 100-layer DNNs using clipped activations achieved 85% fractional sparsity while maintaining ~94% accuracy, comparable to standard dense ReLU networks.
- CNN Scalability: 50-layer CNNs on CIFAR-10 maintained full accuracy at 70% sparsity. At 85% sparsity, only a 4% accuracy drop was observed.
- Baseline Failure: Standard (non-clipped) shifted ReLU and Soft Thresholding functions failed to train entirely when sparsity exceeded 60-70%, highlighting the necessity of the clipping mechanism.
Key Insights
The primary contribution of this work is the decoupling of sparsity and stability. By adjusting the shift parameter $\tau$, researchers can target a specific sparsity level, while the clipping parameter $m$ ensures mathematical stability during initialization. This allows for the training of extremely deep, sparse networks that were previously considered "untrainable."
Limitations and Future Work
While effective, the authors noted a "second failure mode" at extreme sparsity (85%+) combined with very low clipping values, where training becomes "spiky." Future research should explore the dynamics of this late-stage instability and extend the analysis to modern architectures like ResNets and Transformers, which utilize skip connections and attention mechanisms. Additionally, investigating smooth variants of CReLU/CST may further improve training speed and stability.
Summary updated