Abstract
Optimization and generalization are two essential aspects of statistical machine learning. In this paper, we propose a framework to connect optimization with generalization by analyzing the generalization error based on the optimization trajectory under the gradient flow algorithm. The key ingredient of this framework is the Uniform-LGI, a property that is generally satisfied when training machine learning models. Leveraging the Uniform-LGI, we first derive convergence rates for gradient flow algorithm, then we give generalization bounds for a large class of machine learning models. We further apply our framework to three distinct machine learning models: linear regression, kernel regression, and two-layer neural networks. Through our approach, we obtain generalization estimates that match or extend previous results.
Introduction
In statistical machine learning, optimization (minimizing training error) and generalization (performance on unseen data) are traditionally treated as distinct challenges. While optimization is often analyzed through the lens of gradient descent dynamics, generalization is typically explained using statistical complexity measures like Rademacher complexity or VC dimension. However, empirical evidence suggests these two are deeply intertwined: the specific path an optimizer takes through the parameter landscape significantly influences the final model's generalization performance.
This paper introduces a unified framework to bridge this gap using the Uniform-Łojasiewicz Gradient Inequality (Uniform-LGI). By analyzing the trajectory of Gradient Flow, the authors demonstrate that the length of the optimization path serves as a powerful proxy for model complexity, allowing for the derivation of non-vacuous generalization bounds across various architectures.
The Uniform-LGI Framework
The core of the proposed framework is the Uniform-LGI condition. A model satisfies this property if the gradient norm is lower-bounded by a power of the loss value:
$$\|\nabla \mathcal{L}(w)\| \geq c(\mathcal{L}(w) - \min \mathcal{L})^\theta$$
where $c > 0$ and $\theta$ is the LGI exponent. This condition ensures that the loss landscape is sufficiently steep for the optimizer to progress efficiently.
From Path Length to Generalization
The authors prove that if the Uniform-LGI holds, the total distance traveled by the parameters from initialization—the "path length"—is finite and predictable. Because a shorter path effectively restricts the model to a simpler region of the parameter space, it naturally limits the model's capacity to overfit noise. By bounding this path length, the researchers use Rademacher complexity to derive concrete generalization bounds that account for the implicit bias of the optimization process.
Empirical Validation
To verify the prevalence of the Uniform-LGI in practice, the authors developed a numerical "Finite Sample Test." Their experiments across synthetic data, MNIST, and CIFAR-10 confirm that standard neural networks generally satisfy this condition during training.
As shown in the figure above, the LGI exponent $\theta$ varies across architectures. Notably, as networks become wider (e.g., moving from a standard MLP to Wide-ResNet), $\theta$ tends toward $1/2$. This observation explains why overparameterized models often exhibit faster, more linear convergence and better generalization.
Key Results and Insights
The framework provides a unified perspective on several critical phenomena in machine learning:
- Convergence Rates: The value of $\theta$ determines the speed of optimization. When $\theta = 1/2$ (the Polyak-Łojasiewicz case), the model achieves fast linear convergence. For $\theta > 1/2$, convergence is sublinear.
- Matching State-of-the-Art: For linear and kernel regression, the derived bounds match or extend existing specialized results, such as those for "benign overfitting," through a simpler, trajectory-based derivation.
- Neural Network Dynamics: For two-layer networks, the framework explicitly captures the bias-variance tradeoff. As training progresses, the training loss (bias) decreases, while the cumulative path length (a proxy for variance/complexity) increases.
Discussion and Future Work
While the framework provides a robust bridge between optimization and generalization, several areas remain for future exploration. The current analysis primarily focuses on continuous-time Gradient Flow; extending these results to the stochastic and discrete nature of Stochastic Gradient Descent (SGD) is a key next step. Additionally, while the LGI condition is empirically observed, proving its global validity in highly non-convex deep learning landscapes remains a theoretical challenge. Future work may also focus on analytically determining the constants $c$ and $\theta$ directly from model architectures and data distributions.
Summary updated