Introduction
Control theory relies heavily on solving optimization problems to determine system actions. Whether employing a classical Linear Quadratic Regulator (LQR) or modern Model Predictive Control (MPC), practitioners must define parameters such as cost weights and constraints. Traditionally, these "knobs" are tuned manually or through exhaustive grid searches—a process that is both time-consuming and often suboptimal.
In "Learning Convex Optimization Control Policies," Agrawal et al. propose an automated framework for tuning these parameters. By treating the convex optimization solver as a differentiable layer within a learning pipeline, the authors enable the use of gradient-based optimization to directly minimize application-specific performance metrics.
Methodology
The core of the proposed approach is the parameterization of a control policy $\phi(x; \theta)$ as a convex optimization problem, where $x$ is the state and $\theta$ represents the tunable parameters. The framework utilizes three primary components:
- Differentiable Optimization: Leveraging tools like
cvxpylayers, the method computes the derivative of the optimization problem's solution with respect to its parameters. This allows the system to understand how small changes in weights affect resulting control actions. - End-to-End Gradients: By integrating the solver's derivative with system dynamics and performance metrics, the authors compute stochastic gradients.
- Projected Stochastic Gradient Descent: The controller parameters are updated iteratively based on simulated performance. To maintain physical or mathematical validity (e.g., ensuring a cost matrix remains positive definite), updates are projected back into the feasible parameter set.
This approach combines the safety and interpretability of convex optimization with the automated learning capabilities typically associated with neural networks.
Experimental Evaluation
The method was evaluated on several simulated dynamical systems:
- Classical LQR: A standard linear system with 4 states and 2 inputs.
- Box-constrained LQR: An 8-state system with strict limits on control inputs, introducing non-linearities.
- Vehicle Tracking: A kinematic bicycle model (5 states, 2 inputs) tasked with following a complex curved path.
Results and Discussion
The automated tuning process demonstrated significant improvements in both efficiency and performance across all test cases.
As shown in the convergence plots, the COCP framework rapidly identifies near-optimal parameters. In the simple LQR case, convergence was achieved in approximately 10 iterations. For the box-constrained scenario, the method successfully navigated input saturations to reach performance levels matching theoretical bounds.
The impact on high-fidelity tasks was even more pronounced. In the vehicle tracking experiment, automated tuning reduced the total cost from 3.978 to 0.971, representing a nearly fourfold improvement in tracking accuracy.
Beyond performance gains, the resulting policies are computationally efficient. Each control decision took approximately 3ms, making the learned policies suitable for real-time robotics applications.
Conclusion and Future Work
This research demonstrates that differentiating through convex optimization problems is a viable and powerful method for automating controller design. While the current approach relies on a reasonable initial guess to avoid local optima in the non-convex parameter landscape, it offers a significant leap over manual tuning. Future work may explore handling non-differentiable "kinks" in the solver's solution space and extending the framework to systems with learned, non-linear dynamics.
Summary updated