Implicit Bias of Gradient Descent for Non-Homogeneous Deep Networks

Yuhang Cai, Kangjie Zhou, Jingfeng Wu, Song Mei, Michael Lindsey, Peter L. Bartlett

Abstract

We establish the asymptotic implicit bias of gradient descent (GD) for generic non-homogeneous deep networks under exponential loss. Specifically, we characterize three key properties of GD iterates starting from a sufficiently small empirical risk, where the threshold is determined by a measure of the network's non-homogeneity. First, we show that a normalized margin induced by the GD iterates increases nearly monotonically. Second, we prove that while the norm of the GD iterates diverges to infinity, the iterates themselves converge in direction. Finally, we establish that this directional limit satisfies the Karush-Kuhn-Tucker (KKT) conditions of a margin maximization problem. Prior works on implicit bias have focused exclusively on homogeneous networks; in contrast, our results apply to a broad class of non-homogeneous networks satisfying a mild near-homogeneity condition. In particular, our results apply to networks with residual connections and non-homogeneous activation functions, thereby resolving an open problem posed by Ji and Telgarsky (2020).

Introduction

In modern deep learning, models are frequently over-parameterized, possessing far more parameters than training data points. Despite the capacity to memorize noise, these models generalize remarkably well. This phenomenon is largely attributed to implicit bias: the tendency of optimization algorithms like Gradient Descent (GD) to converge toward specific "simple" or "large-margin" solutions that favor generalization.

Historically, rigorous mathematical proofs of implicit bias have been restricted to homogeneous networks—functions where scaling the weights by a factor $\alpha$ scales the output by $\alpha^M$. However, state-of-the-art architectures such as ResNets (which utilize skip connections) and models using non-homogeneous activations like Swish or GELU do not satisfy this property. This paper bridges the gap between theory and practice by establishing the implicit bias for a broad class of non-homogeneous models, resolving a significant open problem in the field.

Theoretical Framework: Near-Homogeneity

To analyze non-homogeneous architectures, we introduce the concept of near-$M$-homogeneity. This condition quantifies the deviation of a network from perfect homogeneity. The core intuition is that as the norm of the weights grows toward infinity—a standard occurrence when minimizing exponential loss—the "leading" homogeneous component of the network eventually dominates the function's behavior.

We further define a condition of strong separability, where the network reaches a state of sufficiently low empirical risk relative to its non-homogeneity error. To ensure the functions remain mathematically well-behaved during this growth, we utilize o-minimal structures (a framework from mathematical logic) and Kurdyka–Łojasiewicz (KL) inequalities. These tools allow us to prove that the direction of the weight vector converges to a fixed limit rather than oscillating indefinitely.

Key Insights and Results

1. Directional Convergence and Margin Maximization

While the magnitude of the weights $(\|\theta\|)$ diverges to infinity during training, we prove that the weights converge in direction. This directional limit is not arbitrary; it satisfies the Karush–Kuhn–Tucker (KKT) conditions for a specific margin maximization problem. Essentially, the network implicitly optimizes to become as confident as possible on the training data, maximizing the distance between the decision boundary and the data points.

2. Margin Improvement and Convergence Rates

For both Gradient Flow (continuous time) and Gradient Descent (discrete steps), we demonstrate that a "modified margin" increases nearly monotonically. We establish specific asymptotic rates for the training process:

  • Loss Decay: The empirical risk decreases at a rate of $\mathcal{L} \approx 1/t$.
  • Weight Growth: The weight norm grows at a rate of $\|\theta\| \approx \log t^{1/M}$.

3. Architectural Generality

Our framework is modular and applies to a wide variety of architectures. By providing "composition rules," we show that if individual layers satisfy near-homogeneity, the entire deep stack remains near-homogeneous. This allows our results to cover:

  • Multi-Layer Perceptrons (MLPs)
  • VGG-style networks
  • Residual Networks (ResNets) without batch normalization
  • DenseNets

Discussion and Future Work

This work provides a theoretical foundation for understanding why non-homogeneous architectures generalize well. By showing that the "homogenized" version of a complex model determines its implicit bias, we provide a path forward for analyzing modern deep learning components.

However, some challenges remain. Current theory does not yet account for Batch Normalization or Softmax Attention (central to Transformers), as these operations do not currently fit the definition of near-homogeneity. Additionally, while we prove that a two-layer residual network can reach the required "strong separability" state from zero initialization, proving this for deeper architectures remains an open challenge for the community.

Summary updated

BibTeX
@inproceedings{cai2025implicit,
  author = {Yuhang Cai and Kangjie Zhou and Jingfeng Wu and Song Mei and Michael Lindsey and Peter L. Bartlett},
  title = {{Implicit Bias of Gradient Descent for Non-Homogeneous Deep Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ruSU7xtH6v},
}
Figure