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

Abstract

In robotics, the discrepancy between simulated environments and the physical world—the "reality gap"—often hinders the deployment of controllers tuned in simulation. This paper proposes an adaptive framework that jointly optimizes Model Predictive Control (MPC) hyperparameters and estimates the probability distributions of uncertain dynamics parameters. By employing Bayesian Optimization (BO) with a heteroscedastic noise model, the framework accounts for input-dependent variance in stochastic controllers. Our results demonstrate that this approach significantly improves sample efficiency and robustness across various benchmarks, including a real-world Jaco 2 robotic arm.

1. Introduction

The development of robust robotic controllers frequently relies on high-fidelity simulators. However, model inaccuracies regarding physical properties such as mass, friction, or damping lead to sub-optimal performance when transferred to real hardware. While Domain Randomization (DR) is a common technique to mitigate this reality gap by training across a range of parameters, the selection of these ranges is typically a manual process based on intuition.

Furthermore, tuning stochastic controllers, such as Model Predictive Path Integral (MPPI) control, presents a unique challenge: the reward signal is inherently noisy. Crucially, this noise is heteroscedastic—meaning the variance of the reward changes depending on the controller's parameter settings. Standard tuning methods often assume homoscedastic (constant) noise, which can lead the optimizer toward unstable regions of the parameter space. This paper addresses these challenges by proposing a joint optimization strategy that treats both controller and dynamics parameters as variables within a heteroscedastic BO framework.

2. Methodology

The proposed framework aims to maximize the expected cumulative reward by simultaneously searching for optimal controller hyperparameters ($\phi$) and dynamics model distribution parameters ($\psi$).

2.1 Adaptive Domain Randomization

Rather than seeking a single point estimate for dynamics parameters (e.g., a specific mass), the framework estimates the parameters of probability distributions (such as Gamma or Beta distributions). This allows the controller to be optimized against a distribution of possible environments, inherently increasing its robustness to model uncertainty.

2.2 Heteroscedastic Bayesian Optimization

To handle the input-dependent noise of stochastic controllers, the authors extend standard BO using a two-stage regression process:

  1. Mean Modeling: A 10-degree polynomial is used to fit the expected reward across the parameter space.
  2. Noise Modeling: The residuals (the differences between observed rewards and the polynomial fit) are used to model the noise variance as a function of the input parameters.

By explicitly modeling this variance, the BO algorithm can distinguish between regions of high expected reward with high instability and regions that offer reliable, robust performance.

2.3 Joint Optimization Loop

The objective function is defined as the expected cumulative reward over the distribution of dynamics parameters. The BO algorithm iteratively selects combinations of $(\psi, \phi)$ to evaluate, progressively refining its surrogate model of the reward and noise landscapes.

3. Experimental Evaluation

The framework was evaluated on a diverse set of tasks ranging from classical control to real-world manipulation:

  • Classical Benchmarks: Cartpole and Pendulum (OpenAI Gym).
  • Locomotion and Reaching: Half-Cheetah, Reacher, and Fetchreach (MuJoCo).
  • Obstacle Avoidance: A PANDA robotic arm task in NVIDIA’s IsaacGym.
  • Real-World Transfer: A Jaco 2 robot reaching task where arm segment lengths were treated as uncertain parameters.

4. Results and Discussion

4.1 Efficiency and Reliability

The heteroscedastic BO approach consistently outperformed baseline methods, including standard homoscedastic BO and Covariance Matrix Adaptation Evolution Strategy (CMA-ES). The proposed method reached higher cumulative rewards in fewer iterations and exhibited significantly lower variance in performance across different runs, indicating a more stable optimization process.

4.2 The "Optimal" vs. "True" Model

An important insight from the experiments is that the dynamics parameters that yield the best controller performance do not always align with the "true" physical parameters of the system. For instance, in the Fetchreach task, the optimizer converged on a higher-than-actual damping ratio. This "incorrect" model allowed the controller to apply higher torques without inducing instability, effectively compensating for the limitations of the MPPI algorithm itself.

4.3 Sim-to-Real Transfer

On the Jaco 2 robot, the framework successfully inferred the necessary model adjustments and tuned the controller to achieve accurate reaching. Even when initialized with poor estimates of the robot's physical dimensions, the joint optimization loop converged to a configuration that performed reliably on the physical hardware.

5. Conclusion and Future Work

This research demonstrates that modeling heteroscedastic noise is critical for the efficient tuning of stochastic robotic controllers under uncertainty. By jointly optimizing model distributions and controller settings, the framework provides a principled way to bridge the reality gap.

Future work may address the limitations of the current parametric noise model by exploring non-Gaussian Process surrogates, such as Bayesian Deep Neural Networks, which could better scale to high-dimensional parameter spaces. Additionally, investigating non-parametric noise models could further improve the flexibility of the framework across diverse control landscapes.

References

Guzman, R., Oliveira, R., & Ramos, F. (2022). Bayesian Optimisation for Robust Model Predictive Control under Model Parameter Uncertainty. arXiv:2203.00551v3 [cs.RO].

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