Skip to main content
QUICK REVIEW

[Paper Review] Classifying the classifier: dissecting the weight space of neural networks

Gabriel Eilertsen, Daniel Jönsson|arXiv (Cornell University)|Feb 13, 2020
Machine Learning and Data ClassificationComputer Science41 references6 citations
TL;DR

This paper introduces the Neural Weight Space (NWS) as a high-dimensional representation of trained deep neural networks, using 16K CNNs with diverse hyper-parameters to explore how training factors like optimizer, initialization, and dataset shape the weights. By training meta-classifiers on small weight subsets, it reveals that hyper-parameters leave detectable, localized footprints in the weight space—especially initialization and optimizer—enabling inference of training setup from weights alone, with the NWS dataset of 320K snapshots released for public use.

ABSTRACT

This paper presents an empirical study on the weights of neural networks, where we interpret each model as a point in a high-dimensional space -- the neural weight space. To explore the complex structure of this space, we sample from a diverse selection of training variations (dataset, optimization procedure, architecture, etc.) of neural network classifiers, and train a large number of models to represent the weight space. Then, we use a machine learning approach for analyzing and extracting information from this space. Most centrally, we train a number of novel deep meta-classifiers with the objective of classifying different properties of the training setup by identifying their footprints in the weight space. Thus, the meta-classifiers probe for patterns induced by hyper-parameters, so that we can quantify how much, where, and when these are encoded through the optimization process. This provides a novel and complementary view for explainable AI, and we show how meta-classifiers can reveal a great deal of information about the training setup and optimization, by only considering a small subset of randomly selected consecutive weights. To promote further research on the weight space, we release the neural weight space (NWS) dataset -- a collection of 320K weight snapshots from 16K individually trained deep neural networks.

Motivation & Objective

  • To explore the structure of the neural weight space (NWS) as a high-dimensional representation of trained deep neural networks.
  • To investigate how hyper-parameters such as optimizer, initialization, and dataset influence the final weight configurations.
  • To develop a meta-classification framework that infers training setup from weight patterns, enabling reverse engineering of training history.
  • To release a large-scale, publicly accessible dataset of 320K weight snapshots from 16K trained CNNs for future XAI and meta-learning research.
  • To demonstrate that local weight subsets contain sufficient information to classify hyper-parameters, revealing where and how optimization encodes training choices.

Proposed method

  • Training 16,000 diverse CNNs across varied hyper-parameter combinations (dataset, optimizer, initialization, augmentation, filter size) to sample the NWS.
  • Representing each trained model as a point in the high-dimensional weight space, with weight snapshots collected at multiple training steps.
  • Training deep meta-classifiers (DMCs) to predict hyper-parameters from weight vectors, enabling inverse mapping from weights to training setup.
  • Introducing local meta-classifiers that analyze small, consecutive weight subsets to quantify where in the network hyper-parameters are encoded.
  • Using class activation maps and performance evaluation across model depth and training progress to visualize meta-classifier accuracy distribution.
  • Releasing the NWS dataset with training scripts to enable replication and extension of the study.

Experimental results

Research questions

  • RQ1How much information about the training setup is encoded in the weights of a deep neural network?
  • RQ2Where in the network architecture are the most distinguishing weight patterns for different hyper-parameters located?
  • RQ3How does the optimization process shape the weight space, and when during training do these patterns emerge?
  • RQ4Can a small subset of consecutive weights reveal the identity of key hyper-parameters like optimizer or initialization?
  • RQ5To what extent can meta-classifiers trained on weights alone distinguish between different training configurations across heterogeneous architectures?

Key findings

  • Initialization was identified as the most distinguishing characteristic of the weight space, with meta-classifiers achieving high accuracy in identifying it from weight patterns.
  • The optimizer had a strong and localized influence, particularly on bias weights in convolutional layers, which contributed significantly to distinguishing model configurations.
  • Weights closer to the input and output layers diverged faster from initialization than deeper, more hidden layers, indicating earlier and stronger optimization influence in these regions.
  • The dataset used for training had a measurable but less distinct footprint in the weight space compared to optimization techniques like learning rate schedule or optimizer type.
  • Local meta-classifiers achieved high performance on small weight subsets, demonstrating that a large amount of training setup information is encoded locally and can be extracted with minimal data.
  • The study revealed that filter size and activation function also left detectable imprints in the weight space, especially in early and middle layers, with performance varying by network depth.

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.