Provable Defense Against Geometric Transformations

Rem Yang, Jacob Laurel, Saša Misailovíc, Gagandeep Singh · DOI

Abstract

Geometric image transformations that arise in the real world, such as scaling and rotation, have been shown to easily deceive deep neural networks (DNNs). Hence, training DNNs to be certifiably robust to these perturbations is critical. However, no prior work has been able to incorporate the objective of deterministic certified robustness against geometric transformations into the training procedure, as existing verifiers are exceedingly slow. To address these challenges, we propose the first provable defense for deterministic certified geometric robustness. Our framework leverages a novel GPU-optimized verifier that can certify images between 60$\times$ to 42,600$\times$ faster than existing geometric robustness verifiers, and thus unlike existing works, is fast enough for use in training. Across multiple datasets, our results show that networks trained via our framework consistently achieve state-of-the-art deterministic certified geometric robustness and clean accuracy. Furthermore, for the first time, we verify the geometric robustness of a neural network for the challenging, real-world setting of autonomous driving.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile. While much research has focused on "pixel-noise" attacks (bounded by $l_p$ norms), real-world perturbations are often geometric: a camera might be slightly rotated, an object might be scaled differently, or lighting (contrast/brightness) might change.

The challenge lies in formal verification. We want to mathematically prove that a network's output won't change within a certain range of rotation or scaling. Existing "deterministic" verifiers are mathematically rigorous but agonizingly slow, making them impossible to use during the training process. "Probabilistic" verifiers (like randomized smoothing) are faster but "unsound"—they can occasionally give a "pass" to a region that actually contains an adversarial example. This paper bridges the gap by making deterministic verification fast enough to be integrated directly into the training loop.

Methodology

The proposed framework, Certified Geometric Training (CGT), consists of two major components:

Fast Geometric Verifier (FGV)

Standard geometric verification is slow because the math for interpolating pixels varies depending on the pixel's location, which breaks the parallel nature of GPUs. The authors decomposed the transformation into three GPU-parallelizable steps. Crucially, they realized that the "interpolation grid"—the map of which source pixels affect which destination pixels—depends only on the image dimensions and the transformation type, not the pixel values themselves. By pre-computing this grid and using a custom sparse tensor representation (since >99% of the grid entries are zero), they achieved massive speedups.

Certified Geometric Training (CGT)

To train a robust model, a loss function is required that penalizes the network if the "worst-case" transformed image causes a misclassification. Because certifying a large range of motion (e.g., ±30° rotation) is difficult in one go, CGT uses parameter splitting. It breaks the range into smaller intervals and enforces local robustness. To keep training tractable, they use a stochastic approach: sampling a random sub-interval during each training step rather than certifying the entire range every time.

Experimental Results

The framework was evaluated on standard benchmarks (MNIST, CIFAR10), Tiny ImageNet, and the Udacity Self-Driving Car Dataset.

Table 1: Performance comparison of CGT + FGV against prior state-of-the-art methods on MNIST and CIFAR10.

As shown in Table 1, FGV is 60× to 42,600× faster than the previous state-of-the-art deterministic verifier (DeepG). On MNIST rotation, certification time dropped from 19 seconds per image to just 0.00045 seconds. This efficiency allows for the first-ever certification of full 10,000-image test sets for geometric transformations.

Table 2: Certified robustness results for different network architectures (CNN7 and Wide ResNet) across various transformations.

Table 2 demonstrates the scalability of the approach across different network architectures. Wide ResNet models consistently show higher accuracy and certification percentages compared to the smaller CNN7 model, while maintaining reasonable certification times per image.

Key Insights

  • Sparsity as an Accelerator: Exploiting the sparsity of bilinear interpolation via Coordinate (COO) formats allows the GPU to skip millions of useless zero-multiplications.
  • Amortized Computation: Since the geometry of a transformation is the same for every image in a batch, calculating inverse coordinates once per batch drastically reduces overhead.
  • Robustness as Regularization: On the Udacity dataset, training for certified robustness improved standard performance, acting as a regularizer that prevents overfitting to specific camera angles.

Conclusion

This work introduces the first practical framework for training DNNs with deterministic certified geometric robustness. By significantly accelerating the verification process, the authors enable the use of formal guarantees in training loops and complex real-world tasks like autonomous driving. Future work may address the inherent looseness of Interval Bound Propagation (IBP) and extend the framework to non-linear distortions like fisheye lens effects.

Summary updated

BibTeX
@inproceedings{yang2023provable,
  author = {Rem Yang and Jacob Laurel and Saša Misailovíc 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