NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Subgradient Method Converges on Tame Functions

Damek Davis, Dmitriy Drusvyatskiy, Sham M. Kakade, Jason D. Lee · DOI

Abstract

This paper establishes a rigorous theoretical foundation for the convergence of the stochastic subgradient method on a broad class of nonsmooth, nonconvex functions characterized by "tame geometry." While stochastic gradient descent (SGD) is the workhorse of modern deep learning, formal convergence guarantees have historically been limited to smooth or convex settings. By leveraging differential inclusions and o-minimal structures, the authors prove that for almost all neural network architectures—including those using ReLU activations and max-pooling—the stochastic subgradient method is guaranteed to converge to a first-order stationary point. This work effectively bridges the gap between the empirical success of these methods and their mathematical theory.

Introduction

In the field of mathematical optimization, convergence guarantees are well-established for functions that are either smooth (differentiable) or convex. However, modern machine learning operates in a landscape that is often neither. Deep neural networks are notoriously nonconvex, and popular components like ReLU activation functions or hinge losses introduce nonsmoothness (e.g., "kinks" where the derivative is undefined).

While practitioners successfully use SGD and its variants to train these models daily, a significant theoretical gap has persisted: Does the stochastic subgradient method actually have formal convergence guarantees for these messy, nonsmooth, nonconvex functions? Previous theoretical frameworks often relied on "weak convexity," a condition that many simple neural networks fail to satisfy. This paper seeks to close this gap by identifying a broad class of "tame" functions where convergence is mathematically certain.

Theoretical Framework

The authors bridge the gap between practice and theory using two primary mathematical pillars: Differential Inclusions and Tame Geometry.

1. Differential Inclusions

Rather than analyzing the algorithm solely as a sequence of discrete steps, the authors treat it as a continuous-time trajectory, known as a "differential inclusion." By adopting this perspective, they can employ a Lyapunov-type argument. This allows them to demonstrate that the objective function strictly decreases along the "flow" of the subgradients, providing a path toward stationarity.

2. Tame Geometry and Whitney Stratification

The core innovation of the paper is the application of "tame geometry." Tame functions are those whose graphs can be partitioned into a finite number of smooth manifolds (strata) that fit together in a regular, non-pathological way. This classification includes:

  • Semialgebraic functions: Functions defined by polynomial inequalities.
  • O-minimal structures: A broader class that encompasses exponentials and logarithms.

By working within this "tame" universe, the authors prove that a generalized chain rule holds. This is a critical technical requirement; it ensures that the subgradient direction actually points "downhill" in a manner that allows the objective function to serve as a valid Lyapunov function for the dynamical system.

Key Insights

  • The Universality of Tameness: The authors argue that nearly every function utilized in modern data science is "tame." Whether an architecture employs ReLUs, max-pooling, hinge losses, or SoftPlus, it likely falls within an o-minimal structure. Consequently, this theory covers virtually all popular deep learning architectures.
  • Ruling Out Pathologies: While there exist "pathological" Lipschitz functions where subgradient methods fail to converge to meaningful points, these functions are extremely rare and do not appear in real-world engineering. Tame geometry provides a mathematical framework to exclude these "monsters."
  • Subsequential Convergence: The paper proves that every limit point of the algorithm is a Clarke stationary point. This is a generalized version of a point where the gradient is zero, ensuring the algorithm will not wander indefinitely or become trapped in non-critical loops.

Results and Implications

The primary result of the research is a robust convergence guarantee: Under standard assumptions—specifically bounded iterates and step sizes that are square-summable but not summable—the stochastic subgradient method applied to a tame function will, almost surely, produce limit points that are all first-order stationary.

Specific applications of this theory include:

  • Deep Learning Applicability: Corollary 5.11 confirms that these guarantees apply to CNNs, RNNs, and standard feed-forward networks built from definable pieces.
  • Proximal Extensions: The authors extended their results to the proximal stochastic subgradient method, which is essential for problems involving constraints or regularization, such as $L_1$ penalties.

Discussion and Limitations

While this work provides a vital theoretical anchor, several areas remain for future exploration:

  • Iterate Boundedness: The proof assumes that the iterates $x_k$ remain within a bounded region. In practice, ensuring this often requires additional techniques like weight decay or projections.
  • Asymptotic Nature: The paper proves that the method converges (asymptotic convergence) but does not provide a specific rate of convergence (e.g., the number of iterations required to reach $\epsilon$-stationarity) for the general tame case.
  • Local vs. Global Optima: As is standard for nonconvex optimization theory, the results guarantee reaching a stationary point, not necessarily a global minimum. Additionally, the framework does not explicitly address the avoidance of saddle points, though it provides the foundational structure for such future analysis.

Conclusion

By introducing tame geometry to the analysis of stochastic subgradient methods, this paper provides the most general convergence results to date for the algorithms powering modern artificial intelligence. It confirms that the "Wild West" of deep learning optimization is, in fact, governed by rigorous geometric principles, ensuring that our most common training methods are mathematically sound.

Summary updated

BibTeX
@article{davis2020stochastic,
  author = {Damek Davis and Dmitriy Drusvyatskiy and Sham M. Kakade and Jason D. Lee},
  title = {{Stochastic Subgradient Method Converges on Tame Functions}},
  journal = {Found. Comput. Math.},
  year = {2020},
  doi = {10.1007/s10208-018-09409-5},
}
Figure