Injectivity of ReLU networks: perspectives from statistical physics

Antoine Maillard, Afonso S. Bandeira, David Belius, Ivan Dokmanić, Shuta Nakajima

TL;DR

This paper refutes a previous geometric conjecture regarding when random ReLU networks become injective. By mapping the problem to the statistical physics of "spin glasses," the authors prove a tighter upper bound and provide a new, highly precise prediction for the injectivity threshold using replica symmetry breaking theory.

What Problem Does This Paper Address?

In deep learning, we often want to know if a neural network is "injective"—meaning, can we uniquely recover the input from the output? This is vital for inverse problems (like image reconstruction) and for understanding the expressive power of architectures.

The authors focus on a single-layer ReLU network: $x \mapsto \text{ReLU}(Wx)$, where $W$ is a random $m \times n$ Gaussian matrix. In the high-dimensional limit where $n$ and $m$ go to infinity, there is a sharp threshold for the aspect ratio $\alpha = m/n$. Below this threshold, the network is almost certainly not injective; above it, it is.

A previous conjecture based on "integral geometry" (specifically the Euler characteristic) placed this threshold at $\alpha \approx 8.34$. This paper aims to show that this geometric intuition is incomplete and that tools from statistical physics provide a more accurate picture.

Methods

The paper bridges two seemingly unrelated fields:

  1. Statistical Physics of Disordered Systems: The authors show that the injectivity problem is equivalent to finding the "ground state energy" of a spherical perceptron, a classic model in the study of spin glasses. If the minimum "energy" (number of active ReLU units) is high enough, the network is injective.
  2. The Replica Method: To solve this physics model, they use the "replica trick," a powerful heuristic for calculating properties of systems with random interactions. They move through a hierarchy of complexity:
  3. Replica Symmetry (RS): Assumes the landscape of solutions is simple.
  4. Replica Symmetry Breaking (RSB): Accounts for a complex, "glassy" landscape where solutions cluster. They specifically derive results for 1-step (1-RSB) and Full-RSB.
  5. Gordon’s Min-Max Theorem: The authors use this rigorous mathematical tool to prove that the Replica Symmetric prediction is a valid upper bound, thereby formally disproving the earlier $8.34$ conjecture.
  6. Numerical Algorithms: They developed a custom iterative procedure to solve the daunting "Parisi equations" required for the Full-RSB prediction.

Datasets

The paper is theoretical and does not use standard empirical datasets like ImageNet. Instead, it relies on:

  • Synthetic Random Matrices: Weights are sampled from a standard Gaussian distribution $W_{\mu i} \sim \mathcal{N}(0, 1)$.
  • Reproducibility: The authors provided their JAX-based code in a public GitHub repository to allow others to verify their numerical threshold calculations.

Key Insights and Ideas

  • Injectivity as Energy Minimization: The core "aha" moment is realizing that non-injectivity happens when a network "collapses" too many inputs to the same output. In physics terms, this is like finding a configuration of particles that minimizes a specific energy function.
  • The Failure of Geometry: The previous Euler characteristic approach failed because it essentially "overcounts" certain bad regions of the space. It doesn't account for the fact that in high dimensions, these regions are extremely rare (large deviations).
  • The "Glassy" Nature of ReLU: The injectivity threshold isn't just a simple transition; it involves "symmetry breaking." This means the set of directions that break injectivity has a complex, fractal-like structure, which is why simple geometric heuristics fall short.

Key Results

The paper establishes a new hierarchy of bounds for the injectivity threshold $\alpha_{inj}$:

  • Refutation of Previous Work: They prove that $\alpha_{inj} \leq 7.65$, which is significantly lower than the previously conjectured $8.34$.
  • New Sharp Prediction: Using the most sophisticated physics tool (Full-RSB), they predict the true threshold is $\alpha_{inj} \approx \mathbf{6.698}$.
  • 1-RSB Approximation: They show that even a simpler 1-step symmetry breaking calculation gets very close ($\alpha \approx 6.716$).
  • Lower Bound: They provide a non-rigorous lower bound based on the "de Almeida-Thouless (dAT) criterion" at $\alpha \approx 5.32$.

Limitations and Future Work

  • Single Layer Focus: The rigorous proofs and detailed physics mapping are currently limited to single-layer networks. While they discuss extensions to deep networks, a sharp threshold for multi-layer systems remains an open challenge.
  • Heuristic Nature of Replicas: While the RS upper bound is proven rigorously, the Full-RSB "sharp" threshold remains a conjecture, as is common when using the replica method in physics.
  • The "Discrepancy" Mystery: While they prove the geometric approach is wrong, they leave open the exact mathematical reason why the Euler characteristic fails to capture the threshold correctly in this specific non-convex setting.

Summary updated

BibTeX
@inproceedings{maillard2024injectivity,
  author = {Antoine Maillard and Afonso S. Bandeira and David Belius and Ivan Dokmanić and Shuta Nakajima},
  title = {{Injectivity of ReLU networks: perspectives from statistical physics}},
  booktitle = {Applied and Computational Harmonic Analysis},
  year = {2024},
  doi = {10.1016/j.acha.2024.101736},
}
Figure