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

Neural Control and Certificate Repair via Runtime Monitoring

Emily Yu, Dorde Zikelic, Thomas A. Henzinger

This paper, recently published in December 2024, presents a novel approach to one of the thorniest problems in autonomous systems: making neural network controllers safe when we don't fully understand the environment they are operating in.

TL;DR

The authors propose a "monitor-learner" framework that uses runtime monitoring to detect and predict violations in neural network control policies and their mathematical safety proofs (certificates). By identifying these "breaking points" in a black-box setting, the system automatically extracts new training data to repair both the controller and the certificate, significantly boosting safety and reliability.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) is excellent at solving complex control tasks, like flying a drone through a crowded city. However, neural networks are notoriously "black boxes"—it's hard to prove they won't fail in an edge case.

In control theory, we use certificate functions (like Lyapunov functions for stability or Barrier functions for safety) to mathematically prove a system will behave. Recently, researchers have tried "joint learning," where a neural network policy is trained alongside a neural network certificate.

The catch? This usually requires a "white-box" setting where the system's physics (dynamics) are perfectly known. In the real world—the "black-box" setting—we don't have the exact equations. Consequently, learned controllers often "almost" work but lack the reliability needed for safety-critical deployments like self-driving cars or medical robots.

Methods

The authors introduce a closed-loop framework consisting of two main modules:

  1. The Monitors: Two new algorithms for the black-box setting:
  2. CertPM (Certificate Policy Monitor): This monitor watches the system in real-time. It flags a violation if the agent enters an unsafe state or if the mathematical conditions of the certificate are breached (e.g., if a value that should always decrease starts increasing).
  3. PredPM (Predictive Policy Monitor): This is the "look-ahead" version. It uses basic physical constraints (like maximum acceleration) to estimate the time remaining before a safety or certificate violation occurs. If the "time-to-failure" drops below a threshold, it issues a warning before the crash happens.
  4. The Learner (Repair Phase): When the monitors flag a violation, the state data is captured and added to a specialized "repair" dataset. The policy and certificate networks are then retrained using a loss function that specifically penalizes the detected violations. This iterative process continues until the monitors no longer find "breaking" behaviors.

Datasets

The researchers evaluated their framework on two complex autonomous control benchmarks from the SABLAS codebase:

  • DroneEnv: A 3D environment where a drone must deliver a package while avoiding 1,024 other drones moving on pre-defined routes. This involves an 8-dimensional state space.
  • ShipEnv: A 2D environment where a ship navigates a river among 32 other vessels, requiring a 6-dimensional state space to manage heading and velocity.

Key Insights and Ideas

  • Monitoring the "Proof," not just the Crash: The biggest "aha moment" is that monitoring the certificate conditions (the math) is more effective than just monitoring for safety violations (the crash). Certificate violations happen earlier and more frequently, providing a much richer signal for retraining.
  • Predictive Power in the Dark: Even without knowing the exact system dynamics, the authors show that simple physical bounds (like max acceleration) allow a monitor to predict future failures with surprising accuracy.
  • Closing the Loop: The paper moves from "passive" verification (checking if it's safe) to "active" repair (using the failure data to fix the model), creating a self-improving safety pipeline.

Key Results

The framework was tested against a "baseline" (a simple monitor that only looks for crashes) and the original state-of-the-art SABLAS method:

  • Safety Rate (SR): In the DroneEnv, the initial policy had a 93.99% safety rate. After the repair process using the CertPM monitor, the safety rate jumped to 99.13%.
  • Certificate Reliability: The "Non-decreasing condition" (NDR)—a key mathematical requirement for a valid safety barrier—improved from a dismal 45.38% to over 91.67%.
  • Efficiency: The predictive monitor (PredPM) was able to identify dangerous trajectories earlier, allowing for more proactive repairs.

Limitations and Future Work

  • No Absolute Guarantees: Because the system operates in a black-box setting, the authors acknowledge that they cannot formally prove 100% safety across the entire state space—only that the system is repaired on the trajectories it explores.
  • Initialization Sensitivity: The repair method works best when the initial policy is already somewhat functional (e.g., >90% safety). If the starting policy is total chaos, the monitors might be overwhelmed.
  • Future Directions: The authors suggest extending this to stochastic systems (where noise and randomness are factors) and multi-agent systems where agents must coordinate their safety certificates.

Summary updated

BibTeX
@inproceedings{yu2025neural,
  author = {Emily Yu and Dorde Zikelic and Thomas A. Henzinger},
  title = {{Neural Control and Certificate Repair via Runtime Monitoring}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i25.34840},
}
Figure