Universal Neural Functionals

Allan Zhou, Chelsea Finn, James Harrison
2/7/2024
cs.LGcs.AI

Official code: AllanYangZhou/universal_neural_functional (56 stars, last commit 2024-02-15).

Abstract

A challenging problem in many modern machine learning tasks is to process weight-space features, i.e., to transform or extract information from the weights and gradients of a neural network. Recent works have developed promising weight-space models that are equivariant to the permutation symmetries of simple feedforward networks. However, they are not applicable to general architectures, since the permutation symmetries of a weight space can be complicated by recurrence or residual connections. This work proposes an algorithm that automatically constructs permutation equivariant models, which we refer to as universal neural functionals (UNFs), for any weight space. Among other applications, we demonstrate how UNFs can be substituted into existing learned optimizer designs, and find promising improvements over prior methods when optimizing small image classifiers and language models. Our results suggest that learned optimizers can benefit from considering the (symmetry) structure of the weight space they optimize. We open-source our library for constructing UNFs at https://github.com/AllanYangZhou/universal_neural_functional.

View on arXivView PDF

Code Implementations(1)

562PythonJan 23, 20242 years ago

Similar Papers

Cite this paper

@article{zhou2024universal,
  title  = {Universal Neural Functionals},
  author = {Allan Zhou and Chelsea Finn and James Harrison},
  year   = {2024},
  eprint = {2402.05232},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.05232},
  url    = {http://arxiv.org/abs/2402.05232v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05232.svg)](https://codeofpaper.com/paper/2402.05232)

Discussion