Towards Verifying Robustness of Neural Networks Against Semantic Perturbations

Jeet Mohapatra, Tsui-Wei Weng, Pin-Yu Chen, Sijia Liu, Luca DanielarXiv 2019

Introduction

While deep neural networks have achieved remarkable success in various domains, their vulnerability to adversarial attacks remains a significant concern. Traditionally, formal verification has focused on the $L_p$-norm threat model, which assumes perturbations are small, independent pixel-level changes. However, real-world adversarial examples often involve "semantic" transformations—such as changes in rotation, lighting, or color saturation—that preserve the object's identity but result in large $L_p$ distances. Standard verification tools struggle with these transformations because the relationship between semantic parameters and raw RGB values is highly non-linear.

The Semantify-NN Framework

To bridge this gap, the authors introduced Semantify-NN, a model-agnostic framework presented at ICML 2020. The core idea is to convert complex semantic transformations into a format compatible with existing $L_p$-norm verifiers.

Semantic Perturbation Layers (SP-layers)

Instead of redesigning verification algorithms, Semantify-NN modifies the network architecture for verification purposes. The framework prepends "Semantic Perturbation layers" (SP-layers) to the original model. These layers mathematically represent semantic transformations (e.g., Hue, Saturation, Rotation) using standard neural network operations like ReLUs and linear layers. By doing so, the input to the entire system becomes the semantic parameter (such as the rotation angle $\theta$) rather than the raw pixel data.

Overview of semantic attacks and the Semantify-NN architecture compared to naive approaches.

Input Space Refinement

Semantic transformations, particularly rotation, are inherently non-convex. To maintain tight bounds, the authors employ two splitting strategies:

  • Explicit Splitting: The range of the semantic parameter is divided into smaller intervals, each verified independently.
  • Implicit Splitting: A more efficient technique that aggregates bounds from sub-intervals during a single certification pass, significantly reducing computational cost while preserving precision.

Experimental Evaluation

The framework was evaluated on three benchmark datasets: MNIST (digits), CIFAR-10 (objects), and GTSRB (traffic signs). These datasets provided a testing ground for various perturbations, including rotation, translation, and color space shifts (HSL).

Key Results and Improvements

Semantify-NN demonstrates a significant leap in verification performance. In color space experiments (Hue, Saturation, Lightness), the framework produced robustness certificates that were 2x to 240x larger than those from naive baselines.

Comparison of certified bounds for Hue, Saturation, and Lightness across various network architectures.

Furthermore, the framework achieved near-optimal results for rotation on MNIST. It certified robustness for rotations up to approximately 46 degrees, coming very close to the 51-degree limit found by the strongest known attacks. This narrow gap indicates that the verification bounds are remarkably tight.

Discussion and Future Directions

The success of Semantify-NN lies in its "converter" strategy, which leverages the existing ecosystem of $L_p$ verification tools (like CROWN or CNN-Cert). By treating transformations as network layers, the framework effectively handles the non-convexity that previously made semantic verification intractable.

However, challenges remain. Current experiments primarily focus on low-dimensional semantic spaces (1D or 2D). Verifying against high-dimensional, simultaneous perturbations (e.g., concurrent rotation and color shifts) is computationally demanding. Additionally, while SP-layers for rotation use bilinear interpolation, extending this to more complex geometric deformations like 3D pose variations remains an open area for future research.

Summary updated

BibTeX
@misc{mohapatra2019towards,
  author = {Jeet Mohapatra and Tsui-Wei Weng and Pin-Yu Chen and Sijia Liu and Luca Daniel},
  title = {{Towards Verifying Robustness of Neural Networks Against Semantic Perturbations}},
  year = {2019},
  eprint = {1912.09533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.09533},
}
Figure