Abstract
Modern deep learning relies heavily on stochastic subgradient descent (SGD) to optimize nonsmooth, nonconvex objective functions. Despite its empirical success, a theoretical gap exists regarding the convergence of these methods, particularly when the expected update direction does not coincide with a subgradient of the risk. This paper establishes a rigorous foundation for SGD in this regime using conservative calculus and o-minimal geometry. We prove that SGD iterates converge to Clarke critical points and that "artificial" steady states—artifacts of backpropagation—are avoided for almost all initializations.
Introduction
In smooth optimization, the convergence of stochastic gradient descent is well-understood: the average update direction points toward the gradient of the total loss. However, the landscape of modern deep learning is characterized by nonsmooth components, such as ReLU activations and max-pooling layers, and complex nonconvexity.
In this nonsmooth regime, traditional analysis faces a significant hurdle. The "expected" update direction provided by an oracle, such as backpropagation, may not be a subgradient of the total risk function. This mismatch can theoretically lead to "artificial critical points"—locations where the algorithm might stall despite not being true stationary points of the loss. This work bridges this gap by establishing firm convergence guarantees in the vanishing step-size regime and proving that these spurious points are practically irrelevant.
Theoretical Framework: Conservative Calculus and O-Minimal Geometry
To address the limitations of traditional Clarke subgradients, we employ the framework of conservative calculus. This approach is particularly suited for deep learning because it is "compositionally stable." Unlike Clarke subgradients, the sum or composition of conservative gradients remains a conservative gradient, mirroring the operational logic of backpropagation.
The analysis of nonsmoothness is further "tamed" using o-minimal geometry, specifically focusing on semialgebraic and subanalytic functions. This mathematical framework allows us to characterize "bad" sets of points—where the algorithm might fail or encounter artifacts—as having measure zero. By working within a "definable" world, we ensure that the functions encountered in neural network architectures behave predictably. Furthermore, we emphasize the role of path-differentiable functions—those admitting a chain rule along absolutely continuous curves—as the natural class for analyzing modern machine learning models.
The ODE Method and Subgradient Sampling
We analyze the discrete steps of SGD through the lens of the ODE method, treating the iterates as a continuous-time differential inclusion. A central challenge in this analysis is the interchange of integrals and derivatives. We provide a new result establishing conditions under which a conservative derivative can be moved inside an expectation, a critical step for proving that SGD minimizes the expected risk.
The algorithm is defined by the update rule: $$w_{k+1} = w_k - \alpha_k \xi_{k+1}$$ where $\xi_{k+1}$ is a sample of a conservative field. We focus on the "vanishing step-size" regime where $\sum \alpha_k = \infty$ and $\sum \alpha_k^2 < \infty$.
Key Convergence Results
Our primary findings are summarized in three main theorems:
- Convergence to Critical Points: We prove that all essential accumulation points of the SGD iterates are Clarke critical points of the risk function. Under standard step-size conditions, the risk function $\mathcal{J}(w_k)$ converges almost surely.
- Avoidance of Artificial Points: We demonstrate that artificial critical points are rare. In the definable setting, the set of initializations or step sizes leading to these spurious points has measure zero.
- Genericity in Deep Learning: For online deep learning applications, we show that for almost all initializations and step sizes, the algorithm converges to a true critical point, effectively ignoring artifacts introduced by the backpropagation process.
Discussion and Limitations
While this work provides a robust theoretical foundation, several areas remain for future exploration. Our theory focuses on the vanishing step-size regime; extending these results to constant or cyclic learning rates used in practice is a priority. Additionally, while artificial points have measure zero in continuous space, the impact of floating-point quantization in real-world implementations warrants further study. Finally, extending this framework from unconstrained optimization to constrained settings (e.g., weight clipping) would broaden its applicability to a wider range of machine learning models.
Summary updated