Permutation Equivariant Neural Functional Networks

This direction is merged into another direction: permutation invariance (permutation symmetry). Its last version stays readable and citable here.

Version 1 of 162 papers85 conceptsfrozen 2026-10-04

If you take a standard neural network and swap the positions of two neurons in a hidden layer—reordering their incoming and outgoing weights accordingly—the mathematical function represented by that network remains exactly the same. To a computer, however, the raw weight tensors look completely different.

This "permutation symmetry" is a fundamental property of neural networks. It means that for any given function, there are astronomically many equivalent ways to represent it in parameter space. This redundancy makes treating neural network weights as "data" for meta-tasks—like predicting a model's accuracy or merging two models—notoriously difficult. Standard machine learning models that treat weights as flat vectors fail to recognize these symmetries, forcing them to waste capacity "learning" that shuffled versions of the same model are identical.

Recent research has converged on a solution: Neural Functional Networks (NFNs) and Deep Weight-Space Networks (DWSNets). These are specialized architectures designed to process the weights of other networks by baking in the geometric symmetries of weight space as an inductive bias.

The Geometry of Weight Space

The core challenge in weight-space modeling is that neural networks are not just lists of numbers; they are structured graphs. As Miltiadis Kofinas and colleagues argue in Graph Neural Networks for Learning Equivariant Representations of Neural Networks, neurons should be viewed as nodes and weights as edges.

When we process these weights, we require two properties:

  1. Invariance: If we shuffle the neurons of the input network, the output of our meta-model (e.g., a predicted accuracy score) should not change.
  2. Equivariance: If we shuffle the neurons of the input network, the output of our meta-model (e.g., a predicted pruning mask for those neurons) should shuffle in the exact same way.

Aviv Navon, Haggai Maron, and their collaborators formalized this in Equivariant Architectures for Learning in Deep Weight Spaces. They characterized the symmetry group of a multilayer perceptron (MLP) as a product of symmetric groups—one for each hidden layer. By constraining the linear layers of the meta-model to respect these groups, they created DWSNets that can "read" the weights of an MLP while remaining indifferent to how those neurons are indexed.

Building Symmetry into the Architecture

The mechanism for achieving this symmetry often draws from Deep Sets, a seminal work by Manzil Zaheer and Alex Smola. To make a linear layer permutation-equivariant, you apply a specific parameter-sharing constraint: all diagonal elements of the weight matrix share one value, and all off-diagonal elements share another.

Allan Zhou and colleagues extended this logic to create Permutation Equivariant Neural Functionals. They demonstrated that by treating each weight tensor in a target network as a multi-dimensional array and applying symmetry-preserving operations, they could build "Neural Functional Networks" that outperform standard models on tasks like predicting generalization or editing model behavior.

This approach has recently been scaled to more complex architectures. For example, Hoang V. Tran and Tho Tran Huu developed Equivariant Neural Functional Networks for Transformers, which account for the unique symmetries of multi-head attention, such as the fact that the order of attention heads is arbitrary.

Beyond Shuffling: Scaling and Signs

Permutation is not the only symmetry in neural networks. In networks using ReLU or Tanh activations, you can scale the weights of one layer by a constant and divide the next layer by the same constant without changing the output.

To handle this, researchers like Thieu Vo have proposed using Monomial Matrix Groups. In Equivariant Polynomial Functional Networks, they introduce layers that are equivariant not just to shuffling, but also to the scaling and sign-flipping of weights. Similarly, Ioannis Kalogeropoulos introduced Scale Equivariant Graph Metanetworks, showing that accounting for these magnitude symmetries significantly boosts the ability of a meta-model to generalize across different optimization paths.

Why Weight-Space Modeling Matters

Why go through the mathematical trouble of building these complex, symmetry-aware architectures?

  1. Model Alignment and Merging: In federated learning, different clients might end up with functionally similar models that have neurons in different orders. Equivariant Deep Weight Space Alignment (DEEP-ALIGN) uses equivariant networks to solve the NP-hard problem of aligning these weights, enabling faster and more accurate model merging.
  2. Zero-Shot Generalization: Hypernetworks that generate weights for other models benefit immensely from these symmetries. Xiao Lin and Susmit Jha showed in TeleLoRA that enforcing permutation symmetry allows a weight generator to produce effective adapters for LLMs it has never seen before.
  3. Privacy and Unlearning: Symmetries can be used as a defense. Mohammad M Maheri proposed WARP (Weight Teleportation), which uses these symmetries to "teleport" a model to a new, functionally equivalent location in parameter space, obfuscating the traces of data removal during machine unlearning.

By treating neural networks not as black-box vectors but as structured objects with inherent geometric rules, this research direction is turning the "messy reality" of trained weights into a rigorous and exploitable domain for meta-learning.

Papers in this version

Showing 60 of 62 papers.

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_permutation_equivariant_neural_functiona_ed383306,
  title = {Permutation Equivariant Neural Functional Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/permutation-equivariant-neural-functional-networks/rdr_ed383306e5874ff1abe201c943783126},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-02},
}

This exact version (version 1, frozen text):

@misc{lacuna_permutation_equivariant_neural_functiona_ed383306_v1,
  title = {Permutation Equivariant Neural Functional Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/permutation-equivariant-neural-functional-networks/rdr_ed383306e5874ff1abe201c943783126/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-02},
}