Formal Synthesis of Certifiably Robust Neural Lyapunov-Barrier Certificates

Chengxiao Wang, Haoze Wu, Gagandeep SingharXiv 2026

TL;DR

Deep reinforcement learning controllers often fail when deployed in the real world due to unexpected perturbations in system dynamics. This paper introduces a framework to synthesize robust neural Lyapunov-barrier certificates, providing deterministic safety and stability guarantees under norm-bounded disturbances. By leveraging Lipschitz continuity and adversarial training, their approach improves certified robustness bounds by up to 4.6× over standard baselines.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) excels at complex control tasks but lacks the formal safety guarantees required for safety-critical deployment (such as autonomous driving or aerospace robotics). While classical control theory uses Lyapunov and barrier functions to mathematically prove stability and safety, finding these functions analytically for complex neural network controllers is incredibly difficult.

Recent work has turned to using neural networks to learn these safety certificates alongside the control policy. However, existing methods assume ideal, unperturbed dynamics. In reality, modeling errors, actuation noise, and environmental shifts (the sim-to-real gap) cause real-world systems to deviate from ideal simulations. Under these unavoidable uncertainties, standard certificates break down, leading to potential system failures. This paper tackles the challenge of synthesizing neural certificates that remain certifiably valid even under bounded, time-varying state perturbations.

Methods

The authors propose a Robust Control Lyapunov Barrier Function (CLBF) framework. Instead of requiring the certificate value to decrease only at the exact next nominal state, they enforce a strengthened decrease condition: the certificate value must decrease across an entire neighborhood (an $l_p$-ball) of perturbed next states.

To train networks to satisfy this robust condition, they introduce three distinct loss formulations:

  1. Adversarial Descent Loss: Uses Projected Gradient Descent (PGD) to empirically find and penalize the worst-case state perturbation during training.
  2. Lipschitz-bound Descent Loss: Leverages the global Lipschitz constant of the certificate network to analytically upper-bound the maximum possible certificate value within the perturbed neighborhood.
  3. Lipschitz Regularization Loss: Explicitly penalizes the product of the spectral norms of the network's layers to enforce a strict global Lipschitz bound ($\tau$), enabling certifiable robustness across the entire state space.

These objectives are embedded into a Counterexample-Guided Inductive Synthesis (CEGIS) loop, which iteratively uses the Marabou DNN verifier to find safety violations, add them to the training set, and refine the certificate and policy.

Datasets

The method is evaluated on two simulation environments representing classic control benchmarks and safety-critical applications:

  • Inverted Pendulum: A widely studied continuous control benchmark focused on balancing a pole upright while avoiding falling into unsafe angular zones.
  • 2D Docking: A safety-critical autonomous systems task where a deputy spacecraft must safely navigate and dock with a chief spacecraft while strictly avoiding designated unsafe regions.

Key Insights and Ideas

  • Neighborhood-wide Decrease: Shifting the verification target from a single deterministic next-state point to a continuous spatial neighborhood is key to absorbing real-world uncertainty.
  • Lipschitz Continuity as a Robustness Bridge: A lower Lipschitz constant ensures the neural certificate behaves smoothly. If the function doesn't change drastically over small distances, small state perturbations won't cause the certificate value to spike and violate safety conditions.
  • The Generalization Gap of PGD: While adversarial training (PGD) yields high empirical success within its trained perturbation radius, it generalizes poorly to larger, unseen disturbances. In contrast, Lipschitz-bounded regularization provides smoother, more reliable generalization behavior under unexpected stress.

Key Results

  • Certified Robustness: In the Inverted Pendulum environment, the Lipschitz-regularized method (Lip-3) improved the certified perturbation bound by 460% (from 0.0015 to 0.0084) compared to the vanilla baseline. In the 2D Docking environment, the Lip-1 method increased the certified bound by 83% (from 0.0094 to 0.0172).
  • Empirical Success: Under strong adversarial perturbations (0.01 Adv for Inverted Pendulum), the robust methods nearly doubled the success rate of the baseline (70% for Lip-3 vs. 39% for Vanilla). In 2D Docking, Lipschitz-based methods maintained a 100% success rate up to a 0.03 perturbation level, outperforming the baseline by 2.4×.
Certified perturbation bounds for Inverted Pendulum

Limitations and Future Work

The primary limitation acknowledged by the authors is that their framework currently only accounts for perturbations in the states themselves. Real-world systems experience uncertainties across a broader spectrum, including structural variations in the system dynamics equations, noisy observations (measurement errors), and latency or deviations in the controller's actual output. Expanding the robust neural certificate framework to handle these multi-source uncertainties is a crucial next step for practical deployment.

Summary updated

BibTeX
@misc{wang2026formal,
  author = {Chengxiao Wang and Haoze Wu and Gagandeep Singh},
  title = {{Formal Synthesis of Certifiably Robust Neural Lyapunov-Barrier Certificates}},
  year = {2026},
  eprint = {2602.05311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.05311},
}
Figure