Implicit Regularization Towards Rank Minimization in ReLU Networks

Nadav Timor, Gal Vardi, Ohad Shamir

Abstract

We study the conjectured relationship between the implicit regularization in neural networks, trained with gradient-based methods, and rank minimization of their weight matrices. Previously, it was proved that for linear networks (of depth $2$ and vector-valued outputs), gradient flow (GF) w.r.t. the square loss acts as a rank minimization heuristic. However, understanding to what extent this generalizes to nonlinear networks is an open problem. In this paper, we focus on nonlinear ReLU networks, providing several new positive and negative results. On the negative side, we prove (and demonstrate empirically) that, unlike the linear case, GF on ReLU networks may no longer tend to minimize ranks, in a rather strong sense (even approximately, for “most” datasets of size $2$). On the positive side, we reveal that ReLU networks of sufficient depth are provably biased towards low-rank solutions in several reasonable settings.

Introduction

A central mystery in deep learning is why overparameterized models—those with far more parameters than training data—generalize effectively instead of merely memorizing noise. The theory of implicit regularization suggests that gradient-based optimization naturally biases models toward "simple" solutions. In linear networks, this simplicity often manifests as rank minimization of weight matrices. However, extending this understanding to non-linear ReLU networks has remained an open challenge. This paper investigates whether this rank-minimization bias persists in the non-linear regime, uncovering both significant obstacles in shallow networks and a provable bias in deeper architectures.

Methods and Theoretical Framework

The study employs Gradient Flow (GF) analysis across two primary settings: regression with square loss and classification with exponentially-tailed losses (e.g., logistic or exponential loss). The authors distinguish between exact rank and stable rank (the ratio of the Frobenius norm to the spectral norm).

To analyze the dynamics, the authors focus on:

  1. Synthetic Size-2 Datasets: Minimal datasets used to construct definitive counterexamples for shallow networks.
  2. Small-scale Simulations: Empirical validation using 288 repetitions of training 2x2 weight matrix networks.
  3. Geometric Partitioning: Dividing the input space into regions where neurons are either "active" or "dead," allowing for a granular analysis of how ReLU non-linearities affect weight updates.

The ReLU Trap: Negative Results for Shallow Networks

In shallow (depth-2) ReLU networks, the non-linearity can actually impede rank minimization. Unlike linear networks where weights must align to fit data, ReLU neurons can specialize independently by being active for some data points and dead for others. This allows gradient flow to converge to full-rank solutions even when a perfectly good rank-1 solution exists.

Geometric regions used to analyze the failure of rank minimization in depth-2 ReLU networks.

As shown in Figure 2, the input space is partitioned into regions ($S, D, S_1, S_2$) based on neuron activation. The authors prove (Theorem 2) that for "most" datasets of size 2, gradient flow on depth-2 ReLU networks fails to converge to low-rank solutions, even with infinitesimal initialization. Empirical results confirm this, with stable ranks often clustering near full rank (2.0) rather than the rank-1 solutions found in linear counterparts.

Depth as a Simplifier: Positive Results

The study reveals that depth acts as a crucial regularizer. As networks become deeper, the mathematical pressure to minimize the total $\ell_2$ norm (in regression) or maximize the margin (in classification) forces weight matrices across different layers to align.

Key findings include:

  • Stable Rank Convergence: For deep networks, the average ratio between spectral and Frobenius norms approaches 1 as depth increases, indicating a bias toward stable rank-1 solutions.
  • Quantitative Bounds: The authors provide an explicit exponential bound showing that the bias toward simplicity strengthens as the network depth $k'$ exceeds the minimum required depth $k$ of the target function.
  • Norm Minimization: The results suggest that standard weight decay ($\ell_2$ regularization) does more than just keep weights small; in deep ReLU networks, it actively encourages low-rank structures.

Limitations and Future Work

While providing a significant step forward, the study has limitations. The positive results for deep networks assume convergence to a global minimum that also minimizes the $\ell_2$ norm—a condition not always met in practical gradient descent. Furthermore, the analysis is restricted to fully-connected (MLP) architectures. Future research is needed to determine if these rank-minimization biases extend to more complex architectures like Convolutional Neural Networks or Transformers, and whether other forms of "simplicity" are also implicitly regularized.

Summary updated

BibTeX
@inproceedings{timor2023implicit,
  author = {Nadav Timor and Gal Vardi and Ohad Shamir},
  title = {{Implicit Regularization Towards Rank Minimization in ReLU Networks}},
  booktitle = {ALT},
  year = {2023},
  url = {https://openreview.net/forum?id=jBVeFRS29W},
}
Figure