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

Bayesian Optimisation for Robust Model Predictive Control under Model Parameter Uncertainty

Rel Guzman Apaza, Rafael Oliveira, Fabio Ramos · DOI

TL;DR

This paper tackles the "reality gap" in robotics and control by proposing a novel Bayesian Optimization (BO) framework. This framework jointly tunes stochastic Model Predictive Control (MPC) hyperparameters and learns probability distributions for the system's dynamics model parameters, all based on observed performance rewards. This adaptive approach leads to more robust controllers that perform better in uncertain environments.

What Problem Does This Paper Address?

In robotics and control, a common challenge is the "reality gap" – the discrepancy between a system's behavior in simulation and its behavior in the real world. This gap arises because the models used to control robots are often imperfect representations of reality. Stochastic Model Predictive Control (MPC) is a powerful technique that uses a model to plan optimal actions, but its performance degrades significantly when the model is inaccurate. Traditional methods for tuning MPC hyperparameters often assume a constant level of noise, which is unrealistic for stochastic controllers where noise can vary depending on the controller's settings and the system's dynamics. This paper addresses this by developing a method that can tune MPC controllers and simultaneously adapt to model uncertainty by learning probability distributions of the model parameters, rather than relying on a single, fixed model.

Methods

The core contribution is a heteroscedastic Bayesian Optimization (BO) framework. Here's a breakdown:

  • Stochastic MPC: The paper builds upon stochastic MPC, which uses a probabilistic model of system dynamics and optimizes actions over a future horizon by considering sampled trajectories. Key hyperparameters include the exploration/exploitation trade-off parameters (like $\lambda$ and $\sigma$) and the control horizon.
  • Bayesian Optimization (BO): BO is used as a black-box optimization tool to find optimal hyperparameters. It uses a Gaussian Process (GP) as a surrogate model to approximate the objective function (cumulative reward) and an acquisition function (Upper Confidence Bound - UCB) to guide the search for the next best point to evaluate.
  • Heteroscedastic Noise Model: A key novelty is the use of a heteroscedastic noise model for the GP surrogate. Unlike homoscedastic models that assume constant noise variance, this model accounts for varying noise levels. This is crucial because the noise in performance rewards can depend on the MPC hyperparameters and the dynamics model parameters being tuned.
  • Joint Optimization: The framework jointly optimizes two sets of parameters:
  • Controller Hyperparameters ($\phi$): These are the parameters that directly control the MPC controller's behavior (e.g., $\lambda$ and $\sigma$).
  • Model Parameter Distributions ($\psi$): Instead of learning a single "true" model, the paper learns probability distributions (parameterized by $\psi$) for the system's dynamics model parameters. This allows the controller to be robust to variations in these parameters.
  • Adaptive Domain Randomization: By learning distributions for model parameters, the approach implicitly performs a form of adaptive domain randomization. The BO process guides the search towards parameter distributions that yield the highest cumulative reward, effectively exposing the controller to a range of plausible dynamics during training.

Datasets

The paper evaluates its approach on several benchmark tasks:

  • Simulated Control Tasks:
    • Cartpole
    • Pendulum
    • Half-Cheetah
    • Reacher
    • Fetchreach (with dense reward functions)
  • Robotic Simulator:
    • PANDA robotic arm simulation for a reaching task with an obstacle.
  • Real Robot:
    • Jaco 2 robot for a reaching task.

The tasks are standard benchmarks in reinforcement learning and robotics, often used to evaluate control policies and optimization methods. The paper notes that the reward functions for the OpenAI Gym tasks are taken from a previous work [10].

Key Insights and Ideas

  • Heteroscedasticity is Crucial: The paper strongly argues and demonstrates that assuming constant noise (homoscedasticity) in performance rewards is unrealistic and detrimental. Accounting for varying noise levels through a heteroscedastic model significantly improves optimization performance.
  • Jointly Optimizing Model and Controller is Key: The "reality gap" is best addressed not by perfectly identifying the true model, but by learning a controller that is robust to model uncertainty. Jointly optimizing the controller's hyperparameters and the distribution of model parameters achieves this.
  • Performance-Driven Adaptation: The adaptation of model parameters is driven purely by the observed cumulative reward. This means the learned parameter distributions might not perfectly match the true system parameters but are instead those that lead to the best controller performance.
  • BO as a Unified Framework: Bayesian Optimization provides a powerful, sample-efficient mechanism to handle this complex, multi-objective optimization problem (tuning controller and adapting model distributions).

Key Results

  • Improved Cumulative Rewards: The proposed heteroscedastic BO approach consistently outperforms traditional homoscedastic BO and other baseline methods in terms of average cumulative rewards across various simulated control and robotic tasks.
  • Faster Convergence: The adaptive MPC with heteroscedastic BO often finds optimal or near-optimal hyperparameters and parameter distributions in fewer iterations compared to other methods.
  • Robustness to Model Uncertainty: Experiments show that even when the learned parameter distributions don't perfectly match the true values (e.g., in Half-Cheetah), the controller achieves higher rewards, demonstrating robustness.
  • Demonstrated Heteroscedastic Behavior: The paper visualizes the heteroscedastic nature of the noise in reward signals, particularly for the MPC hyperparameters, justifying the need for the proposed model.
  • Successful Real-World Transfer (Limited): Experiments on a real Jaco 2 robot show promising results, with the learned parameter distributions approximating the true values, though the paper notes that optimizing for point estimates is outside the scope of this work.

Limitations and Future Work

  • Computational Cost: While BO is sample-efficient, optimizing complex dynamics models and controllers can still be computationally intensive. The paper mentions using GPU acceleration for MPC rollouts in the PANDA simulator.
  • GP Surrogate Limitations: The reliance on Gaussian Processes as surrogates might become a bottleneck for very high-dimensional parameter spaces or highly complex objective functions.
  • Future Work:
    • Non-GP Surrogates: Exploring alternative surrogate models for BO, such as Bayesian Neural Networks, could handle more complex scenarios.
  • Theoretical Analysis: Developing theoretical guarantees for the performance and robustness of the proposed framework would be valuable.
  • Broader Applicability: Investigating the framework's effectiveness on a wider range of robotic tasks and more complex dynamics models.
  • Optimizing Point Estimates: While the current work focuses on distributions, future work could explore methods to directly optimize for point estimates of model parameters if needed.

Summary updated

BibTeX
@inproceedings{apaza2022bayesian,
  author = {Rel Guzman Apaza and Rafael Oliveira and Fabio Ramos},
  title = {{Bayesian Optimisation for Robust Model Predictive Control under Model Parameter Uncertainty}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=lzyce0jQq2},
}
Figure