Falsification of Learning-Based Controllers through Multi-Fidelity Bayesian Optimization

Zahra Shahrooei, Mykel J. Kochenderfer, Ali Baheri

TL;DR

Testing safety-critical autonomous systems is notoriously expensive because high-fidelity simulations are computationally heavy. This paper introduces a Multi-Fidelity Bayesian Optimization (MFBO) framework that intelligently combines cheap, low-accuracy simulations with expensive, high-accuracy ones to find "counterexamples"—specific scenarios where a controller fails—at a fraction of the usual cost.

What Problem Does This Paper Address?

In the world of autonomous systems (like self-driving cars or drones), "falsification" is the process of intentionally trying to find a scenario that breaks the system’s safety requirements. If you can’t find a way to break it, you have higher confidence it’s safe.

The challenge is that modern controllers are often "black boxes" (like deep neural networks), and the environments they operate in are complex. To find failures, researchers usually rely on high-fidelity simulators. However, running thousands of high-fidelity simulations is slow and expensive. While Bayesian Optimization (BO) has been used to make this search more efficient than random sampling, standard BO still treats every simulation as equally expensive. This paper addresses the need for a search strategy that can leverage "cheap" data from simplified models to guide the search in "expensive" realistic models.

Methods

The authors propose a framework that treats falsification as an optimization problem: find the environment parameters that minimize a "safety robustness" score (where a negative score indicates a safety violation).

Key components include:

  • Multi-Fidelity Gaussian Processes (GP): Instead of modeling just the high-fidelity simulator, the authors use a recursive model where the high-fidelity output is modeled as a scaled version of the low-fidelity output plus an "error" or "gap" term. This allows the algorithm to learn the correlation between different levels of simulation.
  • Multi-Fidelity Entropy Search (MFES): This is the "brain" of the system. Standard acquisition functions tell you where to sample next. MFES tells you where to sample (which environment parameters) AND at which fidelity level (cheap vs. expensive). It chooses the option that provides the most information about the global minimum relative to the computational cost.
  • Signal Temporal Logic (STL): The safety specifications (e.g., "the pole must never tilt more than 9 degrees") are mathematically encoded using STL, which provides the quantitative "robustness score" used as the objective function.

Datasets

The researchers evaluated their framework on three classic control benchmarks from the OpenAI Gym library:

  1. Cart-Pole: Balancing a pole on a cart with 7 sources of uncertainty (mass, length, force, etc.).
  2. Mountain Car: Driving a car up a steep hill, considering uncertainties in initial position, velocity, and power.
  3. Lunar Lander: Landing a craft softly within a designated zone, with uncertainties in coordinates and velocities.

To create "multi-fidelity" setups, they used two scenarios:

  • Scenario 1 (Sensor Noise): The low-fidelity simulator adds Gaussian noise to state observations, while the high-fidelity one is "clean."
  • Scenario 2 (Numerical Precision): The low-fidelity simulator rounds state variables to 2 decimal places, while the high-fidelity one uses full 32-bit precision.

Key Insights and Ideas

  • Cost-Aware Search: The algorithm assumes a cost ratio (e.g., high-fidelity is 5x more expensive than low-fidelity). By doing this, the optimizer often chooses to "scout" the parameter space using the cheap simulator and only "confirms" potential failures with the expensive one.
  • Information Gain per Dollar: The core "aha" moment is that a low-fidelity simulator doesn't need to be perfectly accurate to be useful; it just needs to be correlated with the high-fidelity one. If the cheap model fails in a certain region, the expensive model likely will too.
  • Automatic Switching: The framework automatically decides when the cheap simulator has provided all the information it can, at which point it switches to high-fidelity runs to pinpoint the exact failure modes.

Key Results

The MFBO approach was compared against standard single-fidelity BO and random search.

  • Efficiency: MFBO found significantly more counterexamples for the same total computational "budget" compared to other methods.
  • Cost Reduction: In the Cart-Pole environment, MFBO reduced the number of expensive high-fidelity simulations by 10% to 20% while maintaining comparable falsification performance.
  • Superior Falsification: In the Lunar Lander and Mountain Car tests, MFBO consistently found lower (more "falsified") robustness values than standard BO, proving it explores the failure space more effectively.

Limitations and Future Work

  • Correlation Complexity: The current model assumes a relatively simple linear relationship ($\eta$) between fidelity levels. The authors note that future work should explore more complex, non-linear correlations between simulators.
  • Scaling Fidelity Levels: While this paper focused on two levels (low and high), real-world engineering often involves a spectrum of fidelities (analytical models, 2D simulations, 3D simulations, hardware-in-the-loop). Testing how this scales to $q > 2$ levels remains an open task.
  • Computational Overhead: Bayesian Optimization itself requires solving an optimization problem at each step. For extremely fast simulators, the time spent "thinking" about where to sample might outweigh the time saved in simulation.

Summary updated

BibTeX
@inproceedings{shahrooei2023falsification,
  author = {Zahra Shahrooei and Mykel J. Kochenderfer and Ali Baheri},
  title = {{Falsification of Learning-Based Controllers through Multi-Fidelity Bayesian Optimization}},
  booktitle = {ECC},
  year = {2023},
  doi = {10.23919/ecc57647.2023.10178417},
}
Figure