Towards Verifying the Geometric Robustness of Large-scale Neural Networks

Fu Wang, Peipei Xu, Wenjie Ruan, Xiaowei Huang · DOI

Abstract

While deep neural networks (DNNs) have achieved remarkable success in computer vision, their susceptibility to adversarial perturbations remains a significant concern. Most research focuses on pixel-level noise ($L_p$-norm attacks), yet real-world applications are frequently challenged by geometric transformations such as rotation, scaling, and translation. This paper presents GeoRobust, a novel black-box framework designed to provide provable guarantees for the geometric robustness of large-scale DNNs. By optimizing the Lipschitzian optimization process and introducing a parallelized search strategy, GeoRobust enables the verification of massive architectures, including Vision Transformers and large-scale ResNets, on benchmarks as complex as ImageNet.

Introduction

Traditional adversarial verification methods often rely on defining a small "box" around an image in the pixel space. However, geometric transformations do not fit neatly into these $L_p$-norm definitions. A simple one-pixel shift or a minor rotation can change the value of every pixel in an image, resulting in a large distance in the pixel space despite the image remaining semantically identical to a human observer.

Existing verification tools face two primary hurdles: they are often "white-box," requiring internal access to model gradients or weights, and they are computationally prohibitive for state-of-the-art models. GeoRobust addresses these challenges by treating the network as a black box and utilizing an efficient, parallelized optimization engine to find worst-case geometric distortions.

The GeoRobust Framework

Lipschitzian Optimization and Stability

GeoRobust views the verification problem through the lens of Lipschitzian optimization. The core engine is an improved version of the DIRECT (DIviding RECTangles) algorithm. To ensure the framework's mathematical rigor, the authors prove that geometric transformations performed by a Spatial Transformer Network (STN) using bilinear sampling are Lipschitz continuous. This proof establishes that if the underlying DNN is stable, the combined "STN + DNN" system remains predictable, allowing for the calculation of provable robustness bounds.

Parallelized Search Strategy

Standard DIRECT algorithms are sequential and often fail to utilize the full potential of modern hardware. GeoRobust introduces an $\alpha$ candidate set strategy. This approach allows the algorithm to identify and evaluate multiple "potentially optimal" search regions simultaneously. By parallelizing these forward passes, GeoRobust can leverage GPU acceleration to explore the transformation space significantly faster than previous methods.

Anytime Verification

One of the practical advantages of GeoRobust is its "anytime" nature. As the algorithm iterates, it continuously narrows the gap between a lower bound (the best-case scenario) and an upper bound (the worst-case transformation found). This allows practitioners to stop the verification process once a desired level of precision is achieved, providing a flexible trade-off between computation time and the tightness of the guarantee.

Experimental Evaluation

Benchmarking against Baselines

The framework was first validated on MNIST and CIFAR-10, where it was compared against existing baselines such as DeepG, TSS, and GSmooth. GeoRobust consistently achieved higher verified accuracy; for instance, it reached 98.2% verified accuracy on MNIST rotation, surpassing the previous state-of-the-art of 97.4%.

Large-Scale Scalability on ImageNet

The primary contribution of this work is its application to ImageNet. The researchers benchmarked 18 different classifiers, including:

  • ResNet family (ResNet50, ResNet101, etc.)
  • Vision Transformers (ViT-Base, ViT-Large)
  • MLP-Mixer
  • Swin Transformers
  • Beit (Bidirectional Encoder representation from Image Transformers)

GeoRobust successfully identified worst-case transformations for models with up to 300 million parameters (ViT-Large) in a matter of seconds per image (typically 2.4 to 4.5 seconds), a task that previously took minutes or hours.

Key Insights and Discussion

Depth vs. Width

A critical finding of the study is that architectural choices significantly impact geometric robustness. The data suggests that increasing a network's depth (adding more layers) is more effective at improving resistance to geometric shifts than increasing its width (adding more neurons per layer).

Model Size and Architecture

There is a clear positive correlation between the total number of parameters and geometric robustness. Larger models generally exhibit better handling of scaling and rotation. Notably, Beit models demonstrated the highest geometric robustness among all 18 models tested. This suggests that bidirectional modeling and the specific pre-training objectives of Beit help the network learn features that are more invariant to spatial transformations.

Limitations and Future Work

Despite its efficiency, GeoRobust has limitations. The use of bilinear sampling for non-integer pixel coordinates introduces minor interpolation artifacts that can slightly affect precision. Furthermore, while the method provides provable guarantees, calculating the optimal Lipschitz constant for complex DNNs remains an NP-hard problem; GeoRobust currently relies on effective local slope approximations. Future research may explore combining this deterministic framework with probabilistic verification to handle even more complex, non-deterministic image transformations.

Conclusion

GeoRobust represents a significant step forward in making geometric robustness verification practical for the modern era of large-scale AI. By moving beyond pixel-noise and providing a scalable, black-box, and parallelized solution, it offers a robust tool for evaluating the reliability of vision models in real-world environments.

Summary updated

BibTeX
@inproceedings{wang2023towards,
  author = {Fu Wang and Peipei Xu and Wenjie Ruan and Xiaowei Huang},
  title = {{Towards Verifying the Geometric Robustness of Large-scale Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i12.26773},
}
Figure