DiffOP: Reinforcement Learning of Optimization-Based Control Policies via Implicit Policy Gradients
Yuexin Bian, Jie Feng, Yuanyuan Shi
TL;DR
DiffOP addresses learning control policies defined implicitly by optimization problems, avoiding value-function approximation by directly differentiating through the optimization layer. It jointly learns cost and dynamics models and derives analytical policy gradients via implicit differentiation and Pontryagin’s Maximum Principle, enabling end-to-end RL with model-based components. The authors prove a non-asymptotic convergence guarantee to an $\epsilon$-stationary point in $\mathcal{O}(\epsilon^{-1})$ iterations and validate DiffOP on nonlinear controllers and voltage regulation with constraints, achieving superior performance against RL-based MPC and differentiable optimization baselines. Code and experiments demonstrate practical applicability across challenging control tasks with constraints and nonlinearity.
Abstract
Real-world control systems require policies that are not only high-performing but also interpretable and robust. A promising direction toward this goal is model-based control, which learns system dynamics and cost functions from historical data and then uses these models to inform decision-making. Building on this paradigm, we introduce DiffOP, a novel framework for learning optimization-based control policies defined implicitly through optimization control problems. Without relying on value function approximation, DiffOP jointly learns the cost and dynamics models and directly optimizes the actual control costs using policy gradients. To enable this, we derive analytical policy gradients by applying implicit differentiation to the underlying optimization problem and integrating it with the standard policy gradient framework. Under standard regularity conditions, we establish that DiffOP converges to an $ε$-stationary point within $\mathcal{O}(ε^{-1})$ iterations. We demonstrate the effectiveness of DiffOP through experiments on nonlinear control tasks and power system voltage control with constraints. The code is available at https://github.com/alwaysbyx/DiffOP.
