Lipschitz Optimization for Formal Verification of Homographies

Jean-Guillaume Durand, Panagiotis Kouvaros, Maxime Gariel, Alessio Lomuscio

TL;DR

This paper introduces the first general framework to formally verify neural network robustness against 3D geometric camera-motion perturbations (homographies) in planar scenes. By deriving closed-form solutions for 6-DOF camera poses and extending piecewise-linear Lipschitz optimization, the method delivers up to an 89% verification speedup and 7% tighter bounds than previous approaches, exposing critical vulnerabilities in safety-critical vision models.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly deployed in safety-critical vision systems like autonomous driving and aviation. However, ensuring their reliability requires formal verification—mathematical guarantees that a model's output won't change under certain input perturbations.

To date, formal verification has mostly focused on $\ell_p$-norm perturbations (pixel-level noise like color or contrast changes) or simple 2D affine transformations (like rotation and translation). Unfortunately, these methods fail to capture the complex 3D perspective distortions caused by actual camera movement in the physical world. While an $\ell_p$-norm "ball" can technically contain these images, it vastly over-approximates the true manifold of natural image variations, leading to loose, uninformative bounds that cannot prove real-world robustness.

The space of image perturbations, showing how 3D perspective shifts differ from standard pixel-level noise.

This paper addresses this gap by targeting homographies—the projective mappings between different 3D views of a planar surface (e.g., road signs, ground planes, or runways), as illustrated below.

Example application: Projecting 3D world features onto a 2D image plane via homography to verify autonomous driving models.

Methods

The authors bridge the gap between 3D camera motion and formal verification through a two-step framework:

  1. Parameterized Homographies: They derive closed-form analytical mappings that directly link 6-DOF camera pose perturbations (yaw, pitch, roll, and 3D translations) to changes in individual pixel coordinates and values.
  2. Piecewise-Linear (PWL) Bounding via Lipschitz Optimization: Because perspective transforms introduce severe non-linearities into pixel trajectories (see Figure 3), the authors partition the transformation parameter space into subdomains. Within each subdomain, they compute tight linear bounds on pixel values.
Non-linear pixel value trajectories resulting from a perspective yaw perturbation.

To make these bounds mathematically sound, they use Lipschitz optimization to calculate the maximum possible gradient (rate of change) of the pixel function, ensuring the true pixel value never violates the computed upper and lower linear bounds. They specifically account for "critical angles" where the homography denominator could approach zero, defining safe, differentiable domains for verification.

Finally, they parallelized this algorithm at the pixel level and integrated it into the VENUS verification engine, allowing the bounds to be efficiently propagated through deep neural networks.

Datasets

The method was evaluated using several standard vision benchmarks and a specialized real-world dataset:

  • MNIST: Digit classification.
  • CIFAR-10: Object recognition.
  • GTSRB: German Traffic Sign Recognition Benchmark (highly relevant for autonomous driving).
  • LARD (Landing Approach Runway Detection): A dataset used to train a real-world aviation safety classifier that predicts runway visibility for pilots.

Key Insights and Ideas

  • The Illusion of Robustness: Even networks explicitly trained to be robust using state-of-the-art adversarial training (like PGD training) remain highly vulnerable to 3D camera motions.
  • Affine vs. Projective Vulnerabilities: Models are generally more robust to roll and lateral translations ($\Delta y$) because these map closely to standard 2D affine augmentations used during training. Conversely, models are incredibly fragile against pitch, yaw, and forward/backward translations ($\Delta x, \Delta z$), which introduce perspective scaling and stretching.
  • Planar Tractability: While full 3D scene verification usually requires complex, non-differentiable simulators or point clouds, focusing on predominantly planar structures provides an analytically tractable "middle ground" that yields exact mathematical guarantees.

Key Results

  • Performance Gains: Compared to an adapted baseline implementation of prior 2D verification work (PWL), the authors' optimized framework achieved up to an 89% total speedup in verification runtime and up to 7% tighter bounds on complex pixel curves.
Comparison of bounds showing how the proposed method achieves tighter approximations of the true pixel function.
  • VNN-COMP Evaluation: Testing on standard benchmark networks revealed systematic weaknesses. For instance, autonomous driving models trained on GTSRB exhibited 0% certified robustness to 3D camera perturbations.
  • Runway Classifier Case Study: When evaluating a safety-critical runway visibility classifier, the framework certified only 16% of test images under a minor 10 cm camera translation, and a mere 1% under a tiny 1° camera rotation. This highlights a severe gap in current model certification practices for aerospace and robotics.

Limitations and Future Work

  • Planar Assumption: The core formulation assumes the target scene is predominantly flat. It does not account for complex 3D parallax effects or object occlusions (e.g., a tree blocking a sign as the camera moves).
  • Sensitivity to Large Amplitudes: As the perturbation angle or translation distance increases, the pixel curves become highly non-linear, causing the certified robustness metrics to drop sharply. Addressing this requires finer domain splitting, which increases computational overhead.
  • Padding Artifacts: When an image shifts, empty border pixels must be filled. The authors noted that the choice of padding technique (e.g., black borders vs. reflecting edge pixels) can artificially create edge artifacts that impact model robustness, pointing to a need for more realistic image-boundary modeling.

Summary updated

BibTeX
@inproceedings{durand2026lipschitz,
  author = {Jean-Guillaume Durand and Panagiotis Kouvaros and Maxime Gariel and Alessio Lomuscio},
  title = {{Lipschitz Optimization for Formal Verification of Homographies}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=k2AJ8GhCLF},
}
Figure