Provable Defense Against Geometric Transformations

Rem Yang, Jacob Laurel, Sasa Misailovic, Gagandeep Singh

TL;DR

This paper introduces Certified Geometric Training (CGT), the first deterministic provable defense against real-world geometric image transformations (like rotation and scaling) that is fast enough to be used during training. Powered by a novel, GPU-optimized Fast Geometric Verifier (FGV) that achieves up to a 42,600× speedup over existing methods, CGT consistently delivers state-of-the-art certified robustness and clean accuracy across multiple datasets, including a real-world autonomous driving benchmark.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are notoriously fragile, not just against deliberate adversarial attacks, but also against simple, real-world geometric transformations like scaling, rotation, shearing, or brightness changes. For safety-critical domains like autonomous driving or medical imaging, we need guarantees that a network won't fail when an image is slightly rotated.

While significant progress has been made in defending against norm-based pixel perturbations ($\ell_p$-balls), geometric transformations are much harder to formally reason about. Their adversarial input regions are highly non-uniform and cannot be easily represented by simple convex shapes. Existing deterministic verifiers (which guarantee absolute safety) are computationally glacial, making them impossible to integrate into a training loop. Probabilistic alternatives (like randomized smoothing) scale better but are inherently unsound—potentially missing adversarial vulnerabilities—and introduce massive computational overhead at inference time. The authors address this gap by creating a deterministic verifier fast enough to train provably robust models.

Methods

The authors introduce a two-part framework to make certified geometric training viable:

  1. Fast Geometric Verifier (FGV): The core bottleneck of prior verifiers is the initial step of bounding the input image after transformation. Standard pixel-wise interpolation logic varies drastically by location, which breaks GPU parallelism. FGV solves this by mathematically decomposing the transformation into coordinate mapping, distance calculation, and image interpolation. Because the first two steps depend only on the transformation geometry and image size (not the pixel values), they can be precomputed once and amortized across an entire batch. Furthermore, FGV exploits the fact that over 99% of the interpolation grid entries evaluate to zero, using a custom sparse tensor representation (COO format) to eliminate useless computations.
  2. Certified Geometric Training (CGT): To avoid the linear cost of evaluating every single parameter split (subdividing the transformation range to maintain precision) during training, CGT uses a tractable robust loss function. It stochastically samples interval splits alongside data augmentation, effectively enforcing local robustness across the entire transformation range over the course of training.

Datasets

The framework is evaluated across several diverse datasets:

  • MNIST & CIFAR10: Standard image classification benchmarks used to compare directly with prior state-of-the-art verifiers.
  • Tiny ImageNet: A larger, higher-resolution classification dataset ($64 \times 64$ images) used to demonstrate scalability to deeper architectures like WideResNet.
  • Udacity Self-Driving Car Dataset: A real-world regression task predicting steering angles from high-definition RGB driving scene images ($3 \times 66 \times 200$).

Key Insights and Ideas

  • Amortization of Geometry: The geometric mapping bottleneck doesn't depend on pixel values. Decoupling the coordinate transformation from pixel interpolation allows the heavy lifting to be done once per batch, unlocking massive speedups.
  • Sparsity is a Superpower: In geometric interpolation grids, the vast majority of interval entries are degenerate zeros. Exploiting this via sparse tensors is what makes the verifier fast enough to sit inside a training loop.
  • Robustness as a Regularizer: In complex regression tasks like autonomous driving, training with interval bounds actually combats overfitting. Instead of the typical trade-off where robustness hurts clean performance, CGT acts as an effective regularizer, improving standard error while providing tight, certified safety bounds.

Key Results

  • Massive Speedups: FGV achieves a staggering $60\times$ to $42,600\times$ speedup per image compared to DeepG, the previous state-of-the-art deterministic verifier.
  • Unprecedented Scale: Prior deterministic verifiers could only handle subsets of 100–200 images due to runtime constraints. FGV successfully certifies entire test sets of 10,000 images and scales to complex architectures like WideResNet.
  • State-of-the-Art Performance: As shown in Table 1, CGT+FGV significantly outperforms the baseline (PGD/A + DeepG) in certified robustness while maintaining or improving clean accuracy on MNIST and CIFAR10.
Table 1: Comparison of network certification time and accuracy with the prior state-of-the-art on MNIST and CIFAR10. We denote R(ϕ) a rotation of ±ϕ degrees; Tu(∆u) and Tv(∆v) a translation of ±∆u pixels horizontally and ±∆v pixels vertically, respectively; Sc(λ) a scaling of ±λ%; Sh(γ) a shearing of ±γ%; C(α) a contrast change of ±α%; and B(β) a brightness change of ±β. Asterisk denotes that certification was measured on a subset of 100 test images.
  • Scalability: On Tiny ImageNet (Table 2), the approach preserves high clean accuracy while providing substantial certified robustness guarantees on deeper networks.
Table 2: Certified geometric robustness and accu- racy on Tiny ImageNet networks. Certification is performed with FGV.
  • Autonomous Driving First: For the first time, a network's geometric robustness was verified for autonomous driving. Under a $\pm2^\circ$ rotation, standard training yielded a trivial certified steering angle bound of $180^\circ$ (completely useless), whereas CGT produced a tight, safe bound of just $5.43^\circ$.

Limitations and Future Work

  • IBP Over-Approximation: The framework relies on Interval Bound Propagation (IBP), which can introduce loose bounds (over-approximation) for very deep networks or large transformation ranges, though this is partially mitigated by parameter splitting.
  • Extension to Other Perturbations: While the paper focuses on interpolated transformations (rotation, scaling, shearing, translation), the authors note that their loss formulation can be extended to other semantic perturbations like Gaussian blur or color space changes.
  • Integration with Advanced Bound Propagators: Future work could substitute pure IBP with tighter, hybrid methods like CROWN-IBP within the CGT loss formulation to further tighten the certified bounds.

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