Mathematical proofs in deep learning theory often rely on a comforting assumption: smoothness. When an activation function or a loss landscape is smooth, theorists can deploy the elegant machinery of mathematical analysis—Taylor series expansions, continuous-time differential equations, and well-behaved Hessians.
Yet, the empirical reality of deep learning is resolutely non-smooth. The Rectified Linear Unit (ReLU), defined simply as $\max(0, x)$, remains the foundational building block of modern neural networks. At $x = 0$, ReLU contains a sharp "kink" where its derivative jumps discontinuously from 0 to 1. This single point of non-differentiability shatters many classical optimization and generalization proofs, creating a persistent "smoothness gap" between theoretical models and empirical practice.
The Mathematical Comfort of Smooth Landscapes
To understand why non-smoothness is such a formidable challenge, we must first look at why theorists prize smoothness. Consider a standard gradient descent step. To guarantee that moving in the direction of the negative gradient actually decreases the loss, proofs typically assume that the gradient itself changes continuously—a property known as Lipschitz smoothness.
When extending these analyses to complex dynamical systems, the requirements become even steeper:
- Second-Order Systems: Analyzing momentum-based or inertial gradient systems often requires the objective function to be twice continuously differentiable ($C^2$) to ensure stable convergence rates, as noted by Pascal Bégout et al. in their work on On damped second-order gradient systems.
- Continuous-Time Flows: Modeling stochastic gradient descent (SGD) as a continuous-time process via Stochastic Differential Equations (SDEs) or mean-field limits provides deep insights into optimization paths. However, as Benjamin Gess et al. show in Stochastic Modified Flows, Mean-Field Limits and Dynamics of Stochastic Gradient Descent, proving the mathematical regularity of these flows can require up to sixth-order derivatives.
- Particle Dynamics: Proving that infinitely wide networks converge predictably over time (a property known as propagation of chaos) frequently requires at least third-order derivatives of the energy functional, a constraint highlighted by Fan Chen et al. in Uniform-in-time propagation of chaos for kinetic mean field Langevin dynamics.
When an architecture introduces a non-smooth activation function like ReLU, higher-order derivatives vanish or become undefined delta functions, rendering these mathematical frameworks invalid.
The Theoretical Cost of Non-Smoothness
The discrepancy between smooth theoretical assumptions and non-smooth practical architectures manifests across several core areas of deep learning theory.
Algorithmic Stability and Generalization
Algorithmic stability measures how much a trained model changes when a single data point is altered in the training set. In a seminal paper, Moritz Hardt et al. established that SGD is stable and generalizes well, provided the loss function has Lipschitz continuous gradients (Train faster, generalize better: Stability of stochastic gradient descent). Because ReLU networks violate this condition, standard stability-based generalization theories cannot be directly applied without further theoretical refinement, an issue discussed by Dominic Richards et al. in Stability & Generalisation of Gradient Descent for Shallow Neural Networks without the Neural Tangent Kernel.
Without smoothness, deriving tight generalization bounds for deep networks becomes exceptionally difficult. As Yuanfan Li et al. point out in Optimal Rates for Generalization of Gradient Descent for Deep ReLU Classification, frameworks that achieve fast generalization rates often rely on smooth activations to maintain analytical tractability, leaving a gap in our understanding of deep ReLU networks.
Network Geometry and Normalization
The smoothness gap also complicates our understanding of emergent geometric phenomena in deep networks. For instance, wide networks trained with weight decay tend to organize their final-layer features into symmetric geometric structures, a phenomenon known as "neural collapse." However, as observed by Arthur Jacot et al. in Wide Neural Networks Trained with Weight Decay Provably Exhibit Neural Collapse, proving this convergence rigorously often requires assuming smooth activations to preserve mathematical tractability.
Similarly, architectural innovations like Weight Normalization are known to stabilize training and improve generalization across deep layers. Yet, proving these depth-independent benefits mathematically typically requires smooth activation functions, leaving the formal verification of ReLU-based weight-normalized networks an open challenge (Pedro Cisneros-Velarde et al. in Optimization and Generalization Guarantees for Weight Normalization).
Adversarial Robustness
Evaluating how well a network resists adversarial perturbations requires understanding its local behavior. If a network is smooth, its local sensitivity can be bounded by its Lipschitz constant. However, adversarial training landscapes for networks with kinked activations are inherently non-smooth. Kaibo Zhang et al. note in Stability and Generalization of Adversarial Training for Shallow Neural Networks with Smooth Activation that robustness guarantees frequently break down when transitioning from idealized smooth activations to the non-smooth optimization landscapes encountered in practice.
Bridging the Gap: Tools for Non-Smooth Analysis
To resolve these contradictions, researchers are developing new mathematical tools designed to handle non-smoothness directly, rather than smoothing it away.
Directional Derivatives and Local Regularity
When global differentiability is lost, local and directional properties can provide a workaround. For example, in Evaluating the Robustness of Neural Networks: An Extreme Value Theory Approach, Huan Zhang et al. utilize directional derivatives combined with Extreme Value Theory to statistically estimate local Lipschitz constants. This allows researchers to compute formal robustness metrics for standard ReLU networks without requiring global differentiability.
Shattered Landscapes and Activation Patterns
Instead of viewing non-smoothness as a failure of continuity, some frameworks embrace it as a discrete combinatorial property. A ReLU network partitions the input space into a massive collection of linear regions, often described as a "shattered" landscape.
The authors of Neural Taylor Approximations: Convergence and Exploration in Rectifier Networks address this by introducing Neural Taylor Approximations. This framework provides convergence guarantees for non-smooth, non-convex networks by explicitly modeling how adaptive optimizers navigate the transitions between different neuron activation patterns, shifting the focus from continuous derivatives to the exploration of discrete linear regions.
Non-Smooth Stochastic Optimization
When abrupt slope changes invalidate standard gradient descent proofs, optimization theory must adapt. In High-Probability Bound for Non-Smooth Non-Convex Stochastic Optimization with Heavy Tails, Langqi Liu et al. develop specialized algorithmic frameworks to guarantee convergence in non-smooth, non-convex settings, even when the gradients are corrupted by heavy-tailed noise. By relaxing the requirement for continuous gradients, these approaches provide a more realistic foundation for the optimization landscapes encountered in real-world deep learning.