Amenable Sparse Network Investigator

Saeed Damadi, Erfan Nouri, Hamed Pirsiavash · OpenReview

Abstract

As the optimization problem of pruning a neural network is nonconvex and the strategies are only guaranteed to find local solutions, a good initialization becomes paramount. To this end, we present the Amenable Sparse Network Investigator (ASNI) algorithm that learns a sparse network whose initialization is compressed. The learned sparse structure found by ASNI is amenable since its corresponding initialization consists of only $2L$ numbers, where $L$ is the number of layers. These centroids are learned after only one single round of training. We experimentally show that these learned centroids are sufficient to initialize the nonzero parameters of the learned sparse structure to achieve approximately the accuracy of a non-sparse network.

Introduction

Deep Neural Networks (DNNs) are notoriously over-parameterized, leading to high computational costs. Pruning—removing unnecessary weights—helps, but it usually falls into two distinct camps: Task 1 focuses on finding an accurate, sparse "off-the-shelf" network ready for deployment, while Task 2 aims to find a sparse structure (a mask) that is "trainable" from scratch, often referred to as the Lottery Ticket Hypothesis (LTH).

The two primary tasks of pruning addressed by ASNI.

The challenge is that standard LTH methods require expensive, multiple rounds of training and often fail on large-scale models like ResNet-50. Meanwhile, "foresight" pruning (pruning before training) often results in lower accuracy. ASNI bridges this gap by solving both tasks simultaneously in just one training round, even for large-scale ImageNet models.

Methodology

The ASNI framework consists of two primary components designed to optimize both network structure and initialization efficiency.

ASNI-I: The Pruner

This stage uses a novel global pruning strategy governed by a sigmoid function. Instead of pruning a fixed amount every epoch, the sigmoid schedule manages the "sparsity budget" dynamically. Pruning is performed magnitude-wise after each epoch of training. This involves an early phase with low pruning to learn connectivity, a middle phase for aggressive pruning, and a final "healing" phase for fine-tuning remaining weights.

ASNI-II: The Initializer

Following the pruning phase, the weights in each layer tend to cluster into two distinct normal-like distributions—one positive and one negative. ASNI-II calculates the mean of these two clusters (centroids $c_+$ and $c_-$) for each layer. These $2L$ numbers form the "amenable" initialization, allowing the sparse network to be retrained from scratch to reach near-dense accuracy.

Weight distributions for different layers in ResNet-50, showing the two-peak distribution and the centroids ($c_+, c_-$).

Key Results

The authors evaluated ASNI across a diverse range of benchmarks including MNIST, CIFAR-10, and ImageNet-1K.

  • Accuracy: On ImageNet with ResNet-50 at 80% sparsity, ASNI-I achieved 75.23% top-1 accuracy, outperforming state-of-the-art single-round methods like RigL (74.55%) and Gradual Magnitude Pruning (74.68%).
  • Retrainability: Sparse networks initialized with the ASNI-II "amenable" centroids reached 75.17% accuracy, nearly matching the performance of the weights learned during the first round.
  • Extreme Compression: For a ResNet-50 with over 25 million parameters, ASNI-II reduces the required initialization data to just $2 \times 54$ numbers, representing a massive leap in model compression.

Conclusion

ASNI demonstrates that trained sparse weights naturally segregate into two clusters, allowing for extreme initialization compression. By pruning globally and gradually, ASNI successfully finds "winning tickets" in a single pass, even on large-scale datasets where traditional LTH methods struggle. This approach provides a robust path toward deploying efficient, high-performance sparse models.

Summary updated

Abstract

As the optimization problem of pruning a neural network is nonconvex and the strategies are only guaranteed to find local solutions, a good initialization becomes paramount. To this end, we present the Amenable Sparse Network Investigator ASNI algorithm that learns a sparse network whose initialization is compressed. The learned sparse structure found by ASNI is amenable since its corresponding initialization, which is also learned by ASNI, consists of only 2L numbers, where L is the number of layers. Requiring just a few numbers for parameter initialization of the learned sparse network makes the sparse network amenable. The learned initialization set consists of L signed pairs that act as the centroids of parameter values of each layer. These centroids are learned by the ASNI algorithm after only one single round of training. We experimentally show that the learned centroids are sufficient to initialize the nonzero parameters of the learned sparse structure in order to achieve approximately the accuracy of non-sparse network. We also empirically show that in order to learn the centroids, one needs to prune the network globally and gradually. Hence, for parameter pruning we propose a novel strategy based on a sigmoid function that specifies the sparsity percentage across the network globally. Then, pruning is done magnitude-wise and after each epoch of training. We have performed a series of experiments utilizing networks such as ResNets, VGG-style, small convolutional, and fully connected ones on ImageNet, CIFAR10, and MNIST datasets.
BibTeX
@misc{damadi2022amenable,
  author = {Saeed Damadi and Erfan Nouri and Hamed Pirsiavash},
  title = {{Amenable Sparse Network Investigator}},
  year = {2022},
  eprint = {2202.09284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.09284},
}
Figure