Characterizing Implicit Bias in Terms of Optimization Geometry

Suriya Gunasekar, Jason D. Lee, Daniel Soudry, Nathan Srebro

Abstract

In modern machine learning, overparameterized models often possess infinitely many global minima that fit training data perfectly. Despite this, standard optimization algorithms like SGD consistently find solutions that generalize well. This phenomenon, known as implicit bias, suggests that the optimizer itself "prefers" certain solutions. This paper provides a rigorous mathematical characterization of this bias across various optimization families, including Mirror Descent, Natural Gradient Descent, and Steepest Descent. We demonstrate that the geometry of the optimizer dictates the final solution: for regression, the bias is determined by the starting point and potential function, while for classification, it often converges to a maximum margin solution independent of initialization.

Introduction

The success of deep learning is often attributed to the implicit regularization provided by optimization algorithms. Even without explicit constraints like weight decay, models find solutions that generalize. The central question is: can we precisely describe these preferred solutions based on the "geometry" of the optimizer? This work analyzes how different distance metrics and potential functions influence the path taken through the parameter space and the final global minimum reached.

Optimization Geometries and Methodology

The authors provide a rigorous theoretical analysis of several generic optimization families defined by their underlying geometry:

  • Mirror Descent (MD): A generalization of gradient descent that uses a "potential function" $\psi$ (and associated Bregman divergence) to define distances.
  • Natural Gradient Descent (NGD): Updates based on a Riemannian metric tensor, often the Hessian of a potential function.
  • Steepest Descent (SD): Updates that move in the direction that decreases the loss most rapidly relative to a specific norm (e.g., $L_1, L_p$).
  • AdaGrad: An adaptive method that scales updates based on historical gradients.

The study utilizes analytic proofs for linear models and toy examples to visualize trajectories. These visualizations demonstrate how different algorithms diverge or converge to distinct points based on their geometric properties.

Visualizing trajectories of different optimization algorithms: (a) Mirror Descent with momentum, (b) Natural Gradient Descent, and (c) Steepest Descent.

The analysis distinguishes between two types of loss functions: Unique Finite Root Losses (e.g., squared loss for regression) and Strictly Monotone Losses (e.g., exponential or logistic loss for classification).

Key Insights: Regression vs. Classification

A fundamental finding is the divergence in behavior between regression and classification tasks.

Regression: Sensitivity to Initialization

In regression, the goal is to find a limit point where the weights stop. For Mirror Descent, the algorithm always converges to the solution closest to the starting point $w_{init}$ in terms of the Bregman divergence $D_\psi(w, w_{init})$. This result (Theorem 1) is remarkably robust, holding regardless of the step-size or the use of momentum.

Classification: Convergence to Margin

In classification, weights often grow to infinity to minimize the loss. Here, the focus shifts to the limit direction, which determines the decision boundary. For Steepest Descent with respect to a norm $\|\cdot\|$, the algorithm converges to the maximum margin solution defined by that same norm (Theorem 5). Crucially, this direction is often independent of the starting point and step-size, provided the step-size is sufficiently small.

The Case of AdaGrad and Matrix Factorization

The paper also highlights unique behaviors in adaptive and factorized models:

  • AdaGrad's Persistence: Unlike standard Gradient Descent, AdaGrad's implicit bias remains dependent on its initial conditions and step-size even in classification tasks (Theorem 6). This suggests that its "adaptivity" makes the final solution less predictable.
  • Matrix Factorization: When optimizing a matrix $W$ via factorization $W=UU^\top$, gradient descent naturally biases the model toward low nuclear norm (low rank) solutions (Theorem 7). This explains the inherent generalization capabilities of factorized models in tasks like collaborative filtering.

Conclusion and Limitations

This work provides a theoretical bridge between optimization geometry and the generalization properties of linear models. While these results offer a "segue" into deep learning, the primary limitation remains the focus on linear models. Neural networks introduce non-convexity, local minima, and saddle points that may complicate these geometric relationships. Future research aims to extend these characterizations to multi-layer and non-linear networks to determine if the "geometry-to-bias" principle remains a universal driver of generalization.

Summary updated

BibTeX
@inproceedings{gunasekar2018characterizing,
  author = {Suriya Gunasekar and Jason D. Lee and Daniel Soudry and Nathan Srebro},
  title = {{Characterizing Implicit Bias in Terms of Optimization Geometry}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure