[Paper Review] Optimal Cost Design for Model Predictive Control
This paper proposes Optimal Cost Design for Model Predictive Control (OCD-MPC), a zeroth-order optimization approach that learns a surrogate cost function $C'$ to improve MPC rollout performance under the true cost $C$, even when MPC faces short horizons, local optima, or inaccurate dynamics. The method learns $C'$ such that MPC rollouts using $C'$ achieve lower true cumulative cost than those using $C$, with demonstrated robustness across initial states and dynamics mismatches in autonomous driving scenarios.
Many robotics domains use some form of nonconvex model predictive control (MPC) for planning, which sets a reduced time horizon, performs trajectory optimization, and replans at every step. The actual task typically requires a much longer horizon than is computationally tractable, and is specified via a cost function that cumulates over that full horizon. For instance, an autonomous car may have a cost function that makes a desired trade-off between efficiency, safety, and obeying traffic laws. In this work, we challenge the common assumption that the cost we optimize using MPC should be the same as the ground truth cost for the task (plus a terminal cost). MPC solvers can suffer from short planning horizons, local optima, incorrect dynamics models, and, importantly, fail to account for future replanning ability. Thus, we propose that in many tasks it could be beneficial to purposefully choose a different cost function for MPC to optimize: one that results in the MPC rollout having low ground truth cost, rather than the MPC planned trajectory. We formalize this as an optimal cost design problem, and propose a zeroth-order optimization-based approach that enables us to design optimal costs for an MPC planning robot in continuous MDPs. We test our approach in an autonomous driving domain where we find costs different from the ground truth that implicitly compensate for replanning, short horizon, incorrect dynamics models, and local minima issues. As an example, the learned cost incentivizes MPC to delay its decision until later, implicitly accounting for the fact that it will get more information in the future and be able to make a better decision. Code and videos available at https://sites.google.com/berkeley.edu/ocd-mpc/.
Motivation & Objective
- To address the suboptimal performance of MPC in robotics due to short planning horizons, local optima, inaccurate dynamics models, and failure to account for future replanning.
- To challenge the assumption that MPC should optimize the true task cost $C$, proposing instead that optimizing a learned surrogate cost $C'$ can yield better rollout performance.
- To formalize the problem of optimal cost design for MPC as a zeroth-order optimization task in continuous MDPs.
- To evaluate whether learned surrogate costs generalize across unseen initial states and dynamics mismatches in autonomous driving environments.
Proposed method
- Formalize the optimal cost design problem as minimizing the true cumulative cost of MPC rollouts, rather than optimizing the true cost directly.
- Use zeroth-order optimization (CMA-ES) to search over the space of surrogate cost functions $C'$, where the fitness function evaluates MPC rollouts using $C'$ under the true cost $C$.
- Train the surrogate cost $C'$ by sampling initial states and optimizing for low rollout cost across multiple initializations to improve generalization.
- Evaluate the fitness of $C'$ using true dynamics $f$, even when MPC uses an approximate model $\hat{f}$, to simulate real-world dynamics mismatch.
- Use bootstrapped confidence intervals over 10 seeds to assess statistical significance of performance gains on unseen initial states.
- Combine surrogate cost learning with terminal cost learning, showing complementary improvements in performance.
Experimental results
Research questions
- RQ1Can learning a surrogate cost function $C'$ for MPC lead to lower true cumulative rollout cost than optimizing the true cost $C$ directly?
- RQ2How does the performance of the learned $C'$ generalize across unseen initial states in autonomous driving scenarios?
- RQ3Can $C'$ compensate for short planning horizons, local optima, and inaccurate dynamics models in MPC?
- RQ4Does combining learned $C'$ with a learned terminal cost yield better performance than either alone?
- RQ5How many initial states are needed during training to ensure $C'$ generalizes robustly to unseen initial conditions?
Key findings
- In all three autonomous driving scenarios, the learned surrogate cost $C'$ produced MPC rollouts with significantly lower true cumulative cost than those using the true cost $C$, even with short horizons.
- OCD-MPC achieved performance comparable to the ideal case without dynamics mismatch when wind-induced noise was added to the true dynamics, demonstrating robustness to model inaccuracies.
- In Scenario 1 and 2, a single training initialization was sufficient to generalize $C'$ to unseen initial states, yielding lower mean rollout cost and reduced variance.
- In Scenario 3 (replanning), training on more than 5 initial states was required for $C'$ to consistently outperform planning with the true cost $C$, highlighting the need for diverse training data.
- The combination of learned $C'$ and a learned terminal cost resulted in better performance than using either method alone, indicating complementary benefits.
- The method successfully learned $C'$ that implicitly delayed decisions (e.g., lane changes) to account for future replanning, demonstrating strategic compensation for MPC’s limitations.
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.