Provable Defense Against Geometric Transformations

Rem Yang, Jacob Laurel, Sasa Misailovic, Gagandeep Singh

Executive Summary

This paper introduces Certified Geometric Training (CGT), the first framework capable of training deep neural networks with deterministic guarantees of robustness against geometric transformations like rotation and scaling. By leveraging a novel, GPU-optimized Fast Geometric Verifier (FGV) that is up to 42,600× faster than previous methods, the authors successfully scale provable defenses to complex datasets and real-world autonomous driving tasks for the first time.

The Challenge of Geometric Vulnerabilities

Deep Neural Networks (DNNs) are notoriously fragile. While much of the adversarial robustness research has focused on defending against $\ell_p$-norm attacks (small, imperceptible changes to pixel values), real-world "attacks" are often geometric. A stop sign, for instance, might be slightly rotated, scaled, or sheared in the physical world.

Standard DNNs are easily deceived by these natural transformations. While mathematical "verifiers" exist that can prove a network is robust to these changes, they are computationally glacial. Because these verifiers were too slow to be included in the iterative training loop, researchers couldn't effectively train networks to be provably robust from the ground up. Existing scalable alternatives often rely on "randomized smoothing," which only provides probabilistic guarantees—a potential dealbreaker for safety-critical systems like self-driving cars where a "99% chance of being safe" is insufficient.

Methodology: Fast Verification and Certified Training

The authors propose a two-part solution to overcome the computational bottleneck:

  1. Fast Geometric Verifier (FGV): This is the core technical breakthrough. Previous verifiers struggled with the "interpolation" step (calculating new pixel values when an image is rotated). FGV mathematically decomposes transformations into three GPU-parallelizable parts. Crucially, it recognizes that the geometry of the transformation depends only on the image dimensions and the transformation parameters, not the pixel values themselves. By pre-calculating these "interpolation grids" and using a custom sparse tensor representation (since >99% of the grid entries are typically zero), FGV achieves massive speedups.
  2. Certified Geometric Training (CGT): This framework embeds the FGV directly into the training process. It uses Interval Bound Propagation (IBP) to propagate the range of possible transformed images through the network. The training loss is modified to penalize the network if the "worst-case" output within a transformation range (e.g., $\pm 30^\circ$ rotation) results in an incorrect classification.

Experimental Setup

The authors evaluated their approach across diverse benchmarks:

  • MNIST & CIFAR10: Standard image classification datasets used to benchmark against prior (slower) deterministic verifiers.
  • Tiny ImageNet: A more complex classification task used to demonstrate the scalability of the approach to larger networks.
  • Udacity Self-Driving Car Dataset: A real-world regression task where the network predicts steering angles from camera images. This represents the first time deterministic geometric verification has been applied to an autonomous driving model.

Key Insights

  • Amortization is Key: The heavy lifting of geometric transformation math only needs to be done once for a given range of parameters. By separating the "geometry" from the "pixels," the computational cost is amortized across the entire batch of images.
  • Sparsity as a Feature: In a rotation or scale, a single input pixel only affects a tiny neighborhood of output pixels. Exploiting this sparsity allows the verifier to skip millions of useless zero-multiplications.
  • Training for Verifiability: The authors argue that it is more effective to use a slightly less precise but much faster verifier during training. This "shapes" the network's loss landscape to be naturally more robust, making it easier for even a simple verifier to prove safety later.

Key Results

The introduction of FGV and CGT yields unprecedented improvements in both speed and certified robustness compared to prior state-of-the-art methods like DeepG.

Comparison of CGT+FGV against prior state-of-the-art (PGD/A+DeepG) on MNIST and CIFAR10.
  • Extreme Speedups: As shown in the results, FGV outperformed the previous state-of-the-art by 60× to 42,600×, depending on the dataset and specific transformation.
  • State-of-the-Art Robustness: On MNIST, CGT achieved 94.2% certified robustness against $30^\circ$ rotations, significantly higher than the previous best of 86.0%.
  • Scaling to the Real World: On the Udacity driving dataset, CGT-trained networks maintained a low error (Mean Absolute Error of $5.36^\circ$) while providing a certified bound of $\pm 2.7^\circ$ for steering—something no previous deterministic method could achieve.
  • Efficiency: Training with CGT is highly practical; for example, an epoch on CIFAR10 takes only about 6 seconds on a single A100 GPU.

Limitations and Future Work

While groundbreaking, the framework relies on Interval Bound Propagation, which is known to be "loose" (it over-approximates the error). While this ensures the proof is strictly "safe," it can sometimes lead to lower clean accuracy as the network over-optimizes for the worst-case scenario.

Furthermore, the current work focuses on common affine transformations (rotation, scale, translation, shear) and pixel-wise changes (brightness, contrast). Extending this to more complex distortions, such as fish-eye lens effects or weather artifacts, remains an open challenge. Future work could also combine this fast training paradigm with even more precise (but slower) verifiers like CROWN for final "gold-standard" certification.

Summary updated

BibTeX
@inproceedings{yang2023provable,
  author = {Rem Yang and Jacob Laurel and Sasa Misailovic and Gagandeep Singh},
  title = {{Provable Defense Against Geometric Transformations}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=ThXqBsRI-cY},
}
Figure