Skip to main content
QUICK REVIEW

[Paper Review] The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Training

Shiwei Liu, Tianlong Chen|University of Twente Research Information|Feb 5, 2022
Adversarial Robustness in Machine LearningComputer Science33 citations
TL;DR

The paper shows that randomly pruned subnetworks trained from scratch can match or exceed dense network performance, especially in large models, and can improve OoD detection, uncertainty estimation, and adversarial robustness.

ABSTRACT

Random pruning is arguably the most naive way to attain sparsity in neural networks, but has been deemed uncompetitive by either post-training pruning or sparse training. In this paper, we focus on sparse training and highlight a perhaps counter-intuitive finding, that random pruning at initialization can be quite powerful for the sparse training of modern neural networks. Without any delicate pruning criteria or carefully pursued sparsity structures, we empirically demonstrate that sparsely training a randomly pruned network from scratch can match the performance of its dense equivalent. There are two key factors that contribute to this revival: (i) the network sizes matter: as the original dense networks grow wider and deeper, the performance of training a randomly pruned sparse network will quickly grow to matching that of its dense equivalent, even at high sparsity ratios; (ii) appropriate layer-wise sparsity ratios can be pre-chosen for sparse training, which shows to be another important performance booster. Simple as it looks, a randomly pruned subnetwork of Wide ResNet-50 can be sparsely trained to outperforming a dense Wide ResNet-50, on ImageNet. We also observed such randomly pruned networks outperform dense counterparts in other favorable aspects, such as out-of-distribution detection, uncertainty estimation, and adversarial robustness. Overall, our results strongly suggest there is larger-than-expected room for sparse training at scale, and the benefits of sparsity might be more universal beyond carefully designed pruning. Our source code can be found at https://github.com/VITA-Group/Random_Pruning.

Motivation & Objective

  • Motivation to reduce computational cost and model size while maintaining performance in sparse regimes.
  • Systematic evaluation of random pruning across architectures, datasets, and sparsity levels.
  • Investigation of the role of network size and pre-defined layer-wise sparsity patterns in sparse training from scratch.

Proposed method

  • Pre-define layer-wise sparsity ratios using six schemes (Uniform, Uniform+, SNIP, GraSP, ERK, ERK+).
  • Apply random pruning to initialize subnetworks at target sparsities without training the masks.
  • Train sparse subnetworks from scratch with SGD and standard training recipes across CIFAR and ImageNet.
  • Evaluate not only predictive accuracy but also OoD detection, uncertainty estimation, and adversarial robustness.
  • Compare random pruning with non-random pruning criteria (SNIP, GraSP) and analyze gradient flow.
  • Use ERK+ to force a dense last layer when appropriate to maintain performance.

Experimental results

Research questions

  • RQ1Can randomly pruned subnetworks trained from scratch match or exceed the performance of their dense counterparts across varied architectures and sparsities?
  • RQ2How do network size and layer-wise sparsity patterns influence the effectiveness of random pruning in sparse training?
  • RQ3Do randomly pruned networks offer advantages in OoD detection, uncertainty estimation, and adversarial robustness compared to dense models?
  • RQ4How do different predefined sparsity schemes (ERK, SNIP, GraSP, Uniform, ERK+) compare in practice for sparse training?
  • RQ5What can gradient-flow analysis reveal about the benefits of SNIP versus ERK-based sparsities in sparse training?

Key findings

  • Network size matters: small networks struggle to match dense performance under random pruning, while larger networks quickly match, even at high sparsities.
  • Appropriate layer-wise sparsity ratios boost performance, with ERK-based patterns sometimes matching or exceeding dense models on ImageNet.
  • ERK-based pruning can outperform complex criteria like SNIP or GraSP in several settings, even without data-driven pruning signals.
  • On CIFAR-10, randomly pruned networks show strong uncertainty estimation and competitive OoD performance, improving robustness for larger models.
  • On ImageNet, larger models with random pruning reach dense-level accuracy at 30-50% sparsity, with notable gains in OoD, uncertainty, and adversarial robustness.
  • Random pruning provides meaningful efficiency gains and robustness benefits as model size increases, compared to dense baselines.

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.