Permutation equivariant method generates neural network weights without alignment
Permutation-Equivariant Flow Matching for Alignment-Free Neural Weight Generation
Machine Learning
Summary
Neural networks are defined by many parameters, but swapping the order of hidden neurons creates different-looking sets of parameters that actually do the same job. This makes it hard to learn from collections of trained networks. The authors propose a method that naturally handles these swaps without needing to line up neurons first. Their approach can generate new networks that perform well on various tasks and architectures, even predicting useful networks for unseen designs. This shows a new way to generate neural networks more flexibly and efficiently.
What this means in practice
- •For machine learning engineers: Produce new neural network models without costly neuron alignment, improving model generation across diverse architectures and tasks.
- •For data scientists: Generate task-specific neural networks for domain-shift problems by conditioning on task and architecture without retraining from scratch.
Authors
Arkadi Piven, Yam Eitan, Guy Bar-Shalom, Fabrizio Frasca, Daniel Cremers, Thomas Dagès, Ron Kimmel, Haggai Maron
Abstract
A trained neural network can be represented by a parameter vector in high dimensions. Learning distributions over these vectors enables the generation of new models across various tasks and architectures. A central challenge is permutation symmetry: permuting hidden neurons can produce distant parameter vectors representing the same function. This introduces variations that a generative model must account for when learning from trained networks. Existing methods typically address this using networks derived from a common base model or costly approximate neuron alignment. We instead parameterize a flow-matching velocity field with a permutation-equivariant Graph Meta Network, enabling direct learning from independently trained networks without alignment. Extensive experiments show that our method closely reproduces the joint statistics of accuracy, functional similarity, and weight similarity of independently trained collections, providing evidence of generation beyond checkpoint memorization. A single conditional model also generates task-specific networks on heterogeneous architectures and generalizes to unseen hidden-width configurations. On a tabular domain-shift task, intermediate conditioning produces individual networks with performance comparable to logit ensembles across both domains. Taken together, our results show how permutation equivariance enables learning from diverse collections of independently trained networks without permutation alignment.