AdvMask: A sparse adversarial attack-based data augmentation method for image classification

Suorong Yang, Jinqiao Li, Tianyue Zhang, Jian Zhao, Furao Shen

Abstract

AdvMask is a novel data augmentation technique that leverages sparse adversarial attacks to identify and occlude the most "sensitive" pixels in an image. By masking these highly discriminative features during training, the method forces Convolutional Neural Networks (CNNs) to learn from secondary relevant content, improving generalization and robustness. Evaluations on benchmarks like CIFAR-10/100 and Oxford Flower show that AdvMask consistently outperforms standard augmentation methods like Cutout and Random Erasing.

Introduction

Convolutional Neural Networks (CNNs) often suffer from "over-fitting" to specific, highly discriminative parts of an image—for instance, identifying a bird solely by its beak rather than its overall structure. While existing data augmentation methods like Cutout or Random Erasing attempt to mitigate this by deleting random image segments, they are fundamentally "blind" to the image's semantic structure. Randomly placed masks may cover irrelevant background or, conversely, obscure the entire object of interest. AdvMask addresses this by making information deletion targeted and interpretable, customized to the specific structural features of every image.

Methodology

AdvMask consists of two primary modules integrated into an end-to-end pipeline:

  1. Sparse Adversarial Attack Module: This module utilizes a trainable encoder (such as a U-Net) to identify the minimum number of pixels that, if perturbed, would cause the model to misclassify the image. These "key points" represent the most sensitive information upon which the model currently relies.
  2. Data Augmentation Module: Once these sensitive points are identified, the system generates structured square masks centered on them. The authors noted that masking only the 1x1 adversarial pixels (AAPM) actually decreased accuracy by introducing high-frequency noise; structured blocks were essential to simulate real-world occlusion effectively.
Overview of the AdvMask framework, featuring the Sparse Adversarial Attack and Data Augmentation modules.

The process employs a scaled sigmoid function to maintain differentiability, allowing the entire system to be optimized via gradient descent. To ensure stable training, the authors implement an incremental generative strategy, gradually increasing the proportion of occluded samples as the model matures.

Key Insights and Results

The core innovation of AdvMask is treating adversarial attacks as a diagnostic tool to identify model "obsessions." By masking these primary features, the model is forced to seek out "secondary" relevant features it might otherwise ignore, thereby broadening its "attention."

Experimental results across four benchmarks (CIFAR-10, CIFAR-100, Tiny-ImageNet, and Oxford Flower) demonstrate that AdvMask consistently outperforms state-of-the-art methods like GridMask and Random Erasing (RE). For example, on CIFAR-100 using a Shake-shake-26-32 architecture, AdvMask achieved 79.96% accuracy, surpassing RE's 77.30%. On the Oxford Flower dataset, the method provided a significant boost, increasing accuracy from a 80.20% baseline to 91.57%.

Class Activation Map (CAM) visualizations comparing AdvMask with other augmentation methods.

Visual evidence from Class Activation Maps (CAM) confirms that models trained with AdvMask focus on a much larger area of the target object compared to baseline models, which often fixate on tiny patches or background noise.

Conclusion and Future Work

While AdvMask provides superior performance and interpretability, it introduces higher computational overhead due to the per-image adversarial mask generation. Additionally, its current "white-box" nature requires access to model gradients. Future research will focus on extending this targeted occlusion logic to more complex tasks like object detection and semantic segmentation, where spatial awareness is paramount.

Summary updated

BibTeX
@article{yang2022advmask,
  author = {Suorong Yang and Jinqiao Li and Tianyue Zhang and Jian Zhao and Furao Shen},
  title = {{AdvMask: A sparse adversarial attack-based data augmentation method for image classification}},
  journal = {Pattern Recognition},
  year = {2022},
}
Figure