Abstract
Deep Neural Networks (DNNs) are frequently criticized as "black boxes," where the internal logic and the impact of training configurations remain opaque. This study explores the "Neural Weight Space" (NWS) by investigating whether a model's training parameters can be reverse-engineered from its weights alone. By training meta-classifiers on a massive dataset of 16,000 CNNs, we demonstrate that weights contain a distinct "footprint" of the optimizer, dataset, and initialization scheme used during training. Our findings reveal that these footprints are often localized and detectable even from small subsets of the model, posing significant implications for model interpretability and privacy.
Introduction
Standard Explainable AI (XAI) techniques typically focus on how a model processes specific inputs. However, the weight space itself—the physical distribution of parameters resulting from training—remains poorly understood. Every decision made during the training pipeline, from the choice of activation function to the initialization strategy, shapes the final distribution of weights. This research treats every trained model as a single point in a high-dimensional space to determine if the training setup can be identified solely by inspecting these weights.
Methods
To investigate the NWS, we generated a comprehensive dataset consisting of 320,000 weight snapshots from 16,000 individually trained CNNs. These models were trained across five diverse datasets (MNIST, CIFAR-10, SVHN, STL-10, and Fashion-MNIST) with randomly sampled hyperparameters, including learning rate, batch size, and architectural variations.
We developed two primary types of "meta-classifiers":
- Global Meta-Classifiers: These include traditional SVMs trained on statistical features and Deep Meta-Classifiers (DMCs)—1D CNNs that operate directly on raw, vectorized weight sequences.
- Local Meta-Classifiers: DMCs designed to operate on tiny, random subsets (e.g., 5,000 consecutive weights) to test if training signatures are distributed or localized.
Key Results and Insights
Our experiments confirm that weights possess a "memory" of their training process. The DMC achieved high accuracy in identifying the initialization and activation functions, significantly outperforming baseline statistical methods.
Initialization and Activation Dominance
The choice of initialization (e.g., Glorot vs. Random Normal) emerged as the most distinguishing feature in the weight space. Even after extensive training, the "starting point" leaves a massive signature that meta-classifiers can identify with near-perfect accuracy. Similarly, activation functions leave a consistent "texture" across the entire network.
Spatial and Type-Specific Encoding
Information is not uniformly distributed across the network. We found that:
- Dataset information is most prominent in early convolutional layers, which act as feature extractors.
- Optimizer footprints are largely concentrated in the bias weights of convolutional layers.
- Local Encoding: A DMC can identify training properties by looking at just 5% of the weights, suggesting that hyperparameters impose a consistent statistical signature throughout the model.
Discussion and Privacy Implications
The ability to "fingerprint" a model has profound implications for AI security. If an attacker can identify the training dataset or proprietary pipeline from a black-box model's weights, it represents a significant privacy risk. Furthermore, the discovery that initialization is the most influential factor on final accuracy suggests that we might eventually be able to "learn" optimal initializations for specific tasks, potentially bypassing traditional training cycles.
Limitations and Future Work
This study focused on relatively small CNN architectures. Future research is required to determine if these weight-space signatures persist in massive architectures like Transformers or ResNets. Additionally, developing representations that account for the permutation invariance of neural networks could further enhance meta-classification accuracy.
Conclusion
By dissecting the neural weight space, we move closer to opening the black box of deep learning. The physical state of a network is not just a functional tool for inference, but a rich historical record of the choices made during its creation.
Summary updated