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

Heteroscedastic Bayesian Optimisation for Stochastic Model Predictive Control

Rel Guzman Apaza, Rafael Oliveira, Fabio Ramos · DOI

TL;DR

This paper introduces a novel Bayesian optimization (BO) framework designed to tune the hyperparameters of stochastic Model Predictive Control (MPC) systems. By explicitly accounting for input-dependent (heteroscedastic) noise in performance evaluations, their method significantly outperforms standard homoscedastic BO and other baselines on simulated and real-world robotic control tasks.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a powerful technique for controlling complex physical systems by predicting future system behavior and optimizing control actions. However, MPC controllers often have hyperparameters that are difficult to tune, requiring costly interactions with the real system. This challenge is amplified in stochastic MPC (like MPPI), where the inherent randomness of control actions leads to noisy performance outcomes. Crucially, this noise isn't uniform across all hyperparameter settings; it can vary depending on the specific hyperparameter values. Traditional Bayesian Optimization (BO) methods assume this noise is independent and identically distributed (i.i.d.), which is a limiting assumption when dealing with heteroscedastic noise, potentially leading to suboptimal tuning. This paper aims to bridge this gap by developing a BO approach that can effectively handle and leverage this input-dependent noise for more efficient and accurate hyperparameter tuning of stochastic MPC.

Methods

The core contribution is a heteroscedastic Bayesian Optimization (BOhetero) framework. This framework extends standard BO by:

  • Modeling Heteroscedastic Noise: Instead of assuming constant noise variance, BOhetero models the noise as a function of the hyperparameters. This is achieved using a flexible parametric noise model, specifically a generalized linear model based on a feature map (e.g., polynomial features) and learned weights, combined with an exponential function to ensure positive definiteness.
  • Gaussian Process (GP) for Expected Reward: The expected cumulative reward is modeled using a standard Gaussian Process (GP).
  • GP for Noise Variance: A separate GP is used to model the variance of the observation noise, allowing it to vary with the input hyperparameters.
  • Two-Stage Approach (for noise model): The paper proposes a practical way to learn the noise model: first, fit a GP to the expected cumulative reward, then use the residuals to fit the parametric noise model.
  • Bayesian Optimization Loop: The overall process follows a standard BO loop: fit a GP to observed data, use an acquisition function (like Upper Confidence Bound - UCB) to select the next hyperparameter to evaluate, perform the evaluation (run MPC episodes), and update the GP model.

The novelty lies in the explicit modeling and integration of heteroscedastic noise within the BO framework for hyperparameter tuning of control systems.

Datasets

The paper evaluates its method on several benchmark continuous control tasks from OpenAI Gym and MuJoCo:

  • Acrobot
  • Cartpole
  • Half-Cheetah
  • Pendulum
  • Reacher

Additionally, experiments were conducted on a physical four-wheel-drive skid-steer robot tasked with following a circular path. The reward functions for these tasks are detailed in Table I.

Key Insights and Ideas

  • Noise is Not Uniform: The most significant insight is the empirical observation and explicit modeling of input-dependent (heteroscedastic) noise in the performance of stochastic MPC controllers. This is visually demonstrated in Figure 1, showing how the variance of episode rewards changes with the MPPI temperature parameter.
  • Heteroscedasticity Matters for Performance: Accounting for this varying noise leads to better hyperparameter tuning. BOhetero consistently outperforms its homoscedastic counterpart (BOhomo) and a non-BO baseline (CMA-ES), especially in scenarios where noise is significantly non-uniform.
  • Flexible Noise Models are Key: The use of a flexible parametric noise model (like polynomials) is crucial for capturing the observed heteroscedasticity, allowing the optimizer to better understand the performance landscape.
  • Data Efficiency: BOhetero, by leveraging the noise model, can achieve better performance with fewer evaluations compared to baselines, making it a more data-efficient approach for tuning complex controllers.

Key Results

  • Outperforms Baselines: BOhetero consistently achieved higher expected cumulative rewards than BOhomo and CMA-ES across simulated control tasks (Acrobot, Cartpole, Half-Cheetah, Pendulum, Reacher) and on the physical robot.
  • Improved Performance on Physical Robot: Experiments on a skid-steer robot demonstrated that BOhetero maintained a steady high performance, indicating lower tracking error for a circular path, while BOhomo showed significant performance drops due to its uniform noise assumption.
  • Faster Convergence: In some cases, BOhetero found optimal regions faster than CMA-ES, highlighting its data efficiency.
  • Noise Model Effectiveness: Figure 5 shows how BOhetero (lower row) better captures the varying noise across hyperparameter ranges compared to BOhomo (upper row).

Limitations and Future Work

  • Parametric Noise Model: While flexible, the chosen parametric noise model might not capture all forms of heteroscedasticity, especially highly complex or non-smooth variations.
  • Skewness: The paper notes that in some cases (Half-Cheetah, Pendulum), the noise is skewed around the mean, suggesting that a purely Gaussian noise model might not be sufficient.
  • Online Learning: The authors suggest that future work could explore online learning of the noise model to adapt to unforeseen situations during the optimization process.
  • Non-Gaussian Noise: Investigating non-Gaussian noise models would be a valuable extension to handle more complex noise distributions.

Summary updated

BibTeX
@article{apaza2020heteroscedastic,
  author = {Rel Guzman Apaza and Rafael Oliveira and Fabio Ramos},
  title = {{Heteroscedastic Bayesian Optimisation for Stochastic Model Predictive Control}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2020},
  doi = {10.1109/lra.2020.3028830},
}
Figure