Neural Functional Transformers

Allan Zhou, Kaien Yang, Yiding Jiang, Kaylee Burns, Winnie Xu +3 more
5/22/2023
cs.LGcs.AI

Official code: AllanYangZhou/nfn (95 stars, MIT, last commit 2024-01-01).

Abstract

The recent success of neural networks as implicit representation of data has driven growing interest in neural functionals: models that can process other neural networks as input by operating directly over their weight spaces. Nevertheless, constructing expressive and efficient neural functional architectures that can handle high-dimensional weight-space objects remains challenging. This paper uses the attention mechanism to define a novel set of permutation equivariant weight-space layers and composes them into deep equivariant models called neural functional Transformers (NFTs). NFTs respect weight-space permutation symmetries while incorporating the advantages of attention, which have exhibited remarkable success across multiple domains. In experiments processing the weights of feedforward MLPs and CNNs, we find that NFTs match or exceed the performance of prior weight-space methods. We also leverage NFTs to develop Inr2Array, a novel method for computing permutation invariant latent representations from the weights of implicit neural representations (INRs). Our proposed method improves INR classification accuracy by up to $+17\%$ over existing methods. We provide an implementation of our layers at https://github.com/AllanYangZhou/nfn.

View on arXivView PDF

Code Implementations(1)

AllanYangZhou/nfnOfficial100%
MIT

NF-Layers for constructing neural functionals.

957PythonFeb 27, 20232 years agoMIT

Cite this paper

@article{zhou2023neural,
  title  = {Neural Functional Transformers},
  author = {Allan Zhou and Kaien Yang and Yiding Jiang and Kaylee Burns and Winnie Xu and Samuel Sokota and J. Zico Kolter and Chelsea Finn},
  year   = {2023},
  eprint = {2305.13546},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13546v1},
  journal = {NEURIPS 2023 2023}
}

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/2305.13546.svg)](https://codeofpaper.com/paper/2305.13546)

Discussion