Graph Neural Networks for Learning Equivariant Representations of Neural Networks
About
Neural networks that process the parameters of other neural networks find applications in domains as diverse as classifying implicit neural representations, generating neural network weights, and predicting generalization errors. However, existing approaches either overlook the inherent permutation symmetry in the neural network or rely on intricate weight-sharing patterns to achieve equivariance, while ignoring the impact of the network architecture itself. In this work, we propose to represent neural networks as computational graphs of parameters, which allows us to harness powerful graph neural networks and transformers that preserve permutation symmetry. Consequently, our approach enables a single model to encode neural computational graphs with diverse architectures. We showcase the effectiveness of our method on a wide range of tasks, including classification and editing of implicit neural representations, predicting generalization performance, and learning to optimize, while consistently outperforming state-of-the-art methods. The source code is open-sourced at https://github.com/mkofinas/neural-graphs.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | MNIST (test) | Accuracy91.4 | 882 | |
| Image Classification | Fashion MNIST (test) | Accuracy68 | 568 | |
| Classification | CIFAR10 (test) | Accuracy36.04 | 266 | |
| INR classification | F-MNIST Implicit Neural Representations (test) | Accuracy68 | 15 | |
| Weight-space INR classification | MNIST (test) | Test Accuracy91.4 | 13 | |
| INR Dilation | MNIST INR | MSE2.06 | 8 | |
| INR classification | CIFAR-10 Implicit Neural Representations (test) | Accuracy36.04 | 7 | |
| INR classification | Augmented CIFAR-10 Implicit Neural Representations (test) | Accuracy45.7 | 7 | |
| Generalization prediction | SmallCNN Zoo CIFAR-10-GS Tanh (test) | Kendall's Tau0.934 | 6 | |
| Generalization prediction | SmallCNN Zoo SVHN-GS Tanh (test) | Kendall's Tau0.862 | 6 |