English

Graph Neural Networks for Learning Equivariant Representations of Neural Networks

Machine Learning 2024-07-24 v3 Artificial Intelligence Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2403.12143,
  title  = {Graph Neural Networks for Learning Equivariant Representations of Neural Networks},
  author = {Miltiadis Kofinas and Boris Knyazev and Yan Zhang and Yunlu Chen and Gertjan J. Burghouts and Efstratios Gavves and Cees G. M. Snoek and David W. Zhang},
  journal= {arXiv preprint arXiv:2403.12143},
  year   = {2024}
}

Comments

In ICLR 2024. Source code: https://github.com/mkofinas/neural-graphs