The Symmetries of Three-Layer ReLU Networks

Johanna Marie Gegenfurtner, Moritz Leo Grillo, Guido MontufarNeurIPS 2026

TL;DR

We have long known you can swap neurons or rescale weights in a neural network without changing the function it computes. This paper reveals that when you stack ReLU layers, entirely new "hidden" symmetries emerge as deeper layers mask the geometric kinks created by earlier ones. By mapping out the exact mathematical rules of these redundancies for three-layer bottleneck networks, the authors give us a fast, polynomial-time test to tell if two completely different sets of weights are secretly doing the exact same thing.

What Problem Does This Paper Address?

Neural networks are notoriously redundant: wildly different weight configurations can produce the exact same input-output map. Mathematicians call the set of all parameters that realize the exact same function a fiber, and the transformations that move you around inside a fiber are symmetries. Understanding these fibers isn't just an abstract puzzle—symmetries warp the loss landscape, create flat minima, and dictate which solutions gradient descent can actually reach.

For shallow, single-hidden-layer ReLU networks, the story is pretty much settled: for generic weights, the only ways to get the exact same function are the classic global symmetries—permuting neurons within a layer, or scaling incoming weights up while scaling outgoing weights down.

Once you add a second hidden layer, however, the picture gets murky. Composing piecewise-linear layers creates subtle geometric interactions. Until now, a complete map of all parameters that realize a given function in deeper ReLU networks—beyond trivial permutations and rescalings—remained an open mystery.

Methods

Instead of staring at raw weight matrices, the authors translate ReLU networks into polyhedral geometry. Every ReLU neuron slices the input space with a hyperplane (its activation boundary, or "kink"), partitioning space into regions where the network acts purely as an affine-linear map. By tracking these kinks and how much the gradient jumps across them, a function is uniquely captured by a weighted hyperplane arrangement.

Building on this standard geometric view, the authors introduce two novel analytical steps:

  1. Orthant Layerwise Analysis: Because the output of any ReLU layer has only non-negative numbers, subsequent layers only ever see the non-negative orthant ($\mathbb{R}^d_{\ge 0}$). The authors characterize one-hidden-layer fibers restricted to this orthant. Here, some neurons never hit zero on the valid domain—they act purely linearly—allowing them to absorb and compensate for orientation flips in the nonlinear neurons.
  2. Compositional "Hiding" Mechanics: Extending to three-layer bottleneck networks (where the first hidden layer is no wider than the input, $n_1 \le d$), they track whether first-layer kinks survive through the second layer. If a first-layer hyperplane intersects the active region of a second-layer neuron, it remains "visible" and locked in place; if the second layer is inactive there, the hyperplane gets hidden, unlocking new continuous and discrete parameter symmetries.
Figure 1: Left: Illustration of Theorem 2. The orange hyperplanes correspond to first-layer neurons, and the cyan bent hyperplane to a second-layer neuron. The portions of the first-layer hyperplanes that intersect the active region of the second-layer neuron are highlighted in green. Right: Illustration of sign-flipping mechanism. The region R is shown in yellow. Hyperplanes of nonlinear neurons that are active on R are shown in red, and those that are inactive in blue. A dead neuron is shown as a dashed, and a linear neuron as a solid purple plane. If the orientation of nonlinear neurons is reversed, this must be compensated by a corresponding change in the linear neurons, as described in (1).

Datasets

Not discussed in the paper. (This is a purely theoretical and algorithmic work analyzing the mathematical properties of neural network parameter spaces.)

Key Insights and Ideas

  • Deeper layers play hide-and-seek with geometry: If every neuron in the second hidden layer has a positive weight for first-layer neuron $j$, and non-positive weights/biases everywhere else, it hides hyperplane $j$. Because the second layer is turned off where neuron $j$ kinks, you can continuously slide hyperplane $j$ back and forth and exactly cancel the effect by shifting the second-layer biases! If the second hidden layer is a single neuron ($n_2 = 1$), you also get a discrete group of symmetries that "flip" the other hyperplanes.
  • Identifiability comes down to simple sign patterns: You don't need to solve complex equations to know if a generic three-layer bottleneck network has unique weights (up to permutation and scaling). It is non-identifiable if and only if the second-layer weight/bias matrix $[W^{(2)}, b^{(2)}]$ has a row of all negatives (a dead neuron), a row of all positives (a linearly acting neuron), or a column that is positive while everything else is negative (a hidden hyperplane).
  • Redundancy is an emergent, global property: In deep polynomial networks, if layer pairs $(1,2)$ and $(2,3)$ are identifiable, the whole 3-layer stack is identifiable. The authors prove this fails for ReLU networks! You can chain together layers where every consecutive pair has unique weights, yet the full composition $f_3 \circ f_2 \circ f_1$ suddenly develops redundancies.
  • Not all symmetries create conservation laws: Continuous symmetries often create "conserved quantities" during gradient flow (like physics' Noether's theorem). While symmetries from linearly acting neurons do induce local conservation laws on orthants of parameter space, the continuous translation symmetries from hidden hyperplanes surprisingly do not.

Key Results

  • Complete Fiber Characterization & Dimension Formulas: The authors provide exact semi-algebraic equations and dimension formulas for generic fibers in three-layer bottleneck networks ($n_1 \le d$). For instance, in the layerwise orthant setting, fiber component dimensions scale quadratically as $(n - k)^2$ or $m^2 + m + d$ depending on output dimension $m$, input $d$, and number of active kinks $k$.
  • Polynomial-Time Equivalence Algorithm: Deciding whether two ReLU networks compute the exact same function is computationally hard in general. Yet, using their sign-pattern rules and hyperplane representations, the authors construct a polynomial-time algorithm (Algorithm 1) that decides whether $f_\theta = f_\eta$ for generic bottleneck parameters.
  • Volume of Identifiable Parameters: They bound the fraction of parameter space that is identifiable within any ball around the origin, showing it approaches $1$ exponentially fast as hidden widths grow: bounded below by $1 - n_2 2^{-n_1} - n_1 2^{-n_2 n_1}$ and above by $(1 - 2^{-(n_1+1)})^{n_2}$.

Limitations and Future Work

The completeness of this symmetry catalog relies on two main guardrails: generic parameters (avoiding freak algebraic cancellations or overlapping hyperplanes) and the bottleneck assumption ($n_1 \le d$).

When the first layer is wider than the input ($n_1 > d$), its output no longer fills the clean non-negative orthant, instead forming a complex union of lower-dimensional polyhedra. This causes an exponential blow-up in relevant activation patterns. Combined with non-localizability in deeper networks ($L > 3$), the authors note their results likely sit right on the computational tractability boundary—pushing much further runs straight into NP-hardness barriers for deciding ReLU equivalence. For future work, they suggest exploring the topological properties of these fibers, such as counting their connected components.

Summary updated

Abstract

We develop a framework for analyzing parameter symmetries in deep ReLU networks and obtain a complete characterization of the generic parameter fibers for three-layer bottleneck architectures. Our approach provides explicit semi-algebraic descriptions of these fibers and yields a polynomial time algorithm for deciding functional equivalence of two parameters. The symmetries include discrete and continuous transformations arising from layer composition, and depend on whether deeper layers hide or preserve geometric structure from preceding layers. Finally, we show that some of these symmetries induce local conservation laws along gradient flow, while others do not.
BibTeX
@inproceedings{gegenfurtner2026symmetries,
  author = {Johanna Marie Gegenfurtner and Moritz Leo Grillo and Guido Montufar},
  title = {{The Symmetries of Three-Layer ReLU Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jEWygfjB4I},
}
Figure