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

Neural Control and Certificate Repair via Runtime Monitoring

Emily Yu, Dorde Zikelic, Thomas A. Henzinger · DOI

Introduction

Ensuring the safety of autonomous systems controlled by neural networks remains a significant challenge, particularly in "black-box" environments where system dynamics are not fully known. While Deep Reinforcement Learning (RL) excels at complex tasks, the lack of formal safety guarantees limits its deployment in safety-critical applications. Traditional control theory employs certificate functions—such as Lyapunov or Barrier functions—to provide mathematical proofs of stability and safety. However, joint learning of policies and certificates typically requires "white-box" knowledge of system physics. This paper proposes a novel "monitor-learner" framework designed to bridge this gap by identifying and repairing safety violations in a black-box setting.

The Monitor-Learner Framework

The core of the proposed approach is a closed-loop system that integrates runtime monitoring with an iterative repair mechanism. As shown in Figure 1, the framework consists of an environment, a neural network policy ($\pi$), and certificate functions (Lyapunov $\mathcal{V}$ and Barrier $\mathcal{B}$).

The proposed monitor-learner framework for iterative policy and certificate repair.

The system operates by continuously monitoring the agent's behavior and the validity of its mathematical safety certificates. When a violation is detected, the relevant state data is captured to update a "repair" dataset, which is then used by the Learner to retrain both the controller and the certificates.

Runtime Monitoring and Prediction

The authors introduce two specialized monitoring algorithms for black-box environments:

  1. Certificate Policy Monitor (CertPM): This monitor tracks the system in real-time, flagging instances where the agent enters unsafe states or when the mathematical conditions of the safety certificates are breached. For instance, it detects if a Lyapunov value, which should strictly decrease, begins to increase.
  2. Predictive Policy Monitor (PredPM): This "look-ahead" monitor utilizes known physical constraints (e.g., maximum acceleration) to estimate the time remaining before a potential safety or certificate violation. By issuing warnings before a failure occurs, it enables proactive safety management.

Experimental Evaluation

The framework was evaluated on two challenging benchmarks: DroneEnv, an 8D state space environment involving package delivery amidst 1,024 dynamic obstacles, and ShipEnv, a 6D environment for river navigation among 32 other vessels.

Key Results

The iterative repair process significantly enhanced both safety and certificate reliability. In DroneEnv, the initial policy's safety rate of 93.99% improved to 99.13% after repair. More importantly, the reliability of the "Non-decreasing condition" (NDR)—a critical mathematical requirement for safety barriers—rose from 45.38% to over 91.67%.

Reduction in barrier and non-decreasing condition violations across successive repair iterations.

As illustrated in Figure 3, each repair cycle leads to a marked decrease in the number of violations per run. By monitoring the "proof" (the certificate conditions) rather than just the "crash," the system gains a much richer training signal, allowing it to fix edge cases before they manifest as physical failures.

Conclusion and Future Work

This research demonstrates that runtime monitoring of certificate conditions is a powerful tool for improving neural control safety in uncertain environments. By closing the loop between verification and learning, the framework creates a self-improving safety pipeline. While the current method does not offer absolute formal guarantees across the entire state space, it provides a practical path toward more reliable autonomous systems. Future work will explore extending this framework to stochastic and multi-agent systems.

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