eess.SYOct 20, 2026

Anytime-Valid Runtime Monitoring of Learned Barrier Certificates

Authors: Zhipeng Cao, Taoran Wu, Weiru Cui, Luke Ong, Bai Xue

Organizations: Institute of Software, Chinese Academy of Sciences · School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences · University of Chinese Academy of Sciences · College of Computing and Data Science, Nanyang Technological University

Abstract

Learned barrier certificates provide a principled mechanism for establishing safety of stochastic systems, but their validity may deteriorate during deployment when the underlying dynamics differ from those used for training. We propose an anytime-valid runtime monitor that audits a learned barrier certificate using observed closed-loop trajectories. The monitor is intended to detect loss of statistical support for the deployed barrier condition; it does not by itself guarantee detection before unsafe entry or safety of a subsequent intervention. Specifically, the conditional barrier-drift condition is formulated as an episode-wise sequential hypothesis test, and observed barrier increments are transformed into a nonnegative test supermartingale, yielding finite-sample false-alarm control under arbitrary stopping times. Inspired by finite-horizon safety verification, we further introduce a deterministic temporal shaping of the monitoring boundary, making the monitor more conservative early in a prescribed deployment horizon while preserving anytime-validity. The monitor is designed to detect statistical evidence that the safety certificate is no longer consistent with the observed dynamics, rather than to predict unsafe entry. To assess the monitor empirically, we evaluate empirical alarm behavior under valid and invalid certificates. Code and data are available at https://github.com/FormalCert-AI/runtime-barrier-monitor.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Set-Based Training of Neural Barrier Certificates for Safety Verification of Dynamical Systems

    May 4, 2026Miriam Kranzlmüller, Lukas Koller, Tobias Ladner +1Neural Network VerificationSafety-Critical Control

  2. Stochastic Barrier Certificates in the Presence of Dynamic Obstacles

    Apr 22, 2026Rayan Mazouz, Luca Laurenti, Morteza LahijanianControl Barrier FunctionsDynamic Obstacle Avoidance

  3. Runtime Monitoring of Supermartingale Certificates

    Oct 14, 2026Mirco Giacobbe, Thomas A. Henzinger, Konstantin Kueffner +2Runtime Verification