TL;DR
This paper takes a look inside the black box of Graph Metanetworks (GMNs)—neural networks trained to process the weights of other networks rather than raw data. By analyzing their internal features using Centered Kernel Alignment (CKA), the authors discover that GMNs learn a fundamentally different representation space compared to traditional networks like MLPs and CNNs, making them highly sensitive to random initialization but potentially complementary in how they solve tasks.
What Problem Does This Paper Address?
Weight space learning is an exciting new frontier in deep learning. Instead of training a model on standard data modalities (like images or audio), we train a "metanetwork" using the parameters (weights and biases) of other neural networks as inputs. Typically, these input networks are Implicit Neural Representations (INRs)—networks trained to map coordinates to signal values (e.g., reconstructing an image).
While state-of-the-art Graph Metanetworks (GMNs) excel at processing these neural graphs, they exhibit strange performance discrepancies. For instance, a GMN might classify MNIST-trained INRs perfectly but struggle significantly on CIFAR-10 INRs.
This raises a fundamental question: What are these metanetworks actually learning from raw network parameters? Until now, we haven't understood how the internal representations of GMNs compare to standard, data-driven neural networks.
Methods
To investigate, the authors design a controlled image classification experiment comparing two paradigms:
- General NNs (MLPs and CNNs): Predict image labels directly from raw pixel data.
- Graph Metanetworks (ScaleGMN): Predict image labels by processing a "neural graph" $v(\theta)$ constructed from the weights $\theta$ of a 3-layer SIREN network trained to reconstruct that same image.
To ensure a fair comparison, the general NNs are capped and analyzed at the exact epoch where their test accuracy matches the maximum accuracy achieved by the GMN.
The core tool used to compare their hidden features is Centered Kernel Alignment (CKA) with a linear kernel. CKA outputs a similarity score between 0 and 1, allowing researchers to quantitatively state whether two different network architectures are representing information in a similar way. They also use Normalized Hamming Distance (NHD) to measure how much the final predictions of the models diverge on a sample-by-sample basis.
Datasets
The experiments are conducted across three standard image benchmarks, converted into both standard image datasets and corresponding INR parameter datasets:
- MNIST
- Fashion-MNIST
- CIFAR-10
Key Insights and Ideas
- GMNs are highly sensitive to initialization: Traditional CNNs and MLPs are remarkably robust to random initialization; two identical architectures started with different random seeds will converge to nearly identical internal representations (CKA $\approx 0.99$). GMNs, however, do not. Different initializations lead to entirely different internal representation trajectories that never converge during training.
- A completely different representation space: Even when an MLP, a CNN, and a GMN achieve the exact same test accuracy on a dataset, the GMN's internal representations are fundamentally distinct. While MLPs and CNNs remain highly aligned with each other (CKA $\approx 0.95$), their alignment with GMNs is remarkably low (CKA $\approx 0.40$).
- Complementary prediction tendencies: Because GMNs look at "parameters" rather than "visual signals," they make different mistakes. The authors found instances where GMNs consistently classified an image correctly across various initializations while both the MLP and CNN completely failed. This suggests weight space learning captures unique, non-visual features that could complement standard vision models.
Key Results
The cross-architecture evaluation highlights just how much GMNs diverge from standard networks:
- Cross-Architecture CKA: The similarity between GMNs and MLPs/CNNs hovers between 0.38 and 0.49 across all datasets. Meanwhile, MLP-to-CNN similarity stays consistently above 0.94.
- Prediction Divergence (NHD): The prediction disagreement (NHD) between GMNs and general NNs is significantly higher (reaching up to 0.350 on CIFAR-10) than the disagreement between MLPs and CNNs (which tops out at 0.145).
Limitations and Future Work
The authors note a few limitations in this foundational study:
- Task Scope: The analysis is restricted to a single weight space learning task (INR classification) which doesn't fully exploit or reflect weight space equivariance properties.
- Architecture Variety: The study excludes other widely popular general network architectures, such as Vision Transformers (ViTs).
For future directions, the authors hope this exploration inspires new ways to utilize the distinct representation space of metanetworks to improve their robustness and performance across more complex downstream tasks.
Summary updated