One-shot Network Pruning at Initialization with Discriminative Image Patches

Yinan Yang, Yu Wang, Ying Ji, Heng Qi, Jien KatoarXiv 2022

TL;DR

This paper challenges the growing belief that data is unnecessary for one-shot network pruning at initialization (OPaI). By introducing Discriminative One-shot Network Pruning (DOP) and Super Stitching, the authors demonstrate that using highly informative, class-specific image patches significantly boosts pruning performance, outperforming state-of-the-art methods on ImageNet, especially at extreme compression levels.

What Problem Does This Paper Address?

Deep neural networks are powerful but computationally expensive. Pruning—removing unnecessary parameters—is a standard solution. Network Pruning at Initialization (PaI) is particularly attractive because it identifies a sparse subnetwork before the main training begins, saving massive amounts of compute.

Within this field, One-shot OPaI (like the SNIP and GraSP algorithms) is the fastest approach, pruning in a single step. However, a debate has emerged: does the data used to calculate which weights to prune actually matter? Some recent high-profile studies suggested that random noise or "corrupted" data works just as well. This paper argues that this "data-independent" view is a misconception caused by insufficient testing. The authors set out to prove that high-quality, informative data is, in fact, the secret sauce for effective one-shot pruning.

Methods

The authors propose two main techniques to inject "better data" into the pruning process:

  1. Discriminative One-shot Network Pruning (DOP): Instead of using random batches of full images, DOP uses the Automatic Concept-based Explanation (ACE) algorithm to find the most "discriminative" parts of an image—the specific patches (like a dog's ear or a guitar's strings) that a pre-trained model uses to identify a class. Pruning is then performed using only these high-signal patches.
  2. Super Stitching: To further concentrate information, the authors developed "Super Stitching." This method takes multiple discriminative patches from the same class and "stitches" them into a single synthetic image. This creates a dense "chunk" of class-relevant information, which strengthens the gradient signals used by pruning algorithms to decide which connections are vital.
Figure 1: Overview of the Discriminative One-shot Network Pruning (DOP) and Super Stitching. (1) Cluster segments in trained network’s activation space, extract Discriminative Image Patches. The green is meaningful in network prediction, and the red is meaningless. (2) Using Discriminative Image Patches or Super Stitching to prune unimportant parameters by an specific OPaI algorithm.

These methods are designed to be "plug-and-play" with existing OPaI criteria like SNIP (which looks at connection sensitivity) and GraSP (which aims to preserve gradient flow).

Datasets

The researchers evaluated their methods on the industry-standard ImageNet-1k benchmark using the ResNet-50 architecture. This is a significant choice, as many prior OPaI studies focused on smaller datasets like CIFAR, where the impact of data quality might be less obvious.

Key Insights and Ideas

  • OPaI is Data-Dependent: Through ablation studies, the authors showed that using "All-One Matrices" (images with no content) or "Random Segments" (meaningless parts of images) led to significantly worse pruning results. This directly refutes the idea that OPaI is data-independent.
  • Information Density is a Bottleneck: The success of Super Stitching suggests that the density of semantic information in the pruning data is a key factor. By condensing multiple visual concepts into one image, they provide a clearer "roadmap" for the pruning algorithm.
  • Sensitivity to Sparsity: The importance of high-quality data becomes even more critical as the target sparsity increases. At 95% sparsity (where only 5% of weights remain), the choice of data can mean the difference between a functional model and a total failure.

Key Results

The experimental results show a clear advantage for the proposed methods:

  • Dominating SNIP: SNIP with DOP outperformed the original SNIP across all tested sparsity levels (60%, 80%, 90%, and 95%). At 95% sparsity, DOP achieved 48.14% accuracy, compared to only 36.43% for the original SNIP.
  • Beating SOTA: Using GraSP with Super Stitching, the authors achieved 62.70% accuracy at 95% sparsity on ImageNet. This outperformed the previous state-of-the-art OPaI method, SBP-SR (62.66%), while using significantly fewer samples.
  • Efficiency: The research demonstrates that with informative data, one-shot pruning can even rival or outperform more expensive iterative pruning methods (like FORCE or Iter SNIP).

Limitations and Future Work

The primary limitation acknowledged is that DOP requires a pre-trained classifier to extract the discriminative concepts in the first place. While the target network being pruned is randomly initialized, the overall pipeline relies on knowledge distilled from an existing model.

The authors suggest that future research could explore ways to identify these critical visual concepts without needing a pre-trained model, potentially making the process entirely "from scratch." Additionally, exploring how these discriminative patches affect different architectures beyond ResNet remains an open question.

Summary updated

BibTeX
@misc{yang2022one,
  author = {Yinan Yang and Yu Wang and Ying Ji and Heng Qi and Jien Kato},
  title = {{One-shot Network Pruning at Initialization with Discriminative Image Patches}},
  year = {2022},
  eprint = {2209.05683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.05683},
}
Figure