From Optimization Dynamics to Generalization Bounds via Łojasiewicz Gradient Inequality

Fusheng Liu, Haizhao Yang, Soufiane Hayou, Qianxiao Li

Abstract

Optimization and generalization are central to statistical machine learning. This paper proposes a unified framework connecting these two aspects by analyzing generalization error based on the optimization trajectory under gradient flow. The core of this framework is the Uniform-Łojasiewicz Gradient Inequality (Uniform-LGI). By leveraging this property, we derive convergence rates and generalization bounds for various models, including linear regression, kernel regression, and neural networks, providing a theoretical basis for phenomena like "benign overfitting."

Introduction: Bridging the Optimization-Generalization Gap

A fundamental challenge in machine learning theory is explaining why highly overparameterized models, such as deep neural networks, generalize well despite having the capacity to overfit training data. Traditional measures like VC-dimension often yield vacuous bounds in these regimes. Recent efforts have focused on "implicit bias"—the tendency of optimization algorithms to find simple solutions. However, many existing theories are limited to specific regimes like the Neural Tangent Kernel (NTK).

This work introduces a more general approach by focusing on the actual trajectory of parameters during training, linked through the mathematical lens of the Łojasiewicz Gradient Inequality.

The Uniform-Łojasiewicz Gradient Inequality (Uniform-LGI)

The framework hinges on the Uniform-LGI, which characterizes the landscape of the loss function. In essence, it relates the magnitude of the gradient to the value of the loss: $$\|\nabla L(w)\| \geq c (L(w) - L^*)^{\theta}$$ where $\theta \in [1/2, 1)$ and $c > 0$. This condition ensures that the model continues to optimize efficiently as long as the loss is above its minimum.

Empirical Verification

To validate that this theoretical property holds in practice, the authors developed a finite-sample estimation algorithm (Algorithm 1) to track the LGI parameters $\theta$ and $c$ during training across different architectures.

Estimation of LGI parameters $\theta$ and $c$ for different architectures: (a) 2-layer MLP, (b) ResNet18, and (c) Wide-ResNet.

As shown in the figure above, standard architectures like MLPs and ResNets empirically satisfy the Uniform-LGI. Notably, as models become more complex (moving from a 2-layer MLP to ResNet18 and then to Wide-ResNet), the estimated exponent $\theta$ approaches $1/2$, which corresponds to faster convergence rates and smoother optimization landscapes.

From Training Paths to Generalization

By establishing that a model follows Uniform-LGI, the authors can bound the "path length" of the optimization trajectory—the total distance the parameters travel from their initialization. This path length is then used to constrain the Rademacher complexity of the resulting function class.

Key Theoretical Insights

  • Unified Theory of Benign Overfitting: The framework provides a consistent explanation for how models can fit noisy data perfectly while maintaining low test error across linear, kernel, and neural network models.
  • Bias-Variance Tradeoff over Time: The derived bounds reveal a dynamic tradeoff: as training progresses, the bias (training error) decreases, but the variance (model complexity, tied to path length) increases.
  • Non-Vacuous Bounds: For shallow networks, the framework produces generalization bounds that are numerically meaningful and decrease as the number of samples $n$ increases, aligning with empirical observations.

Results and Applications

The framework was applied to three distinct regimes:

  • Linear and Kernel Regression: The derived bounds match state-of-the-art results for high-dimensional linear regression, demonstrating the sharpness of the LGI-based approach.
  • Two-Layer Neural Networks: The authors obtained generalization estimates of $O(\sqrt{\log(n)/n})$. The empirical results suggest that deeper and wider networks optimize more "smoothly" (lower $\theta$), facilitating better generalization.

Conclusion and Future Directions

The Uniform-LGI serves as a powerful "missing link" between optimization dynamics and generalization performance. While this work focuses primarily on squared loss and gradient flow, future research could extend these results to other loss functions and the stochastic nature of SGD. This framework opens a new path toward a more complete theoretical understanding of deep learning.

Summary updated

BibTeX
@article{liu2022from,
  author = {Fusheng Liu and Haizhao Yang and Soufiane Hayou and Qianxiao Li},
  title = {{From Optimization Dynamics to Generalization Bounds via Łojasiewicz Gradient Inequality}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=mW6nD3567x},
}
Figure