Local Bayesian optimization for controller tuning with crash constraints

Alexander von Rohr, David Stenger, Dominik Scheurenberg, Sebastian Trimpe · DOI

Tuning a controller is often considered a "dark art" in robotics and automation. Whether adjusting PID gains or weighting matrices for Model Predictive Control (MPC), the process typically involves tedious manual tweaks and trial-and-error. While Bayesian Optimization (BO) has emerged as a powerful tool to automate this, it often struggles when the search space is high-dimensional or when certain parameter sets cause the system to "crash"—leading to failures that provide no numerical performance score.

In their paper, "Local Bayesian optimization for controller tuning with crash constraints," Alexander von Rohr and his team at RWTH Aachen University present VDP-GIBO, an algorithm designed to navigate these high-risk tuning landscapes efficiently.

The Challenge: Dimensionality and Safety

Automated controller tuning faces two major hurdles. First is the curse of dimensionality: standard global BO works well for a few parameters, but the required experiments explode as complexity increases (e.g., 6-8 parameters for MPC). Second are crash constraints: in real-world systems, some parameters cause catastrophic failures (like a tank overflowing). These crashes are non-numerical, making it difficult for standard optimizers to learn from them.

The VDP-GIBO Framework

The researchers built upon GIBO (Gradient Information with BO), which focuses on local optimization. Instead of mapping the entire parameter space, GIBO uses local evaluations to estimate the performance function's gradient and takes steps toward improvement. This local focus significantly improves scalability in high-dimensional spaces.

The closed-loop tuning framework where Bayesian optimization iteratively updates controller parameters based on plant performance and safety constraints.

To handle system failures, they integrated Virtual Data Points (VDP). When a parameter set causes a crash, the algorithm doesn't ignore it. Instead, it assigns a "virtual observation"—an adaptive penalty calculated to be just "bad enough" to discourage the optimizer from returning to that region without breaking the Gaussian Process (GP) model's differentiability.

Visual representation of how a virtual data point (red 'x') in the crash region updates the GP model of the objective function and its gradient, pushing the search back toward the feasible region.

Experimental Validation

The method was evaluated on a Coupled Tank System benchmark, both in simulation and on physical hardware. The team tested various configurations, including an 8-parameter LQI controller and a 6-parameter MPC.

Key results include:

  • High-Dimensional Efficiency: VDP-GIBO successfully tuned complex controllers where random search and global BO failed within the experimental budget.
  • Hardware Success: Physical experiments showed performance improvements of 33% for PI controllers and 50% for cascaded PI controllers.
  • Safety Navigation: The algorithm successfully navigated the boundaries of feasible regions in hardware tests without repeatedly triggering emergency stops.

Conclusion

VDP-GIBO demonstrates that local search, combined with a smart way to interpret failures, can make automated tuning practical for complex, high-stakes robotic systems. While local methods can occasionally get stuck in local optima, the authors argue that many control landscapes are sufficiently well-behaved for this approach to be highly effective. Future work may focus on more robust step-size adaptation and handling non-deterministic crashes.

Summary updated

BibTeX
@article{rohr2024local,
  author = {Alexander von Rohr and David Stenger and Dominik Scheurenberg and Sebastian Trimpe},
  title = {{Local Bayesian optimization for controller tuning with crash constraints}},
  journal = {Automatica},
  year = {2024},
  doi = {10.1515/auto-2023-0181},
}
Figure