Introduction
Optimal control aims to find a feedback law that minimizes a cost function for a given system. Traditionally, this relies on the Value Function, where the optimal control is derived by maximizing the Hamiltonian. However, for many complex systems—such as drones or non-linear steering mechanisms—this maximization lacks a closed-form solution, creating a computational bottleneck. Existing methods often require solving expensive linear systems ($O(m^3)$ complexity) or backpropagating through iterative solvers, which is both slow and memory-intensive.
This paper introduces a novel framework for training high-dimensional optimal controllers using Implicit Neural Networks (INN) combined with Jacobian-Free Backpropagation (JFB). This approach enables efficient, end-to-end training that scales quadratically ($O(m^2)$) with control dimensions, significantly outperforming standard automatic differentiation (AD) in speed and memory efficiency.
Methodology
The proposed framework consists of three primary components:
- Value Function Parameterization: A neural network approximates the value function $\phi$, ensuring the learned behavior adheres to Pontryagin’s Maximum Principle.
- Implicit Control Layer: The optimal control $u^*$ is defined as the fixed point of an operator based on the Hamiltonian's optimality condition, treating the controller as an INN.
- Jacobian-Free Backpropagation (JFB): To differentiate through the implicit layer, JFB replaces the standard Jacobian inverse with an identity matrix. The authors provide a theoretical proof that this approximation still yields valid descent directions, reducing complexity from cubic to quadratic.
A key theoretical contribution is extending JFB to time-integral problems (trajectories), where temporal coupling exists between steps. Furthermore, JFB offers constant memory usage because it does not need to store intermediate states of the fixed-point solver during backpropagation.
Experimental Evaluation
The method was evaluated on simulated physical systems:
- Quadrotor with Exponential Cost: A drone model with a non-quadratic cost function, resulting in an implicit Hamiltonian.
- Multi-Bicycle Dynamics: A high-dimensional tracking problem involving up to 20 bicycles (80-dimensional state, 40-dimensional control), characterized by non-convex dynamics.
Key Results
The experiments demonstrate significant advantages for JFB across multiple metrics:
- Scalability and Memory Efficiency: In high-dimensional tasks like the 20-bicycle experiment, standard AD failed due to memory limits, whereas JFB maintained constant memory usage.
- Computational Efficiency: JFB achieved convergence using several orders of magnitude fewer "work units" (computational steps) compared to standard AD, as shown in the multi-bicycle tracking task.
- Training Speed: For the quadrotor task, JFB reached target loss values much faster than
CVXPYLayers, which was slowed down by the need to solve linear systems at each step.
Conclusion
By circumventing the need for closed-form Hamiltonian solutions and utilizing Jacobian-Free Backpropagation, this work provides a scalable path for high-dimensional optimal control. While the method currently relies on contraction requirements for the fixed-point operator, future work may extend these techniques to stochastic optimal control, mean-field games, and real-world hardware testing.
Summary updated