[Paper Review] Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learning
This paper introduces conservative set-valued fields as a generalized derivative framework for nonsmooth, nonconvex optimization, enabling rigorous analysis of automatic differentiation and stochastic gradient methods in deep learning. It proves that backpropagation in ReLU networks yields conservative fields, ensuring convergence of mini-batch SGD to critical points with probability one under definable structure assumptions.
Modern problems in AI or in numerical analysis require nonsmooth approaches with a flexible calculus. We introduce generalized derivatives called conservative fields for which we develop a calculus and provide representation formulas. Functions having a conservative field are called path differentiable: convex, concave, Clarke regular and any semialgebraic Lipschitz continuous functions are path differentiable. Using Whitney stratification techniques for semialgebraic and definable sets, our model provides variational formulas for nonsmooth automatic differentiation oracles, as for instance the famous backpropagation algorithm in deep learning. Our differential model is applied to establish the convergence in values of nonsmooth stochastic gradient methods as they are implemented in practice.
Motivation & Objective
- To develop a generalized calculus for nonsmooth functions beyond convex and Clarke-regular classes.
- To provide a theoretical foundation for automatic differentiation oracles in deep learning, especially for piecewise smooth activations like ReLU.
- To establish convergence guarantees for mini-batch stochastic gradient methods in nonsmooth, nonconvex settings.
- To connect algorithmic practices in deep learning (e.g., backpropagation) with geometric and model-theoretic structures like o-minimal and semialgebraic sets.
- To unify variational analysis, stratification theory, and numerical algorithms in a single framework for AI and numerical analysis.
Proposed method
- Introduces conservative set-valued fields via the zero circulation property: ∫₀¹⟨D(γ(t)), γ̇(t)⟩dt = {0} for all closed absolutely continuous curves γ.
- Defines path differentiable functions as those admitting a conservative field, including convex, concave, Clarke regular, and semialgebraic Lipschitz functions.
- Applies Whitney stratification and o-minimal structures to derive variational formulas for conservative fields, generalizing Morse-Sard and Łojasiewicz inequalities.
- Establishes that automatic differentiation oracles (e.g., backpropagation) produce conservative fields under definable assumptions.
- Uses a Lyapunov approach à la Benaïm-Hofbauer-Sorin to analyze convergence of discrete stochastic dynamics.
- Applies the framework to mini-batch SGD by constructing the conservative field as the average of individual component fields: D_f = (1/n)∑D_{f_i}.
Experimental results
Research questions
- RQ1Can a generalized derivative concept be developed that supports flexible calculus for nonsmooth, nonconvex problems in AI and numerical analysis?
- RQ2How can automatic differentiation in deep learning be formally justified using generalized derivatives, especially for ReLU networks?
- RQ3Under what conditions does mini-batch stochastic gradient descent converge in nonsmooth, nonconvex settings?
- RQ4What is the role of definable and semialgebraic structures in ensuring convergence of nonsmooth optimization algorithms?
- RQ5Can conservative fields be used to generalize classical convergence results (e.g., Łojasiewicz inequality) to nonsmooth, stratified settings?
Key findings
- Backpropagation in ReLU networks with squared loss produces a conservative field, ensuring the algorithm’s dynamics are governed by a conservative object.
- Mini-batch stochastic gradient descent using backpropagation converges to the BP_J-critical set of the loss function with probability one for semialgebraic or definable networks.
- The Clarke subdifferential is the minimal convex conservative field, and conservative fields coincide with classical gradients almost everywhere.
- In definable settings, conservative fields admit variational stratification formulas based on Whitney decompositions, enabling geometric and dynamical analysis.
- The framework generalizes the nonsmooth Kurdyka-Łojasiewicz inequality and Morse-Sard theorem to definable conservative fields.
- The protocol of choosing optimization methods first, then matching conservative fields via automatic differentiation and definability assumptions enables convergence analysis across diverse algorithms, including ADAM and heavy ball momentum.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.