Skip to main content
QUICK REVIEW

[Paper Review] Towards Verifying Robustness of Neural Networks Against Semantic Perturbations

Jeet Mohapatra, Tsui-Wei|arXiv (Cornell University)|Dec 19, 2019
Adversarial Robustness in Machine LearningComputer Science16 references13 citations
TL;DR

This paper proposes Semantify-NN, a model-agnostic framework that enables robustness verification of neural networks against semantic perturbations—such as color shifts, rotation, and brightness changes—by inserting semantic perturbation layers (SP-layers) to transform semantic threat models into equivalent ℓp-norm bounded ones. The method achieves up to 2–3 orders of magnitude tighter robustness certificates than naive ℓp-based verification, with further improvements via input splitting and refinement techniques.

ABSTRACT

Verifying robustness of neural networks given a specified threat model is a fundamental yet challenging task. While current verification methods mainly focus on the $\ell_p$-norm threat model of the input instances, robustness verification against semantic adversarial attacks inducing large $\ell_p$-norm perturbations, such as color shifting and lighting adjustment, are beyond their capacity. To bridge this gap, we propose extit{Semantify-NN}, a model-agnostic and generic robustness verification approach against semantic perturbations for neural networks. By simply inserting our proposed extit{semantic perturbation layers} (SP-layers) to the input layer of any given model, extit{Semantify-NN} is model-agnostic, and any $\ell_p$-norm based verification tools can be used to verify the model robustness against semantic perturbations. We illustrate the principles of designing the SP-layers and provide examples including semantic perturbations to image classification in the space of hue, saturation, lightness, brightness, contrast and rotation, respectively. In addition, an efficient refinement technique is proposed to further significantly improve the semantic certificate. Experiments on various network architectures and different datasets demonstrate the superior verification performance of extit{Semantify-NN} over $\ell_p$-norm-based verification frameworks that naively convert semantic perturbation to $\ell_p$-norm. The results show that extit{Semantify-NN} can support robustness verification against a wide range of semantic perturbations. Code available https://github.com/JeetMo/Semantify-NN

Motivation & Objective

  • To address the gap in robustness verification for semantic adversarial attacks that induce large ℓp-norm perturbations, which current ℓp-based verification tools cannot handle effectively.
  • To develop a model-agnostic framework that extends existing ℓp-norm verification tools to support a broad family of semantic perturbations without retraining models.
  • To design semantic perturbation layers (SP-layers) that accurately model semantic transformations such as hue, saturation, brightness, contrast, rotation, and occlusion in a way compatible with ℓp-based verification.
  • To improve verification tightness through efficient refinement techniques, particularly input splitting and refinement, to close the gap between certified lower bounds and actual attack robustness.
  • To empirically validate the framework across diverse datasets (MNIST, CIFAR-10, GTSRB), network architectures (MLPs, CNNs), and semantic attack types, demonstrating superior robustness certification.

Proposed method

  • Introduce semantic perturbation layers (SP-layers) that transform input data into a representation where semantic perturbations correspond to bounded ℓp-norm perturbations, enabling compatibility with existing ℓp-based verification tools.
  • Design SP-layers for specific semantic transformations: HSL space changes (hue, saturation, lightness), brightness/contrast adjustments, rotation, translation, and occlusion, each modeled as differentiable, bounded transformations.
  • Apply input-space refinement and splitting techniques to tighten certification bounds, especially for non-linear transformations like rotation, by dividing the input space into smaller intervals for more precise verification.
  • Use implicit and explicit splitting strategies: implicit splitting increases the number of intervals for robustness estimation, while explicit splitting refines bounds on selected intervals to improve tightness.
  • Leverage existing ℓp-norm verification tools (e.g., for ℓ∞, ℓ2) on the transformed model to compute certified robustness margins against semantic perturbations.
  • Optimize the verification pipeline by balancing computational cost and certification tightness, particularly for high-dimensional or non-linear semantic spaces.

Experimental results

Research questions

  • RQ1Can a model-agnostic framework extend ℓp-based verification to semantic perturbations such as color shifts and lighting adjustments, which induce large ℓp-norm perturbations?
  • RQ2How can SP-layers be designed to accurately represent diverse semantic transformations (e.g., hue, rotation, occlusion) while preserving compatibility with ℓp-norm verification tools?
  • RQ3To what extent can input splitting and refinement techniques improve the tightness of robustness certificates for non-linear semantic perturbations like rotation?
  • RQ4How does Semantify-NN compare in certification performance to naive ℓp-based verification that directly maps semantic perturbations to ℓp-norm bounds in RGB space?
  • RQ5Can Semantify-NN achieve scalable and efficient verification across diverse datasets and network architectures under various semantic threat models?

Key findings

  • Semantify-NN achieves up to 2–3 orders of magnitude larger certified robustness margins than naive ℓp-based verification when applied to semantic perturbations such as HSL space changes.
  • For HSL-based perturbations, the addition of SP-layers increases the certified lower bound by 4–50× compared to direct ℓp-based conversion, demonstrating significant improvement in verification tightness.
  • Input splitting and refinement techniques further improve certification bounds by 1.5–5×, especially effective in reducing the gap between certified lower bounds and actual attack robustness.
  • For rotation attacks, which induce highly non-linear transformations, implicit splitting followed by explicit splitting increases the size of certifiable intervals and improves tightness, despite high computational cost.
  • In translation and occlusion experiments, the average runtime for exhaustive enumeration remained affordable (under 12 seconds), and Semantify-NN achieved tight bounds with minimal overhead.
  • The framework demonstrates consistent performance gains across MNIST, CIFAR-10, and GTSRB datasets, with varying network architectures (MLPs and CNNs), confirming its generality and scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.