Stochastic linear optimization never overfits with quadratically-bounded losses on general data

Matus Telgarsky

Abstract

Modern machine learning practice often relies on unconstrained optimization algorithms like Stochastic Gradient Descent (SGD) that generalize remarkably well without explicit regularization or projections. This paper provides a unified mathematical framework using a "coupling argument" to prove high-probability test error bounds for these methods. It demonstrates that for quadratically-bounded losses, algorithms like Mirror Descent and Temporal Difference learning are implicitly biased toward low-norm solutions, effectively "procrastinating" before moving toward high-norm, overfit regions. This theory holds across diverse data distributions, including heavy-tailed and non-IID settings.

Introduction

In machine learning theory, a significant gap exists between empirical practice and provable guarantees. While simple algorithms like Stochastic Gradient Descent (SGD) generalize well without "safety rails" such as weight penalties or bounded projections, classical proofs often rely on these constraints to prevent models from overfitting or diverging. Matus Telgarsky’s paper, "Stochastic linear optimization never overfits with quadratically-bounded losses on general data," bridges this gap by introducing a powerful new mathematical framework. It offers a unified proof technique showing that for a wide class of problems, unconstrained iterative methods are implicitly biased toward high-performance, low-norm solutions.

The Challenge of Unconstrained Optimization

Standard optimization theory typically mandates either projecting weights back into a bounded set or regularizing the objective function to ensure generalization. However, modern deep learning frequently bypasses these steps. Furthermore, many existing theoretical bounds are "in expectation," describing average behavior rather than providing "high probability" guarantees that the algorithm will succeed in almost every run. The central challenge addressed here is proving that an unconstrained algorithm will not overfit rare data points or wander toward infinite weights. Telgarsky focuses on quadratically-bounded losses—including squared and logistic loss—to show that the algorithm's own dynamics act as an implicit constraint.

A Unified Coupling-Based Proof Technique

The core contribution is a single coupling-based proof technique. The intuition relies on two main concepts:

  1. The "Ghost" Iterate: The proof constructs a hypothetical "projected" version of the algorithm (the ghost) that remains within a safe radius of a high-performance reference solution.
  2. The Coupling: It then proves that, with high probability, the actual unconstrained algorithm behaves identically to this ghost version.

Because the loss functions are quadratically bounded, gradients do not grow excessively fast. This leads to a phenomenon the paper calls "procrastination": the algorithm spends a significant amount of time exploring low-norm regions with low risk before it ever considers moving toward high-norm solutions that might overfit. This technique is applied to both Stochastic Mirror Descent (SMD) and Temporal Difference (TD) learning, providing the first high-probability analysis for TD without projections.

Synthetic Validation and Implicit Bias

To validate the theory, the paper employs synthetic illustrative examples rather than standard benchmarks. These examples highlight how the algorithm's dynamics provide implicit regularization.

SGD paths for squared and logistic loss on data with likely and rare points.

As seen in Figure 1, the algorithm initially ignores rare data points to focus on low-norm solutions that satisfy the majority of the data. This "lazy" behavior ensures that the model finds "good enough" solutions with small norms first, rather than rushing to a global optimum that might have an infinite norm.

Visualization of SGD path distributions and behavior on spherical data.

Figure 2 further explores these dynamics through histogram counts of SGD paths and behavior on spherical data. In the spherical case, where the data is separable but the margin is infinitesimally small, the proposed bounds still hold, whereas classical margin-based bounds often fail.

Key Theoretical Results

The paper provides several rigorous results:

  • High-Probability Bounds: Regret-style bounds that hold with probability $1-\delta$.
  • Fast Rates for Realizable Data: In settings where a near-perfect solution exists, the error decreases at a rate of $O(1/t)$.
  • General Case Rates: For general Markovian data, common in reinforcement learning, it achieves a rate of $O(1/\sqrt{t})$.
  • No Projections Needed: The mathematical analysis confirms that for quadratically-bounded losses, the projection steps often found in theoretical algorithms are unnecessary for generalization.

Limitations and Future Work

While this work provides a significant step forward, several challenges remain. The current proof technique relies heavily on the convexity of loss functions, which covers linear predictors but does not yet extend to the non-convex landscape of deep neural networks. Additionally, the analysis is focused on linear predictors; extending this coupling logic to multi-layer architectures is a major open challenge. Finally, the constants in the step-size requirements are currently quite small (e.g., $1/4096$), suggesting that while the bounds are safe, they may not yet be tight enough for practical hyperparameter tuning.

Conclusion

Telgarsky’s work provides a robust theoretical foundation for the empirical success of unconstrained SGD. By demonstrating that "procrastination" is a virtue in iterative optimization, the paper offers a unified theory of implicit bias that explains why simple algorithms naturally avoid overfitting on general data.

Full Paper Citation: Matus Telgarsky. "Stochastic linear optimization never overfits with quadratically-bounded losses on general data." arXiv preprint arXiv:2202.06915v2, 2022.

Summary updated

BibTeX
@inproceedings{telgarsky2022stochastic,
  author = {Matus Telgarsky},
  title = {{Stochastic linear optimization never overfits with quadratically-bounded losses on general data}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
}
Figure