From MLP to NeoMLP: Leveraging Self-Attention for Neural Fields

Miltiadis Kofinas, Samuele Papa, Efstratios Gavves
12/11/2024
cs.LGcs.AIstat.ML

Official code: mkofinas/neomlp (5 stars, last commit 2024-12-13).

Abstract

Neural fields (NeFs) have recently emerged as a state-of-the-art method for encoding spatio-temporal signals of various modalities. Despite the success of NeFs in reconstructing individual signals, their use as representations in downstream tasks, such as classification or segmentation, is hindered by the complexity of the parameter space and its underlying symmetries, in addition to the lack of powerful and scalable conditioning mechanisms. In this work, we draw inspiration from the principles of connectionism to design a new architecture based on MLPs, which we term NeoMLP. We start from an MLP, viewed as a graph, and transform it from a multi-partite graph to a complete graph of input, hidden, and output nodes, equipped with high-dimensional features. We perform message passing on this graph and employ weight-sharing via self-attention among all the nodes. NeoMLP has a built-in mechanism for conditioning through the hidden and output nodes, which function as a set of latent codes, and as such, NeoMLP can be used straightforwardly as a conditional neural field. We demonstrate the effectiveness of our method by fitting high-resolution signals, including multi-modal audio-visual data. Furthermore, we fit datasets of neural representations, by learning instance-specific sets of latent codes using a single backbone architecture, and then use them for downstream tasks, outperforming recent state-of-the-art methods. The source code is open-sourced at https://github.com/mkofinas/neomlp.

View on arXivView PDF

Code Implementations(1)

mkofinas/neomlpOfficial100%

Official source code for "From MLP to NeoMLP: Leveraging Self-Attention for Neural Fields". Preprint

50Dec 9, 20241 years ago

Similar Papers

Cite this paper

@article{kofinas2024from,
  title  = {From MLP to NeoMLP: Leveraging Self-Attention for Neural Fields},
  author = {Miltiadis Kofinas and Samuele Papa and Efstratios Gavves},
  year   = {2024},
  eprint = {2412.08731},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.08731v1}
}

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

Discussion