[Paper Review] Nonsmooth Implicit Differentiation for Machine Learning and Optimization
This paper establishes a nonsmooth implicit function theorem using conservative calculus and Clarke Jacobians, enabling formal subdifferentiation in machine learning models with non-differentiable components. It justifies the widespread success of algorithmic differentiation in practice—such as in deep equilibrium networks and hyperparameter tuning—by providing a rigorous mathematical foundation that ensures convergence under mild, realistic assumptions.
In view of training increasingly complex learning architectures, we establish a nonsmooth implicit function theorem with an operational calculus. Our result applies to most practical problems (i.e., definable problems) provided that a nonsmooth form of the classical invertibility condition is fulfilled. This approach allows for formal subdifferentiation: for instance, replacing derivatives by Clarke Jacobians in the usual differentiation formulas is fully justified for a wide class of nonsmooth problems. Moreover this calculus is entirely compatible with algorithmic differentiation (e.g., backpropagation). We provide several applications such as training deep equilibrium networks, training neural nets with conic optimization layers, or hyperparameter-tuning for nonsmooth Lasso-type models. To show the sharpness of our assumptions, we present numerical experiments showcasing the extremely pathological gradient dynamics one can encounter when applying implicit algorithmic differentiation without any hypothesis.
Motivation & Objective
- Address the gap between empirical success of algorithmic differentiation in nonsmooth machine learning and the lack of theoretical justification.
- Provide a mathematically rigorous foundation for implicit differentiation in non-differentiable settings, particularly where classical inverse or composition rules fail.
- Enable formal subdifferentiation using Clarke Jacobians in complex models such as deep equilibrium networks and conic optimization layers.
- Establish convergence guarantees for stochastic optimization algorithms in wide classes of non-smooth machine learning problems.
- Demonstrate that standard backpropagation tools (e.g., in JAX) are consistent with conservative calculus, even when classical calculus fails.
Proposed method
- Introduce a nonsmooth conservative implicit function theorem that generalizes the classical implicit function theorem to definable, non-smooth problems.
- Use conservative Jacobians as a generalization of Clarke subdifferentials, preserving properties under matrix multiplication.
- Formulate implicit differentiation via the equation $ J_F(z(x)) J_z(x) = J_h(x) $, where $ J_F $ and $ J_h $ are conservative Jacobians.
- Apply the framework to fixed-point problems, such as deep equilibrium networks, by treating the solution as a fixed point of a non-smooth operator.
- Integrate conic optimization layers into neural networks by modeling their implicit solutions using projection operators and conservative calculus.
- Validate the framework through numerical experiments showing that naive implicit differentiation without assumptions leads to pathological gradient dynamics.
Experimental results
Research questions
- RQ1Can a rigorous mathematical theory justify the empirical success of algorithmic differentiation in non-smooth machine learning models?
- RQ2Under what conditions does formal subdifferentiation using Clarke Jacobians remain valid for implicit functions in non-smooth settings?
- RQ3Why does standard backpropagation work reliably in practice despite the presence of non-differentiable points and spurious derivatives?
- RQ4Can convergence guarantees be established for stochastic optimization in non-smooth deep learning architectures using conservative calculus?
- RQ5What are the limitations of classical implicit function theorems when applied to non-smooth problems such as ReLU networks or Lasso-type models?
Key findings
- The proposed conservative implicit function theorem provides a mathematically sound foundation for implicit differentiation in non-smooth settings, even when classical inverse or composition rules fail.
- The framework justifies the use of backpropagation tools like JAX in non-smooth models by showing they compute conservative Jacobians, which are consistent with the theory.
- Numerical experiments demonstrate that naive implicit differentiation without structural assumptions leads to chaotic or unstable gradient dynamics, highlighting the necessity of the proposed conditions.
- The method enables convergence of mini-batched stochastic algorithms with vanishing step size for training wide classes of neural networks and hyperparameter selection in Lasso-type models.
- Applications to deep equilibrium networks and conic optimization layers show that the framework supports end-to-end training with formal subdifferentiation, even when solutions are non-unique or discontinuous.
- The theory explains why algorithmic differentiation works in practice: it implicitly computes conservative Jacobians, which preserve essential derivative properties under composition and inversion in non-smooth contexts.
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.