Sparsified Model Zoo Twins: Investigating Populations of Sparsified Neural Network Models

Dominik Honegger, Konstantin Schürholt, Damian BortharXiv 2023 · DOI

Abstract

As neural networks grow in complexity, sparsification—reducing parameter counts to optimize efficiency—has become a critical technique. However, most research focuses on individual model instances. This study introduces "Sparsified Model Zoo Twins," a large-scale investigation into how sparsification affects entire populations of neural networks. By analyzing over 33,000 models across diverse datasets, the researchers demonstrate that pruning effects are remarkably consistent and predictable across model populations, revealing universal patterns in model compression.

Introduction

Deep learning often faces a reproducibility crisis, where performance can hinge on specific random seeds or hyperparameter configurations. While model pruning (sparsification) is known to be effective for individual models, its robustness across varied populations has remained largely unexplored. Are certain models inherently more "prunable" than others? Does a lucky initialization lead to a better sparsified outcome?

To answer these questions, researchers from the University of St. Gallen shifted the focus from individual models to "model zoos"—large collections of models trained under controlled variations. By creating sparsified "twins" for these populations, they aimed to identify universal laws of model compression.

Methodology

The study utilized 24 model zoos based on standard benchmarks including MNIST, Fashion-MNIST, SVHN, USPS, CIFAR-10, and STL-10. In total, the researchers generated 33,920 trained and sparsified convolutional neural networks (CNNs), documenting over 1.7 million unique model states.

Overview of the Sparsified Model Zoo Twins framework, from dataset selection to population analysis.

Two primary sparsification methods were evaluated:

  1. Magnitude Pruning (MP): A data-free approach where weights with the smallest absolute values are removed, followed by 15 epochs of fine-tuning to recover performance.
  2. Variational Dropout (VD): A training-aware method that prunes weights based on their variance, treating them as distributions.

The researchers also employed Hyper-Representation Learning, using autoencoders to map model weights into a low-dimensional latent space to predict accuracy and sparsity characteristics.

Key Insights

The large-scale analysis revealed several critical findings:

  • The "Rich Get Richer" Effect: There is a near-perfect correlation (Pearson’s $r > 0.9$) between a dense model's performance and its sparsified twin. High-performing dense models almost invariably yield high-performing sparse models.
  • Architectural Inefficiency: Pruning was consistently more aggressive in larger layers across all zoos, suggesting significant over-parameterization in standard CNN architectures.
  • Methodological Trade-offs: Magnitude Pruning generally outperformed Variational Dropout until reaching extreme sparsity levels (above 80%), where VD showed better stability.
  • Predictability: Sparsification traits are deeply encoded in a model's weights. Using latent space representations, the authors could accurately predict a model's "prunability" without exhaustive testing.

Results and Analysis

The results underscore the robustness of Magnitude Pruning. In the MNIST zoo, for instance, models maintained approximately 83.7% accuracy even at 80% sparsity. Furthermore, sparsified twins showed high behavioral agreement with their original counterparts, often exceeding 80% agreement on specific test-case predictions. This suggests that pruning preserves the specific error patterns and "personality" of the original model.

Test accuracy during pre-training and subsequent sparsification, showing the relationship between accuracy and sparsity ratio.

The data also confirmed that moderate sparsity can act as a regularizer, narrowing the generalization gap between training and test performance.

Conclusion

The "Sparsified Model Zoo Twins" project provides a new lens for understanding neural network compression. By demonstrating that pruning outcomes are highly predictable across populations, the study paves the way for more robust and automated model optimization. While the current work focuses on CNNs, future research will explore whether these population-level laws extend to larger architectures like Transformers and LLMs.

The complete dataset of models and their twins is available at modelzoos.cc.

Summary updated

BibTeX
@misc{honegger2023sparsified,
  author = {Dominik Honegger and Konstantin Schürholt and Damian Borth},
  title = {{Sparsified Model Zoo Twins: Investigating Populations of Sparsified Neural Network Models}},
  year = {2023},
  eprint = {2304.13718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.13718},
}
Figure