Geometry of Linear Neural Networks: Equivariance and Invariance Under Permutation Groups

Kathlén Kohn, Anna-Laura Sattelberger, Vahid Shahverdi · DOI · OpenReview

Introduction

In deep learning, architectural constraints like invariance and equivariance are fundamental. Invariance ensures that a model's output remains constant under specific transformations (e.g., image classification), while equivariance requires the output to transform in tandem with the input (e.g., image segmentation). While these properties are ubiquitous in models like Convolutional Neural Networks (CNNs), their underlying geometric structure has remained largely unexplored. This research provides a rigorous algebraic-geometric characterization of linear neural networks that possess these symmetries, revealing how they shape the landscape of learnable functions.

A two-layer linear autoencoder architecture used to study invariant and equivariant function spaces.

Theoretical Framework: Varieties and Symmetry

The set of functions representable by a linear network can be viewed as a determinantal variety—the set of all matrices with a specific rank. This study investigates how this variety changes when constrained by the symmetries of a permutation group, such as translations or rotations.

The authors employ tools from algebraic geometry and group theory to describe these symmetric subvarieties. By utilizing cycle decomposition and matrix diagonalization (the "realization base change"), they decouple symmetry constraints into independent blocks. This allows for a precise characterization of the weight-sharing patterns required to maintain symmetry. Furthermore, they connect the training process to the Eckart–Young theorem, showing that minimizing squared-error loss is equivalent to finding the closest low-rank matrix within these specific geometric varieties.

The structured weight-sharing matrix representing the algebraic requirements for symmetry within the network layers.

The Equivariance Component Problem

A central finding of this work is the geometric distinction between invariance and equivariance. While the space of invariant linear functions forms a single, unified geometric piece (an irreducible variety), the space of equivariant functions is fragmented into numerous irreducible components.

This fragmentation has significant architectural implications. A single linear neural network can only parameterize one of these components at a time. Consequently, designing an equivariant network involves an implicit choice of which geometric component to search. If the optimal function for a task resides in a different component, the network will be unable to learn it, regardless of training time. For a bottleneck rank of $r=99$ on shifted MNIST, the authors calculated that there are over 72 trillion real irreducible components of equivariant functions.

Empirical Results

To test these theoretical findings, the authors conducted experiments on a modified MNIST dataset featuring random horizontal shifts. They compared a standard dense autoencoder with approximately 155,000 parameters to a proposed equivariant autoencoder with only 5,500 parameters.

Despite having 28 times fewer parameters, the equivariant model achieved performance comparable to the dense model. This demonstrates the massive efficiency gains possible when the correct symmetries are hard-coded into the architecture. The study also introduces the "squared-error degree" to quantify the difficulty of reaching the global minimum on these symmetric landscapes.

Conclusion and Future Directions

This work establishes that weight-sharing is not merely a heuristic but a geometric necessity for symmetry. While currently limited to linear networks and cyclic permutation groups, it lays the groundwork for future exploration. Extending these geometric insights to non-linear networks—perhaps through "tropical geometry"—and to more complex or continuous groups remains a vital frontier for understanding the fundamental limits and capabilities of symmetric deep learning.

Summary updated

BibTeX
@article{kohn2025geometry,
  author = {Kathlén Kohn and Anna-Laura Sattelberger and Vahid Shahverdi},
  title = {{Geometry of Linear Neural Networks: Equivariance and Invariance Under Permutation Groups}},
  journal = {SIAM J. Matrix Anal. Appl.},
  year = {2025},
  doi = {10.1137/24m166053x},
}
Figure