On the Internal Representations of Graph Metanetworks

Taesun Yeom, Jaeho Lee · DOI

TL;DR

This paper investigates the "black box" of Graph Metanetworks (GMNs)—models designed to learn directly from the weights of other neural networks. By analyzing internal representations, researchers discovered that GMNs develop features fundamentally different from standard image-processing networks and are significantly more sensitive to random initialization. This suggests that weight-space learning captures unique, complementary information that traditional visual learning misses.

Problem Statement: Understanding Weight-Space Learning

In the emerging field of weight space learning, models are fed the parameters (weights and biases) of another neural network rather than raw data like images. While architectures like Graph Metanetworks (GMNs) have achieved state-of-the-art results in tasks like predicting model accuracy, their internal representational logic has remained unknown. Furthermore, a puzzling performance gap exists: GMNs excel on simple datasets like MNIST but struggle with complex ones like CIFAR-10. This study seeks to understand the "internal life" of GMNs to explain these discrepancies.

Methodology

To peek under the hood, the authors compared GMNs against "General NNs" (standard MLPs and CNNs). To ensure a fair comparison, GMNs were fed Implicit Neural Representations (INRs)—small networks trained to represent specific images—so that both model types were ultimately classifying the same underlying data.

Experimental setup comparing GMNs (learning from weights) and General NNs (learning from images).

The study employed two primary analytical tools:

  1. Centered Kernel Alignment (CKA): A metric used to compare the similarity of hidden layer representations. A CKA near 1.0 indicates similar "thinking," while a low CKA suggests divergent feature learning.
  2. Normalized Hamming Distance (NHD): A measure of diversity in the models' final predictions.

Key Insights: The Representational Gap

The investigation revealed that GMNs operate on a fundamentally different level than traditional networks:

  • Sensitivity to Initialization: Standard CNNs or MLPs typically converge to similar internal representations regardless of random initialization. GMNs, however, are highly sensitive to their starting weights, resulting in diverse internal views of the same data.
  • Fundamental Divergence: The cross-architecture CKA between GMNs and CNNs is remarkably low (around 0.4). This confirms that GMNs are not just "CNNs for weights"; they are building a distinct internal map of the data.
  • Complementary Predictions: GMNs and standard NNs make different mistakes. The authors found samples that standard NNs consistently fail to classify, but GMNs correctly identify, suggesting that weight signals provide a perspective visual signals cannot capture.

Results and Analysis

The quantitative results across MNIST, Fashion-MNIST, and CIFAR-10 benchmarks highlight these differences.

Comparison of CKA and NHD metrics across GMN, MLP, and CNN architectures on various datasets.

As shown in the table above, standard networks (MLP ↔ CNN) maintain high internal similarity (>0.9), while comparisons involving GMNs show significantly lower scores (~0.4). While GMNs nearly matched MLP accuracy on MNIST (95.92% vs 96.13%), they lagged on CIFAR-10 (35.73% vs ~38%), indicating challenges in scaling weight-space learning to complex data.

Conclusion and Future Work

This research demonstrates that GMNs represent data in a way that is fundamentally complementary to traditional neural networks. While this unique perspective is a strength, the sensitivity to initialization and scaling issues remain hurdles. Future research could investigate "hybrid" models that combine weight-space and visual features to overcome the individual weaknesses of both approaches.

Summary updated

BibTeX
@inproceedings{yeom2025internal,
  author = {Taesun Yeom and Jaeho Lee},
  title = {{On the Internal Representations of Graph Metanetworks}},
  booktitle = {WSL @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=WAyD9ZPuk6},
}
Figure