The Empirical Impact of Neural Parameter Symmetries, or Lack Thereof

Derek Lim, Moe Putterman, Robin Walters, Haggai Maron, Stefanie Jegelka · DOI

Abstract

Neural networks are traditionally characterized by parameter symmetries, such as the ability to permute hidden neurons without altering the network's output. While mathematically elegant, these symmetries create redundant, multi-modal optimization landscapes that complicate model merging, Bayesian inference, and weight-space learning. This paper explores "Asymmetric Networks"—architectures designed to intentionally break these symmetries. We demonstrate that removing symmetries leads to remarkably more convex loss landscapes, alignment-free model merging, and significantly improved performance in Bayesian deep learning.

Introduction

In a standard Multi-Layer Perceptron (MLP), hidden neurons are interchangeable. Swapping two neurons and their corresponding weights results in an identical mathematical function. This permutation symmetry, along with scaling symmetries in functions like ReLU, means that a single functional solution is represented by a vast number of distinct points in the weight space. This redundancy creates a "hall of mirrors" effect, making it difficult to average models (merging), estimate the posterior distribution of weights (Bayesian inference), or train metanetworks that process model weights as input. The authors investigate whether intentionally breaking these symmetries can simplify the deep learning landscape.

Methods

The authors propose two primary mechanisms for building Asymmetric Networks:

  1. W-Asymmetric (Weight-based): This method modifies the computation graph by "hardwiring" a subset of weights to random, constant values that remain fixed during training. By providing each neuron with a unique "anchor" of fixed connections, the neurons can no longer be freely permuted.
  2. $\sigma$-Asymmetric (Nonlinearity-based): Standard elementwise activation functions preserve symmetry. The authors introduce the Fixed Gated Linear Unit (FiGLU), defined as $\sigma(x) = \eta(Fx) \odot x$, where $F$ is a fixed random matrix. This mixing of dimensions breaks the independence required for neuron permutation.
Comparison of Standard, W-Asymmetric, and sigma-Asymmetric architectures. W-Asymmetric uses fixed weights (dotted lines), while sigma-Asymmetric uses the FiGLU nonlinearity.

Crucially, the authors provide theoretical proofs that these methods successfully remove symmetries while maintaining the "Universal Approximation" property. The implementation of W-Asymmetry varies by layer type; in linear layers, specific entries in the weight matrix are fixed, while in convolutional layers, either specific entries within filters or entire filters themselves can be fixed.

Visualization of symmetry-breaking in Linear and Convolutional layers. Fixed entries/filters are highlighted with black borders.

Experimental Results

Linear Mode Connectivity and Merging

Asymmetric networks exhibit Linear Mode Connectivity out of the box. Unlike standard networks, which require complex alignment algorithms (like Git-Rebasin) to interpolate between solutions, asymmetric models can be merged by simply averaging their weights. On MNIST, W-Asymmetric networks achieved a midpoint test loss barrier of -0.012 (essentially zero), significantly outperforming standard networks (0.188).

Bayesian Deep Learning

Symmetry breaking collapses the multi-modal posterior distribution. In deep models where standard Variational Inference (VI) typically fails, asymmetric versions succeed. For instance, a 16-layer standard MLP achieved only ~13% accuracy on CIFAR-10 using VI, whereas the W-Asymmetric version reached 55.16%.

Optimization Landscape and Metanetworks

The loss landscape of asymmetric networks appears more "convex-like." In a study of 300 models, 100% of W-Asymmetric ResNets showed a monotonic decrease in loss from initialization to the final solution, compared to only 26.3% for standard ResNets. Furthermore, training metanetworks to predict model accuracy from weights is significantly easier; the $R^2$ score for accuracy prediction jumped from 0.33 (Standard) to 0.59 (W-Asymmetric).

Discussion and Limitations

While breaking symmetry offers clear benefits for landscape interpretability and model manipulation, it comes with a "training tax." Asymmetric networks can require up to 6x more epochs to converge due to the added constraints on optimization. Furthermore, performance is sensitive to hyperparameters like the number of fixed weights ($n_{fix}$) and their variance ($\kappa$). Future work will explore the scalability of these principles to Large Language Models (LLMs) and their impact on model robustness.

Summary updated

BibTeX
@inproceedings{lim2024empirical,
  author = {Derek Lim and Moe Putterman and Robin Walters and Haggai Maron and Stefanie Jegelka},
  title = {{The Empirical Impact of Neural Parameter Symmetries, or Lack Thereof}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=pCVxYw6FKg},
}
Figure