Abstract
Random masks define surprisingly effective sparse neural network models, as has been shown empirically. The resulting sparse networks can often compete with dense architectures and state-of-the-art lottery ticket pruning algorithms, even though they do not rely on computationally expensive prune-train iterations and can be drawn initially without significant computational overhead. We offer a theoretical explanation of how random masks can approximate arbitrary target networks if they are wider by a logarithmic factor in the inverse sparsity $1 / \log(1/\text{sparsity})$. This overparameterization factor is necessary at least for 3-layer random networks, which elucidates the observed degrading performance of random networks at higher sparsity. At moderate to high sparsity levels, however, our results imply that sparser networks are contained within random source networks so that any dense-to-sparse training scheme can be turned into a computationally more efficient sparse-to-sparse one by constraining the search to a fixed random mask. We demonstrate the feasibility of this approach in experiments for different pruning methods and propose particularly effective choices of initial layer-wise sparsity ratios of the random source network. As a special case, we show theoretically and experimentally that random source networks also contain strong lottery tickets.
Introduction
Deep neural networks are notoriously overparameterized, leading to massive computational and energy costs. While sparse networks are more efficient, finding them usually requires "dense-to-sparse" workflows, such as Iterative Magnitude Pruning (IMP) used in the Lottery Ticket Hypothesis (LTH). This paper addresses a critical question: Can we skip the dense stage entirely? By modeling random masks as Erdős-Rényi (ER) networks, the authors provide a theoretical and empirical justification for starting sparse.
Theoretical Approximation
The authors prove that an ER network can approximate any arbitrary target network, provided the ER network is wider by a logarithmic factor: $1/\log(1/\text{sparsity})$. This quantification of the "cost of randomness" explains why random pruning is effective at moderate sparsities but fails at extreme levels (e.g., >99.9%) where the required width for approximation explodes, creating a "theoretical wall" for static random masks.
Sparse-to-Sparse Training
Instead of starting with a dense model, the authors propose starting with a random ER mask and then applying further pruning or continuous sparsification within that fixed random structure. This "sparse-to-sparse" paradigm bypasses the computational cost of the initial dense model.
To optimize this process, the paper introduces two novel layer-wise sparsity distributions:
- Balanced: Keeps the number of parameters constant across layers.
- Pyramidal: Decreases the density of connections as the network gets deeper.
Key Results
The authors validated their findings across benchmarks like CIFAR-10/100 and ImageNet using ResNet and VGG architectures. The results demonstrate that these random masks, particularly with "Balanced" or "Pyramidal" ratios, can match or exceed the performance of state-of-the-art pruning algorithms.
- Competitive Performance: On CIFAR-10 with VGG16, the "Balanced" ER mask at 90% sparsity achieved 93.2% accuracy, matching or outperforming expensive iterative pruning methods.
- Efficiency Gains: Starting training with a ResNet18 at 70% sparsity and pruning down to 96% resulted in 94.11% accuracy, nearly identical to the 94.66% achieved by starting from a fully dense model, but with a fraction of the memory and FLOPs during training.
- Strong Lottery Tickets (SLTs): The theory extends to show that SLTs—subnetworks that perform well without any weight training—exist even within sparse random source networks.
Conclusion and Future Work
Randomly masked networks possess the same universal approximation properties as dense networks, given sufficient overparameterization. While static random masks break down at extreme sparsities, the "sparse-to-sparse" approach offers a significant efficiency boost for most practical regimes. Future work includes exploring automated searches for optimal layer-wise sparsity ratios and mitigating "layer collapse" at high sparsities through flow preservation strategies.
Summary updated