Generating Adversarial Disturbances for Controller Verification

Udaya Ghai, David Snyder, Anirudha Majumdar, Elad Hazan

Abstract

We consider the problem of generating maximally adversarial disturbances for a given controller assuming only blackbox access to it. We propose an online learning approach to this problem that adaptively learns from the controller's reactions to find failure modes. Our method, Memory Online Trust Region (MOTR), treats the disturbance generation as an online optimization problem, providing a rigorous framework for stress-testing autonomous systems against adaptive adversaries.

Introduction

In the field of robotics, verifying the robustness of a controller is critical for safety-critical applications. Traditional verification methods often rely on testing against random noise or utilizing $H_\infty$ control theory to identify worst-case disturbances. However, these approaches face significant challenges when applied to modern autonomous systems.

First, many contemporary controllers, particularly those utilizing neural networks or complex adaptive logic, are "black boxes" where internal logic is not mathematically transparent. Second, static worst-case disturbances are often insufficient to challenge adaptive controllers that can learn to mitigate fixed noise patterns. To address these gaps, we propose a method to generate adaptive, maximally adversarial disturbances using only black-box access to the controller.

Methodology: The MOTR Algorithm

We frame the generation of disturbances as an online learning problem. Rather than a static attack, we learn a Control-disturbance Generator (CDG) policy that maps historical control inputs to current disturbances.

The core of our approach is the Memory Online Trust Region (MOTR) algorithm. MOTR addresses the non-convex nature of maximizing controller cost by formulating it as an Online Trust Region (OTR) problem. By employing a "Follow-the-Perturbed-Leader" (FPL) strategy, the algorithm maintains a history of controller performance and periodically solves a trust-region subproblem. This subproblem possesses "hidden convexity," allowing for efficient global optimization. Crucially, we provide regret guarantees demonstrating that MOTR's performance is competitive with the optimal disturbance-generating policy identified in hindsight.

Experimental Evaluation

We evaluated MOTR across two distinct domains to assess its versatility and effectiveness:

  1. Synthetic Linear Systems: A benchmark consisting of 11 randomly generated linear dynamical systems was used to compare MOTR against standard control-theoretic baselines across various initial conditions.
  2. AirSim Drone Simulator: To test real-world applicability, we utilized the AirSim environment, a high-fidelity physics simulator. We modeled a 13-dimensional rigid-body quadrotor drone controlled by the industry-standard PX4 autopilot.
A quadrotor drone navigating the mountainous AirSim environment, used to test MOTR's ability to generate adversarial wind gusts.

Results and Discussion

Our experiments yielded several key insights into the nature of controller vulnerability:

  • Superior Adversarial Performance: In synthetic benchmarks, MOTR consistently generated higher costs—indicating more effective adversarial disturbances—compared to Gaussian noise, sinusoidal gusts, and standard $H_\infty$ generators.
  • Exploiting Adaptive Controllers: While adaptive controllers like the PX4 can often attenuate static $H_\infty$ disturbances, MOTR successfully degraded performance by updating its strategy faster than the controller could adapt. This highlights the necessity of adaptive adversaries in verification.
  • Efficiency of Hidden Convexity: The ability to solve the trust-region subproblem globally allowed MOTR to find failure modes that traditional local optimization methods might miss.

Conclusion and Future Work

MOTR provides a robust framework for generating adversarial disturbances for black-box controllers. By treating adversity as a learning problem, we can more effectively identify the breaking points of autonomous systems.

Future research will focus on extending the theoretical regret guarantees to fully non-linear dynamics. Additionally, we aim to reduce the reliance on known system dynamics by incorporating bandit feedback to learn both the environment and the controller simultaneously. Extending this framework to time-varying environments remains a key objective for enhancing the robustness of next-generation robotics.

Summary updated

BibTeX
@inproceedings{ghai2021generating,
  author = {Udaya Ghai and David Snyder and Anirudha Majumdar and Elad Hazan},
  title = {{Generating Adversarial Disturbances for Controller Verification}},
  booktitle = {L4DC},
  year = {2021},
  url = {https://openreview.net/forum?id=HfWUcFfFWc},
}
Figure