Adaptive Model Predictive Control by Learning Classifiers

Rel Guzman Apaza, Rafael Oliveira, Fabio Ramos

Abstract

This paper presents a robust framework for automatically tuning Model Predictive Control (MPC) by reframing Bayesian Optimization as a classification task. Utilizing Bayesian Optimization by Density Ratio Estimation (BORE), the authors develop an adaptive controller capable of handling model uncertainty and heteroscedastic noise more effectively than traditional Gaussian Process-based methods. Experimental results in complex simulated robotics tasks, such as 7-DOF arm manipulation, demonstrate that this classifier-based approach achieves superior performance and faster convergence compared to existing optimization baselines.

Introduction

Model Predictive Control (MPC) is a fundamental tool in robotics for trajectory planning and action execution. However, its real-world application is often hampered by the "tuning headache": the requirement for highly accurate dynamic models and precisely calibrated hyper-parameters. Traditional Bayesian Optimization (BO) typically employs Gaussian Processes (GPs) to address this, but GPs are computationally intensive and struggle with heteroscedastic noise—where noise levels vary across the state space—without significant mathematical complexity. This work proposes a shift from regression-based optimization to classification-based density ratio estimation to overcome these limitations.

Methodology

The proposed framework integrates Model Predictive Path Integral (MPPI) control with a novel optimization loop based on BORE (Bayesian Optimization by Density Ratio Estimation).

Instead of regressing exact reward values, BORE treats optimization as a binary classification problem: distinguishing "top-tier" performing parameter sets from the rest. By training a probabilistic classifier (such as a Multi-Layer Perceptron) on sampled data, the system estimates a density ratio that serves as a proxy for the Expected Improvement acquisition function. This allows for the Joint Adaptation of both physical model parameters (e.g., mass, friction) and the controller's own hyper-parameters (e.g., cost function temperature) within an episodic loop.

Overview of the adaptive MPC framework. The BORE iteration proposes parameters to the episodic loop, which executes actions and feeds back cumulative rewards to update the classifier.

Experimental Setup

The researchers evaluated the framework across several simulated environments:

  • OpenAI Gym Benchmarks: Pendulum, Half-Cheetah, and Fetchreach, with introduced physical uncertainties (e.g., modified rod lengths or mass scaling).
  • Panda Robot Task: A high-dimensional task involving a 7-DOF Franka Emika Panda arm navigating around obstacles to reach a target.

Key Results and Insights

The core insight of this work is that global optimization does not require precise reward prediction across the entire parameter space; it only requires identifying the regions of superior performance. Classifiers are inherently more robust to label noise and heteroscedasticity than GP regressors.

In the Panda robot task, the BORE-MLP variant achieved a maximum reward of -21106.36, significantly outperforming standard homoscedastic BO (-22870.14) and the CMA-ES evolution strategy (-23779.35). The method also demonstrated faster convergence and better scalability in higher-dimensional problems.

Learning curves for the Panda robot task. The plot illustrates how the averaged episodic reward improves over iterations for different settings of the quantile parameter gamma.

Conclusion and Future Work

By leveraging density ratio estimation, the BORE framework provides a scalable and noise-robust solution for tuning complex robotic controllers. While empirical results are strong, future research will focus on providing formal theoretical guarantees regarding heteroscedasticity and validating the system on physical hardware where environmental noise is even less predictable.

Summary updated

BibTeX
@inproceedings{apaza2022adaptive,
  author = {Rel Guzman Apaza and Rafael Oliveira and Fabio Ramos},
  title = {{Adaptive Model Predictive Control by Learning Classifiers}},
  booktitle = {L4DC},
  year = {2022},
  url = {https://openreview.net/forum?id=4BWHyGl0o1},
}
Figure