NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Implicit Regularization in Matrix Factorization

Suriya Gunasekar, Blake E. Woodworth, Srinadh Bhojanapalli, Behnam Neyshabur, Nati Srebro

Why do deep learning models generalize so well? Even when a network has millions more parameters than data points—meaning it could easily "memorize" the noise—it often finds a solution that works on new, unseen data.

In their NIPS 2017 paper, Gunasekar et al. dive into this mystery by looking at a simpler cousin of deep networks: Matrix Factorization. They reveal that the optimization algorithm itself (Gradient Descent) acts as a "hidden hand," steering the model toward simple, low-rank solutions even when no explicit constraints are provided.

The Problem of Underdetermined Systems

In many machine learning problems, we have more "unknowns" than "equations." This is called an underdetermined problem. In such cases, there are infinitely many ways to achieve zero training error. Some of these solutions are highly complex and generalize poorly, while others are simple and generalize well.

Standard practice is to add explicit regularization (like a Lasso or Ridge penalty) to force the model toward simplicity. However, deep learning models often generalize perfectly without these penalties. Researchers suspect that the optimization algorithm has an implicit bias toward simple solutions.

The authors tackle a specific version of this phenomenon: Matrix Reconstruction. If you represent a matrix $X$ as a product of two factors ($X = UU^\top$), does the act of optimizing the factor $U$ instead of $X$ change which solution you find?

The Factorization Approach and Main Conjecture

The authors compare two ways of solving a least-squares matrix problem:

  1. Direct Optimization: Minimizing the error directly on the entries of $X$.
  2. Factorized Optimization: Minimizing the error on the entries of $U$, where $X = UU^\top$.

Crucially, they study the Gradient Flow—the limit of gradient descent as the step size becomes infinitesimally small. They focus on the "full-dimensional" case where $U$ is a square matrix, meaning the factorization doesn't actually impose a hard rank constraint.

They propose a Main Conjecture: If you start with an initialization $U_0$ very close to zero and use a small step size, gradient descent on the factorized objective will implicitly converge to the minimum nuclear norm solution (the solution where the sum of the singular values is minimized, effectively a proxy for low rank).

Key Findings and Empirical Evidence

The paper validates this conjecture using a mix of synthetic and real-world data, including matrix completion tasks and the classic MovieLens 100k benchmark.

1. Low-Rank Recovery and Generalization

In experiments where the ground-truth matrix was rank-2, factorized gradient descent consistently found the rank-2 solution, even when the model was allowed to be rank-50.

Relative test error across different dimensions. Small initialization (red line) consistently achieves the lowest error, outperforming standard gradient descent (dotted orange).

On the MovieLens dataset, the factorized approach achieved a test error of 0.26, compared to 1.00 for the un-factorized version. This demonstrates that the implicit bias is powerful enough to act as a high-quality regularizer in real applications.

2. Nuclear Norm Minimization

The most striking evidence for their conjecture is the direct measurement of the nuclear norm during optimization. As the initialization size approaches zero, the nuclear norm of the gradient descent solution converges exactly to the theoretical minimum.

Nuclear norm of solutions found by different methods. Notice how gradient descent with small initialization (red line) perfectly matches the minimum nuclear norm (purple dotted line).

Why Does This Happen?

  • The Geometry of the Manifold: When you optimize $X$ directly, you are moving on a "flat" space. Gradient descent there simply finds the solution with the smallest Euclidean (Frobenius) norm. When you optimize $U$, you are moving on a "curved" manifold. This curvature biases the path toward solutions that are "sparse" in their eigenvalues (i.e., low-rank).
  • Initialization is the Trigger: The implicit regularization only kicks in if the initialization is very small. If you start with a large, random $U_0$, the algorithm behaves more like standard gradient descent and loses its bias toward the minimum nuclear norm.
  • Commutativity Matters: The authors mathematically proved their conjecture for the "commutative" case (where the measurement matrices share the same eigenvectors). For the general case, they provide a "time-ordered exponential" framework that explains why the bias persists.

Limitations and Future Work

While the empirical evidence is overwhelming, a full mathematical proof for the general non-commutative case remained an open challenge at the time of publication. Additionally, the implicit bias requires small step sizes and small initializations, which can lead to very slow convergence in practice.

Ultimately, by focusing on linear "two-layer" models, this paper provides a crucial stepping stone. Extending these insights to deep, non-linear networks—where the optimization manifold is vastly more complex—remains the next great frontier in understanding why deep learning works as well as it does.

Summary updated

BibTeX
@inproceedings{gunasekar2017implicit,
  author = {Suriya Gunasekar and Blake E. Woodworth and Srinadh Bhojanapalli and Behnam Neyshabur and Nati Srebro},
  title = {{Implicit Regularization in Matrix Factorization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=r1bybD-dZr},
}
Figure