Scalable Formal Verification via Autoencoder Latent Space Abstraction

Robert Reed, Luca Laurenti, Morteza LahijanianarXiv 2025 · DOI

Introduction

Formal verification represents the "gold standard" for ensuring system safety, providing mathematical proofs that a system will behave as intended under all specified conditions. However, traditional formal methods frequently succumb to the "curse of dimensionality." As systems become more complex—such as a robot navigating via high-dimensional LiDAR sensors—the state space grows exponentially, making exhaustive verification computationally impossible.

This paper introduces a novel framework that leverages specialized convex autoencoders to compress high-dimensional systems into a low-dimensional latent space. By maintaining mathematical rigor during this compression, the authors demonstrate the ability to verify systems that were previously beyond the reach of formal methods, including a 26-dimensional robotic platform.

Methodology

The proposed pipeline bridges the gap between deep learning-based compression and formal logic through a multi-step process designed to preserve safety guarantees.

Overview of the formal verification pipeline, mapping high-dimensional systems to a latent space for abstraction and verification.

1. CICO Encoder (Connected Input-Connected Output)

At the heart of the framework is the Input Convex Neural Network (ICNN). Unlike standard autoencoders, the CICO encoder enforces convexity and monotonicity. This structural constraint ensures that the mapping between the high-dimensional environment and the latent space is "well-behaved," preventing the mapping from folding or breaking in ways that would invalidate safety proofs. This allows safety specifications (e.g., "avoid obstacles") to be soundly translated into the compressed latent space.

The CICO Encoder maps regions of interest to latent space while providing guaranteed under-approximations and probabilistic over-approximations.

2. Inclusion Gaussian Process Regression (GPR)

Compression naturally introduces nondeterminism; a single point in the latent space may represent multiple potential future states in the original space. To account for this, the authors developed Inclusion GPs. These model the compressed dynamics as set-valued transitions, ensuring that the true system behavior is always contained within the predicted bounds.

3. Nondeterministic Transition System (NTS) and Refinement

The framework constructs a finite state machine within the latent space. If this compressed model is proven safe, the original high-dimensional system is guaranteed safe by extension. If the verification returns an "uncertain" result, the system employs iterative refinement, zooming in on specific latent regions to reduce conservatism and improve the proof's precision.

Experimental Results

The researchers validated their approach on several challenging benchmarks:

  • 26D LiDAR-Equipped Robot: The primary test case involved a robot with a 24-beam LiDAR sensor and 2D pose (26 dimensions total) controlled by a neural network trained via Proximal Policy Optimization (PPO). The framework successfully verified safety specifications for this high-dimensional "black box" controller.
  • Efficiency and Scalability: For the 26D system, training the encoder took approximately 515 seconds, and building the initial abstraction required 681 seconds. Crucially, once the abstraction was established, the actual safety verification took less than one second.

Key Insights

  • Soundness through Convexity: By restricting the encoder architecture to be convex, the authors can use efficient sampling to find mathematical under- and over-approximations of safe regions. This is the "secret sauce" that enables formal rigor in a learned latent space.
  • Embracing Nondeterminism: Rather than attempting to force latent dynamics to be perfectly deterministic, the framework treats the inherent uncertainty of compression as a "difference inclusion," allowing for formal proofs even when data is compressed.

Limitations and Future Directions

While powerful, the reliance on Input Convex Neural Networks (ICNNs) involves a trade-off: the convexity constraint limits the expressivity of the encoder compared to unconstrained architectures. Additionally, while the model handles nondeterministic outcomes, it does not yet fully account for stochastic noise. Future research aims to move beyond verification toward control synthesis, where the framework would automatically generate controllers that are guaranteed safe by design.

Summary updated

BibTeX
@misc{reed2025scalable,
  author = {Robert Reed and Luca Laurenti and Morteza Lahijanian},
  title = {{Scalable Formal Verification via Autoencoder Latent Space Abstraction}},
  year = {2025},
  eprint = {2512.13593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13593},
}
Figure