Flavors of Margin: Implicit Bias of Steepest Descent in Homogeneous Neural Networks

Nikolaos Tsilivis, Eitan Gronich, Julia Kempe, Gal Vardi

TL;DR

This paper provides a unifying theoretical framework for understanding the implicit bias of the entire family of steepest descent algorithms in deep homogeneous neural networks. The authors prove that these algorithms implicitly maximize an algorithm-dependent geometric margin, driving the network towards Karush-Kuhn-Tucker (KKT) points of a corresponding margin-maximization problem. This theory helps explain the practical success and inductive biases of popular adaptive optimizers like Adam and Shampoo.

What Problem Does This Paper Address?

Overparameterized neural networks excel at generalization despite having more than enough capacity to overfit training data. This mystery is often explained by "implicit bias"—the tendency of an optimization algorithm to inherently favor simpler, well-generalizing solutions even when the loss function doesn't explicitly demand it.

While a rich body of theory exists showing that standard Gradient Descent (GD) biases solutions toward the lowest $\ell_2$ norm of the weights, modern deep learning rarely uses standard GD. Instead, practitioners rely on adaptive optimizers like Adam or Shampoo. How do these non-Euclidean optimization algorithms behave in deep, non-linear networks? This paper addresses this gap by analyzing the implicit bias of the broader family of steepest descent algorithms under arbitrary norms.

Methods

The authors analyze steepest flow (steepest descent with an infinitesimal learning rate) in deep, non-linear, homogeneous neural networks trained with exponentially-tailed losses (like exponential or logistic loss). To rigorously handle non-differentiable architectures—such as networks using ReLU activations—they employ Clarke's subdifferentials.

The mathematical framework delivers two primary contributions:

  1. Margin Monotonicity: They prove that a soft version of an algorithm-dependent geometric margin increases monotonically once the network achieves perfect training accuracy.
  2. Asymptotic Convergence: They demonstrate that any limit point of the normalized training trajectory aligns with the direction of a KKT point of the corresponding margin-maximization problem.

Datasets

The authors validated their theoretical findings using two setups:

  • Synthetic Teacher-Student Task: Gaussian data passed through a sparse, one-hidden-layer "teacher" network with ReLU activations. This controlled environment allowed them to measure how initialization scale and algorithm choice causally impact generalization.
  • MNIST: A standard image classification dataset. The authors focused on binary classification tasks using specific digit pairs (e.g., '3' vs '6', and '2' vs '7') to study the trajectories of practical adaptive optimizers.

Key Insights and Ideas

  • Norm Determines the Flavor of Margin: The implicit bias of an optimizer is fundamentally tied to its geometry. For example, coordinate descent (associated with the $\ell_1$ norm) maximizes the $\ell_\infty$ margin, while sign gradient descent (associated with the $\ell_\infty$ norm) maximizes the $\ell_1$ margin.
  • Demystifying Adam and Shampoo: The paper elegantly connects popular adaptive methods to specific steepest descent geometries. Adam (without momentum and ignoring its precision parameter $\epsilon$) is equivalent to sign gradient descent. Shampoo (without momentum) corresponds to steepest descent under a modular spectral norm.
  • Early Dynamics Dominate Generalization: A fascinating experimental insight is that maximizing the theoretical margin in the late stages of training isn't a golden ticket to generalization. When the authors switched from GD to other algorithms after reaching perfect training accuracy, the final test accuracy changed very little. This suggests that early-stage optimization dynamics play a far more critical role in shaping generalization than late-stage margin maximization.

Key Results

  • Unifying Theorem: The paper successfully generalizes previous margin-maximization proofs (which only applied to standard gradient descent) to any steepest descent algorithm under an arbitrary norm.
  • Empirical Alignment: In teacher-student experiments, Coordinate Descent (CD), Gradient Descent (GD), and Sign Descent (SD) maximized their respective margins exactly as predicted by the theory (see the left panel of Figure 1).
Figure 1: Evaluation of steepest descent algorithms in a teacher-student setup. Left: Geometric margins (γ1, γ2, γ∞in Equation 13) over the course of training (average over 20 different seeds). Right: Final test accuracy vs final ℓ∞margin (γ∞). Each point in the 2d space corresponds to a different run (only showing runs that did not diverge). Larger points correspond to larger initialization scales α. The star points are produced by switching from GD to CD (red) or SD (green), right after the point of perfect train accuracy.
  • Adam's True Bias: On MNIST, the authors showed that under realistic training horizons, Adam behaves remarkably like Sign Descent by increasing the $\ell_1$ margin. This challenges older theories suggesting Adam shares the same asymptotic $\ell_2$ bias as GD, showing that the $\ell_2$ bias only kicks in at astronomically low loss values ($<10^{-7}$) rarely seen in practice.
  • Shampoo Maximizes Spectral Margin: For a two-layer network with a frozen second layer, Shampoo was empirically proven to achieve the largest spectral margin compared to GD and Adam, validating its connection to spectral steepest descent.

Limitations and Future Work

  • Infinitesimal Learning Rate: The analysis relies on steepest flow (zero step-size limit), which might miss discrete optimization phenomena like the "edge of stability."
  • Simplified Optimizers: To map Adam and Shampoo to steepest descent, the authors had to omit momentum and simplify certain hyperparameter behaviors (like Adam's $\epsilon$).
  • Homogeneous Restriction: The proofs require the network architecture to be mathematically homogeneous (e.g., ReLU networks without biases or skip connections). Extending these insights to non-homogeneous models remains an open frontier.

Summary updated

BibTeX
@inproceedings{tsilivis2025flavors,
  author = {Nikolaos Tsilivis and Eitan Gronich and Julia Kempe and Gal Vardi},
  title = {{Flavors of Margin: Implicit Bias of Steepest Descent in Homogeneous Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=BEpaPHDl9r},
}
Figure