Abstract
Modern deep learning models are highly non-convex and non-smooth, rendering traditional optimization theories like convex analysis inadequate. This paper introduces "tame geometry" (o-minimality) as a mathematical framework for deep learning. We demonstrate that almost all neural networks are "tame" objects, free of pathological mathematical behaviors. This perspective allows for rigorous convergence guarantees for algorithms like Stochastic Gradient Descent (SGD) in complex, non-smooth loss landscapes.
Introduction: The Search for a "Goldilocks" Framework
As deep learning systems are increasingly deployed in high-stakes environments, the need for theoretical reliability becomes critical. However, the mathematical tools traditionally used to study optimization fall short. A simple feedforward network with ReLU activations is neither convex nor smooth. Conversely, general non-smooth mathematics is too permissive, including "pathological monsters"—functions with infinite oscillations or fractal boundaries—where optimization algorithms fail.
The authors propose tame geometry as a "Goldilocks" framework: restrictive enough to rule out pathological edge cases, yet realistic enough to encompass modern deep learning architectures.
The Tame Geometry Framework
Tame geometry, specifically the theory of o-minimal structures from mathematical logic, provides a lens through which neural networks can be viewed as well-behaved objects. An o-minimal structure is a collection of sets and functions that satisfy certain axioms, ensuring they do not exhibit infinite complexity.
Two key properties make this framework ideal for deep learning:
- Composability: Tame components (like specific activation functions) can be combined through logical and mathematical operations to form a tame whole.
- Stratification: Tame objects can be partitioned into a finite number of smooth manifolds (strata). This allows researchers to apply smooth optimization proofs to the individual pieces of a non-smooth landscape.
Deep Learning Components are Tame
A central contribution of this work is the classification of common deep learning building blocks within specific o-minimal structures, such as semialgebraic sets ($\mathbb{R}_{\text{alg}}$) or the Pfaffian closure ($\mathbb{R}_{\text{Pfaff}}$).
As shown in the table above, virtually all standard activation functions (ReLU, GELU, Swish) and loss functions (Cross-Entropy, Huber) are definable within these structures. This ensures that the entire loss landscape of a typical neural network remains tame.
Theoretical Implications for Optimization
The tameness of neural networks has profound implications for the Stochastic Subgradient Method (SSM). Because tame functions lack "pathological monsters," the loss acts as a valid Lyapunov function, strictly decreasing along the continuous-time gradient flow.
Furthermore, tame geometry provides a rigorous justification for Automatic Differentiation (AD). While AD can technically fail at non-smooth points (like the kink in a ReLU), the "Conservative Fields" property of tame functions ensures that AD-based SGD successfully optimizes non-smooth networks in practice. The "Weak Sard" property also holds, meaning the set of critical values in the landscape is finite rather than infinitely dense.
Conclusion and Future Directions
While tame geometry guarantees convergence to Clarke critical points—which include saddle points and local maxima—it does not solve the NP-hard problem of finding global minima. However, it provides the necessary mathematical foundation to move beyond the limitations of smooth or convex optimization. Future work may leverage o-minimality to explore the theoretical limits of algorithmic computability and statistical learning guarantees, such as finite VC dimension, in deep neural networks.
Summary updated