Training invariances and the low-rank phenomenon: beyond linear networks

Thien Le, Stefanie Jegelka

Introduction

In deep learning, neural networks frequently generalize better than their massive parameter counts suggest they should. This phenomenon is largely attributed to implicit bias—the tendency of optimization algorithms like gradient descent to prefer simpler solutions. One prominent manifestation of this simplicity is the low-rank phenomenon. Previous theoretical work established that when training deep linear networks with logistic or exponential loss on linearly separable data, the weight matrices eventually collapse to rank-1 matrices.

However, real-world architectures are nonlinear (e.g., using ReLU activations) and non-homogeneous (e.g., incorporating skip connections like ResNets). Until now, a significant theoretical gap existed: while low-rank structures were empirically observed in ReLU networks, a rigorous mathematical proof explaining this behavior beyond the linear case was missing. This paper bridges that gap, extending the theoretical understanding of implicit bias to the final layers of a much wider class of nonlinear feedforward networks.

Theoretical Framework and Methodology

As a theoretical work, this paper does not introduce new datasets but rather provides mathematical proofs to explain empirical results previously observed on standard benchmarks like CIFAR-10 using architectures such as CNNs and ResNets. To tackle the complexity of nonlinear networks, the authors employ three primary theoretical tools:

1. The Decomposition Lemma: The authors prove that any ReLU-activated feedforward network can be decomposed into a multilinear function and a "tree network" with fixed weights (+1 or -1). This decomposition allows them to analyze the complex, nonlinear components of the network as if they were structured, multilinear systems.

2. Stable Sign Regime: The analysis focuses on a phase of training where the signs of the weights stop changing, known as directional convergence. In this regime, the ReLU activations become "stable," permitting more rigorous calculus using Clarke subdifferentials for non-smooth functions.

3. Vertex and Edge-wise Invariances: The authors identify specific quantities—related to the squared weights entering and leaving a neuron—that remain constant during gradient flow. By chaining these invariances across layers, they can precisely track how the singular values of weight matrices evolve relative to one another.

Key Insights and Results

The core of the paper's contribution lies in explaining how and where this low-rank collapse occurs in nonlinear networks.

The Role of Alignment and Submatrices

The low-rank behavior is driven by "alignment," where the singular vectors of adjacent layers begin to point in the same direction during gradient flow. A critical insight of this work is the distinction between local and global matrix properties. While the entire weight matrix of a ReLU layer might not become low-rank, specific submatrices—corresponding to neurons that are stably activated across all training examples—do exhibit this rank collapse.

Formalizing the Low-Rank Phenomenon

The authors formalize their findings through several key mathematical results:

  • Matrix-wise Invariances (Theorem 1): Provides a general formula demonstrating that for consecutive layers in CNNs, ResNets, and fully-connected networks, the difference between their Gram matrices remains invariant during training.
  • The Low-Rank Proof (Theorem 2): The central result mathematically demonstrates that for a wide class of nonlinear networks, if the weights grow toward infinity (as is typical with exponential or logistic loss), the matrices of the final few layers must become low-rank. The ratio between the operator norm (largest singular value) and the Frobenius norm (sum of all squared values) converges to a state implying a rank-1 structure.
  • A Necessary Constraint (Lemma 4): Interestingly, the authors provide a negative result showing that the low-rank phenomenon is not guaranteed for general ReLU layers if one examines the full matrix without considering activation patterns. This highlights the necessity of their submatrix approach.

Limitations and Future Directions

While this paper makes significant strides in understanding implicit bias, several open challenges remain. First, the proofs rely heavily on the "stable sign regime" assumption. While empirical evidence supports that weights eventually settle on a direction, proving that all networks reach this state under all conditions remains an open mathematical challenge.

Furthermore, the current theory is primarily developed for scalar-valued networks performing binary classification. Extending these proofs to multi-class problems with vector-valued outputs is a natural next step. Finally, the authors suggest that their low-rank findings are likely connected to "max-margin" theory—how networks maximize the distance between classes—but a formal, unified theory linking the two for nonlinear networks is still under construction.

Summary updated

BibTeX
@inproceedings{le2022training,
  author = {Thien Le and Stefanie Jegelka},
  title = {{Training invariances and the low-rank phenomenon: beyond linear networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=XEW8CQgArno},
}
Figure