Safety Certification is Classification

Oliver Schön, Licio Romao, Sadegh SoudjaniarXiv 2026

TL;DR

Traditional safety certification for autonomous systems relies on dynamic programming, which suffers from compounding errors over long time horizons and fails when systems aren't strictly Markovian. This paper reframes safety certification as a direct classification problem on trajectory data using kernel methods. This approach completely eliminates recursive errors, dramatically reduces computational costs, and provides robust safety bounds for complex, non-Markovian systems like neural-controlled quadrotors.

What Problem Does This Paper Address?

As learning-based controllers (like neural networks) are increasingly deployed in robotics and autonomous vehicles, verifying their safety is paramount. Traditional formal verification methods use an indirect approach: they take trajectory data, estimate a one-step transition model, and then recursively calculate safety probabilities backward in time using dynamic programming (DP).

This introduces two fatal flaws:

  1. Compounding Errors: Estimation errors compound at every single time step, causing safety bounds to collapse into uselessness over long horizons.
  2. The Markovian Trap: It requires the system to be Markovian (where the next state depends only on the current state). Real-world systems with neural controllers or time-correlated disturbances routinely violate this assumption, causing traditional certificates to silently fail and overestimate safety.
Indirect vs. Direct Safety Certification

Methods

The authors introduce a direct safety certification framework based on Kernel Mean Embeddings. Instead of learning a complex transition model and running DP, they treat the entire $T$-step trajectory as a single data point. By using a product kernel to embed the trajectory space into a Reproducing Kernel Hilbert Space (RKHS), they turn safety verification into a straightforward kernel ridge regression (or classification) problem directly from the initial state.

Crucially, the authors show that their framework acts as a grand unification: classic methods like barrier certificates, finite-state abstractions, and interval MDPs can all be recovered as special, indirect cases of this same embedding framework.

Figure 2: Overarching embedding framework recovering existing approaches and going beyond

To handle the sharp discontinuity of the safety indicator function (safe vs. unsafe), they leverage advanced mathematical tools (Besov spaces and Gaussian mollification) to derive distribution-free certified lower bounds on safety without making parametric assumptions.

Datasets

The authors evaluated their approach on three distinct setups:

  1. Synthetic Non-Markovian System: A custom nonlinear discrete-time stochastic process where the degree of non-Markovianity can be precisely tuned via a parameter ($\alpha$).
  2. Synthetic Neural-Controlled Quadrotor: A simulated quadrotor utilizing a neural adaptive controller under Gaussian velocity disturbances, evaluated over a long horizon of $T=2500$ steps (5 seconds).
  3. Real-World Drone Racing Dataset: Flight data from Kaufmann et al. [2023], featuring autonomous gate-passing maneuvers by the AI system "Swift" and human world champions.

Key Insights and Ideas

  • Vapnik's Principle: The authors invoke Vladimir Vapnik's famous learning principle: "When solving a given problem, try to avoid solving a more general problem as an intermediate step." Traditional methods try to learn the full, high-dimensional transition kernel just to compute a single scalar safety probability. The direct approach skips this detour entirely.
  • The DP Collapse: For long horizons ($T=2500$), the backward DP operator suffers from spectral contraction. It attenuates the spatial structure of safety until the model predicts zero safety everywhere, rendering it useless.
  • Naturally Non-Markovian: Because the direct method looks at the entire trajectory at once, it naturally accommodates non-Markovian dynamics (like a drone controller updating its internal adaptive states) without losing soundness.

Key Results

  • Stability Under Non-Markovianity: On the synthetic benchmark, as the system becomes more non-Markovian ($\alpha \to 1$), the indirect DP method severely overestimates safety, while the direct method remains perfectly calibrated and stable.
Figure 3: The effect of increasingly non-Markovian dynamics (α →1) on the DP and direct methods.
  • Quadrotor Breakthrough: For the neural-controlled quadrotor ($T=2500$), the indirect method completely collapsed, yielding an RMSE of 0.798 (equivalent to a constant-zero predictor). The direct method achieved a 13× improvement in RMSE and a 300× improvement in reliability.
  • True Soundness: The direct method achieved a 93% soundness rate across grid points compared to just 56% for the indirect method when combined with conformal uncertainty quantification.
  • Massive Speedups: The direct method constructs a single $1,000 \times 1,000$ Gram matrix, avoiding backward recursion. Compared to the full DP baseline, this represents an 8,000× reduction in Gram matrix computational cost.

Limitations and Future Work

  • Dimensionality Scaling: While the direct method avoids compounding errors over time, its statistical error bound scales with the trajectory-space dimension $d(T+1)$. Although the authors show this is a smoothing artifact controlled by bandwidth parameters rather than a recursive error explosion, scaling to extremely high-dimensional spaces remains a challenge.
  • Kernel Scaling Limits: The current implementation relies on kernel methods, which scale cubically $O(N^3)$ with the number of trajectories. The authors suggest extending this framework to deep neural classifiers and out-of-distribution conformal techniques to handle larger datasets and continuous-time systems.

Summary updated

BibTeX
@misc{schon2026safety,
  author = {Oliver Schön and Licio Romao and Sadegh Soudjani},
  title = {{Safety Certification is Classification}},
  year = {2026},
  eprint = {2605.06087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06087},
}
Figure