Model Zoos: A Dataset of Diverse Populations of Neural Network Models

Konstantin Schürholt, Diyar Taskiran, Boris Knyazev, Xavier Giró-i-Nieto, Damian Borth · DOI

In traditional machine learning, datasets typically consist of images, text, or sensor data. However, a new paradigm is emerging where the neural networks themselves serve as the primary data. Researchers from the University of St.Gallen, Samsung SAIT AI Lab, and Universitat Politècnica de Catalunya have introduced Model Zoos, a standardized dataset comprising over 50,000 trained neural network models. By providing a systematic collection of model weights and their training trajectories, this resource facilitates the study of "weight space" to predict performance, analyze learning dynamics, and develop generative models for neural network weights.

The Challenge of Studying Model Populations

While benchmarks like ImageNet have revolutionized computer vision, there has been no equivalent for studying populations of models. A model's weights evolve along unique trajectories during training, forming complex structures in weight space. Existing collections are often small, task-specific, or lack the diversity required for rigorous scientific inquiry. This lack of standardization hinders progress in answering fundamental questions about weight structures, generalization prediction, and model initialization. The Model Zoos dataset addresses these gaps by providing scale and diversity.

Overview of the Model Zoo generation process, the resulting dataset structure, and potential downstream use cases.

Methodology: A Factory for Neural Networks

To ensure diversity, the researchers systematically varied several generating factors:

  • Hyperparameters: Variations included learning rates, weight decay, dropout rates, activation functions (e.g., ReLU, Tanh), and optimizers (Adam, SGD).
  • Initialization & Seeds: Different random seeds and initialization methods (Kaiming, Uniform, Normal) were employed to study the impact of starting points.
  • Configurations: Three zoo types were created: Hyp-10-rand (diverse hyperparameters and random seeds), Hyp-10-fix (diverse hyperparameters, fixed seeds), and Seed (fixed hyperparameters, 1000 different random seeds).
  • Sparsification: The dataset includes "sparsified twins" created via Variational Dropout to support research into model pruning.

Dataset Composition

The model zoos were trained on eight standard image classification datasets: MNIST, USPS, Fashion-MNIST, SVHN, CIFAR-10, CIFAR-100, STL-10, and Tiny ImageNet. The collection utilizes three architectures—Small CNN, Medium CNN, and ResNet-18—resulting in 50,360 unique models and over 3.8 million training checkpoints.

Accuracy distribution over training epochs for F-MNIST, USPS, and CIFAR-10 zoos, demonstrating the performance diversity achieved through hyperparameter variation.

Key Insights and Results

  • Weight Informativeness: Simple linear models can predict a network's test accuracy with high precision (R² > 90%) using only basic layer-wise weight statistics.
  • Weight Space Geometry: Visualization via UMAP reveals that models form distinct clusters based on initialization and activation functions, particularly with fixed seeds. This suggests that the starting point and activation landscape define the neighborhood where a model settles.
  • Predicting Generalization: While accuracy prediction is robust, predicting the generalization gap (the difference between training and test performance) remains a significant challenge for future research.
  • Meta-data Recovery: In fixed-seed configurations, initialization methods and activation functions can be predicted from weights with nearly 100% accuracy.
  • Computational Effort: Generating the dataset required approximately 30,000 CPU hours, providing a significant pre-computed resource for the community.

Future Directions

Current zoos focus on image classification and CNN/ResNet architectures. Future work should expand into Natural Language Processing (Transformers) and Reinforcement Learning. The authors invite the community to leverage this dataset to develop sophisticated manifold learning and generative techniques, potentially enabling the synthesis of high-performing models without traditional training.

The dataset and code are available at www.modelzoos.cc.

Summary updated

BibTeX
@inproceedings{schurholt2022model,
  author = {Konstantin Schürholt and Diyar Taskiran and Boris Knyazev and Xavier Giró-i-Nieto and Damian Borth},
  title = {{Model Zoos: A Dataset of Diverse Populations of Neural Network Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=MOCZI3h8Ye},
}

Loading related content...

Figure