arXiv:2610.27870cs.ROOct 2026

Manuscript Offprint

arXiv:2610.27870

Enumeration-Guided Training of Neural Hamilton-Jacobi Safety Certificates

Mihaela-Larisa Clement, Tosca Pierro, Ezio Bartocci, Luca Marzari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Hamilton–Jacobi (HJ) reachability analysis offers formal safety guarantees for control systems, but training accurate neural certificates remains difficult, particularly when unsafe regions are hard to characterize. We propose a verification-guided training framework that addresses this by using probabilistic enumeration of safety constraints to detect forward-invariance violations, i.e., states where the learned certificate incorrectly classifies unsafe behavior. This produces a compact, targeted set of counterexamples that more precisely captures the failure boundary than inputs generated by standard adversarial attack methods. Crucially, using this representation to fine-tune a pretrained HJ value function yields larger certified regions and reduces certification time across all tested benchmarks. We further introduce a shielding mechanism based on the refined certificates to enforce safety constraints at deployment time. We evaluate the proposed safety filter in a realistic, physics-based Isaac Sim environment and through real-world autonomous racing experiments, achieving zero safety constraint violations compared to a nominal controller and a backup policy based on Linear Quadratic Regulation (LQR). These results demonstrate the effectiveness of the proposed shielding mechanism in ensuring safe operation under high-speed, safety-critical conditions.

1 Introduction

For control systems interacting with the physical world, safety is a primary concern in controller design, as controllers must satisfy safety constraints at all time steps over an infinite horizon. Consider, for example, a robot locomotion task where safety requires maintaining a positive clearance from surrounding obstacles at all times. Two distinct challenges arise in such settings. The first is identifying the set of states from which long-term constraint satisfaction is guaranteed, the so-called feasible region, since the deployment of a controller should be restricted to this set. The second is actively enforcing safety at runtime, as even when a controller is initialized within the feasible region, it may issue actions that push the system toward constraint violations, and an explicit safety mechanism is required to intercept and correct such actions before they are executed. Addressing both challenges simultaneously is essential for deploying safety-critical controllers in realistic environments.

A widely adopted approach to enforce safety constraints is based on Model Predictive Control (MPC) [1]. Nominal MPC incorporates state and input constraints directly into a finite-horizon optimal control problem solved repeatedly online. Under suitable assumptions, nominal MPC can exhibit a degree of robustness; however, when hard state constraints are present, these safety margins can become very small. To account for bounded disturbances and model uncertainty, robust MPC variants such as tube-based methods [2, 3] confine the system trajectory to a tube around the nominal trajectory, ensuring constraint satisfaction through tightening of the nominal problem. Nonetheless, constraint tightening can introduce conservatism that degrades performance in demanding tasks, and the finite planning horizon limits the scope of safety guarantees that can be provided.

A more principled framework for characterizing safety over an infinite horizon is Hamilton–Jacobi (HJ) reachability analysis [4], which offers a formal setting for computing feasible regions of control systems subject to safety constraints. HJ reachability defines the feasible region as the zero-sublevel set of a value function V(x)V(x), representing the worst-case constraint violation along an optimally controlled trajectory originating from state x. Compared with MPC-based

① Enumeration of unsafe regions

② Fine tuning + Verification phase

③ Safety Filter and Safe Deploy

Figure

Figure 1: Overview of the proposed enumeration-guided training and online safety filter pipeline.

approaches, HJ reachability provides direct global safety guarantees rather than relying on finite-horizon optimization and repeated replanning. This makes V a natural candidate not only for certifying the feasible region, but also for constructing a runtime safety filter, namely a shield, that corrects unsafe control actions by substituting a verified backup policy whenever a nominal controller would violate the safe set boundary. However, this increased rigor comes at a high computational cost, as the underlying HJ partial differential equations suffer from the well-known curse of dimensionality, making exact solutions intractable for high-dimensional systems.

To address this limitation, several recent works have proposed neural HJ certificates, leveraging function approximation to scale reachability analysis to more complex systems [5, 6]. Nevertheless, learned certificates do not inherently guarantee that the resulting zero-sublevel set defines a sound feasible region and therefore require formal verification to confirm that safety guarantees are preserved. This limitation motivated the approach of Yang. et al. [7], which integrates neural value function learning within a training loop guided by adversarial search and formal verification. While this approach improves scalability and enables learning of provably safe certificates, it faces three critical challenges that we aim to address in this work. First, the adversarial procedure is empirical and relies on sparse, locally generated counterexamples as gradient-based attacks explore only a narrow neighborhood of the current iterate and may therefore miss failures located in other regions of the state space. As a result, the search may report no violation even when unsafe states remain in the fine-tuned certificate, not because these states are genuinely safe, but because the search did not reach them. This false negative prematurely triggers the formal verifier, which, being NP-hard [8], can incur substantial computational cost. The verifier then identifies the violation that the adversarial search missed, generates additional counterexamples, and initiates another fine-tuning cycle. This process can repeat over many iterations, leading to significant verification overhead before convergence. The inefficiency becomes particularly acute in high-dimensional systems, where the local coverage of adversarial search can be small relative to the global extent of the failure set. Second, even after a verified certificate has been obtained, the question of how to exploit it as a practical runtime safety filter for a learned controller operating in a complex environment remains unaddressed: translating the certified feasible region into an effective shielding mechanism requires additional design choices that the learning procedure alone does not resolve.

This paper addresses both limitations by introducing a novel enumeration-guided training strategy depicted in Fig. 1. At the core of our approach is the enumeration of compact unsafe regions, which replaces purely local counterexample search with a more structured exploration of the state space based on preimages of the unsafe set in deep neural networks [9, 10]. The underlying intuition is that isolated local violations provide only limited information about the geometry of the failure set, whereas counterexamples drawn from a globally organized, spatially distributed exploration better characterize its shape and extent, offering a richer training signal to the learning algorithm. Crucially, our enumeration-guided training is not a substitute for formal verification; it improves the quality, diversity, and coverage of the counterexample set during training, while verification retains its role as the provable safety certification. In addition to this new training strategy, and building on the least-restrictive safety framework of Fisac et al. [11], we introduce a shielding mechanism that leverages the refined neural HJ certificate to enforce safety at deployment time. The proposed shield acts as a safety filter between a nominal controller and the plant: at each time step, it checks whether the intended action preserves forward invariance of the certified safe set and, if necessary, overrides it with a safe recovery action provided by a backup policy based on Linear Quadratic Regulation (LQR) [12]. Unlike existing HJ-based safety filters, which typically rely on grid-based value functions or learned approximations without formal safety guarantees, our approach introduces a formally verified neural HJ certificate that, by construction, ensures forward invariance of the certified safe set under the verified system dynamics. This enables the deployment of formally certified safety filters in complex systems where closed-form safety certificates are unavailable.

Our empirical evaluation spans four safe-control verification benchmarks from [7], covering systems with both linear and nonlinear dynamics, as well as a new obstacle-avoidance benchmark based on the RoboRacer platform (formerly F1TENTH) [13]. Enumeration-guided training yields faster convergence times and, in general, larger certified regions across all benchmarks, with the largest gains on higher-dimensional and more complex tasks. The verified RoboRacer certificate is first evaluated in a realistic, physics-based Isaac Sim environment to assess its robustness against different track geometries, corridors, and heading disturbances. We further validate its effectiveness under real-world conditions by deploying it on a physical RoboRacer platform on an unseen real racing circuit. This deployment confirms the effectiveness of the proposed solution for complex safety-critical tasks.

References (23)