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

Kathlén Kohn, Anna-Laura Sattelberger, Vahid Shahverdi

TL;DR

This paper applies algebraic geometry to characterize linear neural networks that are invariant or equivariant under permutation groups (such as image rotations or translations). It reveals a striking geometric difference: while invariant linear functions form a single smooth geometric space that a single network can learn, equivariant functions split into multiple distinct geometric components, meaning no single network architecture can parameterize them all simultaneously.

What Problem Does This Paper Address?

Imposing symmetries—like translation invariance in convolutional networks—is a cornerstone of modern deep learning. It drastically reduces parameter counts, saves memory, and improves generalization. However, the fundamental geometric properties of these symmetric function spaces remain poorly understood, even for simple linear networks.

The authors address this gap by studying the exact geometry of linear networks (specifically autoencoders) constrained by permutation groups. They explore how the width of a network's bottleneck layer (its rank) interacts with group symmetries, answering fundamental questions about how to design, parameterize, and optimally train these networks.

Methods

The authors combine tools from algebraic geometry, group representation theory, and matrix calculus:

  • Determinantal Varieties: A fully-connected linear network with a bottleneck layer of width $r$ parameterizes matrices of rank at most $r$. Mathematically, this space is known as a determinantal variety (illustrated generally in Figure 1).
  • Cycle Decomposition & Base Changes: To analyze permutation symmetries, the authors decompose permutations into disjoint cycles and apply specific linear base changes (using complex Vandermonde matrices and their real counterparts) to block-diagonalize the network's weight matrices.
  • Analytical Optimization: They prove that minimizing the squared-error loss on these symmetric networks can be solved globally and analytically using Singular Value Decomposition (SVD) via the Eckart-Young theorem, completely bypassing the need for gradient descent and avoiding local minima.
Figure 1: A fully-connected network of depth 2.

Datasets

The authors evaluate their theoretical findings using the MNIST dataset of handwritten digits (60,000 training images, 10,000 test images, resized to $28 \times 28$ pixels). To test translation equivariance, they modify the dataset by introducing random horizontal shifts of up to six pixels.

Key Insights and Ideas

  • The Geometry of Equivariance Splits: While invariant linear functions form a single irreducible geometric variety, equivariant linear functions break apart into multiple irreducible components. For example, enforcing $90^\circ$ rotation equivariance on a simple $3 \times 3$ image results in 5 distinct real geometric components.
  • Architectural Implications: Because the equivariant space is reducible, a single linear network architecture can only parameterize one component at a time. This means network designers cannot simply build a "one-size-fits-all" equivariant network; they must explicitly choose which geometric component to target.
  • Symmetry Dictates Matrix Structure: By changing to a Fourier-like basis, the weight matrices of equivariant networks are forced into highly constrained block-diagonal forms, where each block behaves like a smaller independent matrix, as captured in Matrix Structure.
Matrix Structure

Key Results

  • Exact Geometric Formulas: The paper provides exact mathematical formulas for the dimension, degree, and singular loci of both invariant and equivariant linear network spaces.
  • Massive Parameter Reduction on MNIST: For horizontal translations on $28 \times 28$ images with a bottleneck rank of $r=99$, the equivariant space possesses an astronomical 72,425,986,088,826 real components.
  • By analyzing the data's energy distribution, the authors selected the component corresponding to low-frequency Fourier modes. Their resulting equivariant autoencoder achieved a test loss of 0.0082 using just 5,544 parameters—a nearly 28x reduction compared to a standard dense network, which achieved a loss of 0.0057 but required 155,232 parameters.

Limitations and Future Work

  • Limited to Linear Networks: The entire geometric framework relies on the linearity of the network layers. Real-world deep learning relies heavily on non-linear activations (like ReLU). The authors propose using tropical geometry as a promising avenue to extend this work to non-linear regimes.
  • Cyclic Group Restriction for Equivariance: While the characterization of invariance works for any arbitrary permutation group, the characterization of equivariance is restricted to cyclic groups. Extending this to non-cyclic or continuous groups remains an open challenge.
  • The Component Selection Problem: For high-dimensional data, choosing the "best" equivariant component out of trillions of possibilities is incredibly difficult. While this paper uses data frequency energy as a heuristic, a generalized, automated selection strategy is still needed.

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