NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Path differentiability of ODE flows

Swann Marx, Edouard Pauwels

TL;DR

This paper introduces a new mathematical framework to rigorously prove that the solutions of ordinary differential equations (ODEs) are "path differentiable" when their driving vector fields are. This is crucial for applying gradient-based optimization methods to problems involving ODEs, especially in machine learning and control systems, by providing a sound theoretical basis for calculating derivatives.

What Problem Does This Paper Address?

Many real-world systems, from robotics to climate modeling, are described by ordinary differential equations (ODEs). When we want to optimize parameters within these systems (e.g., tuning a robot's controller), we often rely on gradient-based optimization. However, these methods require the system's output to be differentiable with respect to its parameters. For ODEs with "nonsmooth" (not continuously differentiable) vector fields, standard differentiation techniques break down. This paper tackles the challenge of defining and proving differentiability for ODE flows driven by such nonsmooth vector fields, which is essential for applying advanced optimization techniques.

Methods

The core of the paper lies in introducing and utilizing the concept of "path differentiable functions" and "conservative Jacobians."

  • Path Differentiable Functions: A class of functions that, while not necessarily continuously differentiable, still satisfy a chain rule for differentiation along absolutely continuous curves. This is a more general notion of differentiability suitable for nonsmooth systems.
  • Conservative Jacobian: A generalized derivative that satisfies a specific integral property, ensuring that it can be used to correctly propagate derivatives through the ODE flow. The paper shows that the solutions to a specific differential inclusion (a generalization of the variational equation for ODEs) provide such a conservative Jacobian for the ODE flow.
  • Differential Inclusion: A generalization of differential equations where the derivative is not a single value but a set of possible values. This is used to capture the generalized derivative of nonsmooth vector fields.
  • Nonsmooth Adjoint Method: The paper develops a nonsmooth version of the adjoint method, a standard technique for efficiently computing gradients in systems with ODE constraints. This nonsmooth version leverages the conservative Jacobians to handle the nonsmoothness.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Flows Inherit Path Differentiability: The most significant insight is that if the vector field driving an ODE is path differentiable, then the ODE's flow (its solution over time) is also path differentiable. This is a fundamental result that bridges the gap between the properties of the ODE's definition and the differentiability of its output.
  • Differential Inclusion as a Conservative Jacobian: The paper demonstrates that the set of solutions to a specific differential inclusion acts as a conservative Jacobian for the ODE flow. This provides a concrete mathematical tool for computing generalized derivatives.
  • Nonsmooth Optimization for ODEs: The work lays the theoretical groundwork for applying gradient-based optimization to problems with ODE constraints, even when the ODEs are nonsmooth. This is achieved by developing a nonsmooth adjoint method that can compute conservative gradients.
  • Bridging Theory and Practice: The paper connects theoretical concepts of nonsmooth analysis with practical applications in optimization, particularly for integral costs under ODE constraints.

Key Results

  • Theorem 1: Establishes that the mapping $(x, t) \mapsto (U(x,t), F(\phi(x,t)))$ is conservative for the flow $\phi$, where $U$ is derived from the differential inclusion. This directly implies that the ODE flow is path differentiable.
  • Corollaries: Several corollaries extend these results to specific scenarios, such as terminal costs and integral costs, showing how to compute conservative gradients for these functions.
  • Nonsmooth Adjoint Method: The paper presents a nonsmooth adjoint system that allows for efficient computation of gradients, reducing the computational complexity compared to directly solving the differential inclusion.
  • Optimization Convergence: The developed methods are shown to provide a basis for small-step gradient methods that are attracted to critical points of the optimization problem, even in the presence of nonsmoothness.

Limitations and Future Work

  • Global Lipschitz Assumption: The paper relies on a global Lipschitz assumption for the vector field, which is stronger than the typical local Lipschitz assumption. The authors suggest that extensions to relax this assumption are possible, particularly by considering compact sets or ensuring solutions are well-defined on the entire time interval.
  • Extension to PDEs: The authors highlight that their work could be extended to parametric partial differential equations (PDEs), which is a natural next step given the complexity of such systems. This would involve adapting the concept of conservative Jacobians to PDEs, potentially starting with specific classes like hyperbolic PDEs.
  • Stronger Optimality Conditions: While the paper provides a foundation for optimization, obtaining stronger convergence guarantees or characterizing the set of accumulation points more precisely might require additional assumptions, such as Sard type conditions. This is identified as a topic for future research.

Summary updated

BibTeX
@article{marx2022path,
  author = {Swann Marx and Edouard Pauwels},
  title = {{Path differentiability of ODE flows}},
  journal = {Journal of Differential Equations},
  year = {2022},
  doi = {10.1016/j.jde.2022.07.038},
}
Figure