Skip to main content
QUICK REVIEW

[Paper Review] Equivariant Architectures for Learning in Deep Weight Spaces

Aviv Navon, Aviv Shamsian|arXiv (Cornell University)|Jan 30, 2023
Machine Learning in Materials ScienceMaterials Science5 citations
TL;DR

This paper introduces Deep Weight-Space Networks (DWSNets), a novel neural architecture that processes pre-trained MLPs directly from their weight and bias matrices by enforcing equivariance to the natural permutation symmetries of those weights. The method characterizes affine equivariant layers using pooling, broadcasting, and fully connected operations, enabling parameter-efficient learning and achieving state-of-the-art performance in tasks like generalization error prediction and INR classification.

ABSTRACT

Designing machine learning architectures for processing neural networks in their raw weight matrix form is a newly introduced research direction. Unfortunately, the unique symmetry structure of deep weight spaces makes this design very challenging. If successful, such architectures would be capable of performing a wide range of intriguing tasks, from adapting a pre-trained network to a new domain to editing objects represented as functions (INRs or NeRFs). As a first step towards this goal, we present here a novel network architecture for learning in deep weight spaces. It takes as input a concatenation of weights and biases of a pre-trained MLP and processes it using a composition of layers that are equivariant to the natural permutation symmetry of the MLP's weights: Changing the order of neurons in intermediate layers of the MLP does not affect the function it represents. We provide a full characterization of all affine equivariant and invariant layers for these symmetries and show how these layers can be implemented using three basic operations: pooling, broadcasting, and fully connected layers applied to the input in an appropriate manner. We demonstrate the effectiveness of our architecture and its advantages over natural baselines in a variety of learning tasks.

Motivation & Objective

  • To design a deep learning architecture capable of processing neural network weights directly in their raw matrix form.
  • To address the challenge of learning in deep weight spaces, which possess complex symmetry structures that hinder standard architectures.
  • To develop a principled framework that respects the permutation symmetries inherent in MLP weight matrices.
  • To enable downstream tasks such as model adaptation, pruning, and representation learning directly on weight space.

Proposed method

  • The architecture is built on DWS-layers—affine equivariant linear layers that respect the permutation symmetry of MLP weights.
  • These layers are characterized as block matrices mapping between specific weight and bias subspaces of the input network.
  • The layers are implemented using three core operations: pooling, broadcasting, and standard fully connected layers.
  • The network uses a stack of DWS-layers with pointwise nonlinearities, forming a deep architecture for weight-space processing.
  • The method ensures equivariance: permuting neurons in the input MLP results in a corresponding, predictable transformation of the output.
  • The architecture is parameter-efficient, with significantly fewer parameters than fully connected baselines due to structured weight sharing.

Experimental results

Research questions

  • RQ1What are the mathematical constraints on linear layers that are equivariant to the permutation symmetries of MLP weight matrices?
  • RQ2How can we efficiently implement such equivariant layers using basic deep learning operations?
  • RQ3Can a DWSNet effectively learn functions over the space of pre-trained MLPs, such as predicting generalization error or learning dense representations?
  • RQ4How does the architecture compare to standard baselines in tasks involving raw weight matrices?
  • RQ5To what extent can DWSNets generalize to other architectures like INRs or NeRFs?

Key findings

  • DWSNets achieved the lowest generalization error in predicting model performance from weights, outperforming all baselines on the CIFAR-10 and MNIST datasets.
  • The model learned a disentangled 2D dense representation of INRs that grouped models by frequency and amplitude, demonstrating interpretability.
  • Adding both weight-to-weight and bias-to-bias blocks improved performance over using only one, with the diagonal variant achieving near-optimal results.
  • Data augmentation and batch normalization significantly improved performance, increasing test accuracy from 77.20% to 85.71% on the MNIST INRs classification task.
  • The architecture demonstrated strong expressive power, capable of approximating forward passes of the input MLP through its learned layers.
  • Despite challenges in pruning and INR processing, the method showed promise with proper initialization and domain-aware regularization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.