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

Synthesis and Deployment of Maximal Robust Control Barrier Functions through Adversarial Reinforcement Learning

Donggeon David Oh, Duy P. Nguyen, Haimin Hu, Jaime Fernández FisacarXiv 2026

TL;DR

This paper introduces a novel robust Q-Control Barrier Function (Q-CBF) framework that enables model-free, real-time safety filtering for complex nonlinear systems under worst-case disturbances. By leveraging adversarial reinforcement learning, the method bypasses the need for explicit analytical dynamics models and recovers the maximal robust safe set, achieving a 100% safety rate on a simulated 36-degree-of-freedom quadruped robot under adversarial forces.

What Problem Does This Paper Address?

Ensuring safety in autonomous systems (like robots or self-driving cars) requires a safety filter that can step in and modify a user's control commands whenever a violation is imminent. Control Barrier Functions (CBFs) are a popular mathematical tool for this, acting as a "shield" by enforcing safety constraints at every timestep.

However, traditional robust CBFs suffer from two major flaws:

  1. Model Dependence: They typically require explicit, closed-form analytical models of the system's dynamics (usually assuming a "control-affine" structure) and well-defined uncertainty bounds. This makes them impractical for complex, black-box systems like high-dimensional robots interacting with unpredictable environments.
  2. Conservatism: To guarantee safety under uncertainty, traditional methods often over-approximate the danger, resulting in highly conservative "safe sets" that severely restrict the robot's performance.

The authors tackle this gap by asking: Can we synthesize a robust safety filter for high-dimensional, black-box systems that guarantees safety under worst-case disturbances without being overly conservative?

Methods

The authors bridge the gap between Hamilton-Jacobi-Isaacs (HJI) reachability analysis (which computes maximal safe sets via game theory) and Control Barrier Functions.

Their approach consists of three key steps:

  1. The Q-Function Lift: They prove that the safety value function from HJI reachability is a valid discrete-time CBF. Crucially, they lift this state-value function $V(x)$ into a state-action-disturbance quality function $Q(x,u,d)$. This "Q-lift" implicitly embeds the system dynamics into the function itself, removing the need for explicit closed-form equations during runtime filtering.
  2. Adversarial Reinforcement Learning: Because solving the HJI equation directly suffers from the curse of dimensionality, the authors use game-theoretic adversarial RL to train the Q-network. The controller tries to maximize safety, while an adversarial disturbance policy tries to minimize it. They use Gradient Descent-Ascent (GDA) with timescale separation to stabilize this zero-sum game.
  3. Eliminating Runtime Optimization: Evaluating a robust CBF normally requires a nested optimization loop to find the worst-case disturbance at every single timestep—a blocker for real-time control. The authors solve this by training a dedicated best-response disturbance policy network. At runtime, the safety filter simply queries this network via a single forward pass to predict and counteract the worst-case disturbance instantly.

Datasets

The framework was evaluated on two simulated environments:

  • Disturbed Inverted Pendulum: A canonical nonlinear control benchmark modified to include explicit control bounds and external force disturbances.
  • 36-D Quadrupedal Locomotion: A high-fidelity MuJoCo simulation of a Unitree Go2 robot. The robot was subjected to adversarial external forces of up to 50 N applied to its torso from arbitrary directions.

Key Insights and Ideas

  • HJI Value Functions are Maximal CBFs: The elegant theoretical insight here is that the solution to the HJI Isaacs equation perfectly defines the maximal robust safe set. By using it as a CBF, you get the absolute least-restrictive safety filter possible.
  • Bypassing Dynamics with Q-Learning: In traditional control, you need $x_{t+1} = f(x_t, u_t, d_t)$ to evaluate a barrier constraint for the next step. By shifting to a $Q(x,u,d)$ formulation, the neural network absorbs the transition mechanics, allowing safety filtering on pure black-box simulators.
  • Local Robustness via Neural Plugs: Even though neural networks are function approximators with inherent errors, the authors prove that enforcing safety against a locally optimal learned adversarial policy automatically provides a safety buffer against all nearby real-world disturbances.

Key Results

Disturbed Inverted Pendulum

The learned Neural Q-CBF nearly perfectly recovered the true maximal robust safe set, whereas traditional analytical and heuristic CBF baselines were highly conservative, restricting the system to a fraction of its truly safe operating space.

Fig. 2: Safe sets and rollout trajectories for the disturbed inverted pendulum. The 0-superlevel set of the neural Q- CBF is substantially less conservative than the barrier-based baselines and nearly recovers the maximal robust safe set. For each method, 20 trajectories are initialized near the boundary of its 0-superlevel set and simulated under the corresponding numerical best-response disturbance.

36-D Quadruped Locomotion

When tested against worst-case adversarial forces in MuJoCo, the Neural Q-CBF achieved a 100% safety rate over 50 trials. In comparison, the standard Least-Restrictive Safety Filter (LRSF) baseline achieved only a 38% safety rate due to neural approximation errors being amplified by last-minute interventions, and the unfiltered policy dropped to 16%.

Furthermore, the Q-CBF filter minimized unnecessary alterations to the robot's original task commands, resulting in much smoother forward locomotion and eliminating the "chattering" behavior common in switching-based safety filters.

Trajectory comparison and control input deviation histogram for the simulated quadruped under adversarial disturbances.

Limitations and Future Work

  • Lack of Hard Guarantees Out-of-the-Box: Because the framework relies on neural network approximations for the Q-function and the disturbance policy, it cannot provide ironclad mathematical safety guarantees without post-hoc verification.
  • Computationally Intensive Synthesis: While runtime deployment is incredibly fast (requiring only a single forward pass), the offline training phase requires extensive adversarial RL training across multiple seeds to ensure the disturbance policy is sufficiently robust.
  • Future Directions: The authors suggest integrating post-hoc verification methods, such as offline statistical calibration via conformal prediction or faster-than-real-time runtime verification using imagined gameplay rollouts, to provide formal safety certificates for the neural networks.

Summary updated

BibTeX
@misc{oh2026synthesis,
  author = {Donggeon David Oh and Duy P. Nguyen and Haimin Hu and Jaime Fernández Fisac},
  title = {{Synthesis and Deployment of Maximal Robust Control Barrier Functions through Adversarial Reinforcement Learning}},
  year = {2026},
  eprint = {2604.13192},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.13192},
}
Figure