Dropping Pixels for Adversarial Robustness

Hossein Hosseini, Sreeram Kannan, Radha Poovendran

Abstract

Deep neural networks are vulnerable against adversarial examples. In this paper, we propose to train and test the networks with randomly subsampled images with high drop rates. We show that this approach significantly improves robustness against adversarial examples in all cases of bounded $L_0$, $L_2$ and $L_\infty$ perturbations, while reducing the standard accuracy by a small value. We argue that subsampling pixels can be thought to provide a set of robust features for the input image and, thus, improves robustness without performing adversarial training.

Introduction

Deep neural networks (DNNs) are notoriously fragile. Small, intentional perturbations—known as adversarial examples—can trick a model into misclassifying an image that looks perfectly normal to a human. The current "gold standard" for defense is adversarial training, where a model is trained on examples that are constantly being "attacked" during the training loop. While effective, this process is computationally expensive, slow, and difficult to scale to massive datasets. This research explores a more efficient way to achieve robustness by exploiting the inherent redundancy in natural images, forcing models to rely on a sparse set of robust features.

Methodology: Random Subsampling

The core proposal is a technique called Random Subsampling. For every image in the training and testing set, a binary mask $M$ is generated using a Bernoulli distribution. Each pixel is kept with probability $1-r$ (where $r$ is the drop rate) and set to zero otherwise.

Visualizing 90% pixel drop rate on GTSRB (top) and CIFAR10 (bottom) images.

During training, a new random mask is generated for every image in every epoch. This prevents the model from "memorizing" specific pixel locations and forces it to learn the underlying structure of the objects. At test time, the authors suggest two enhancements:

  • Averaging: Running the same image through multiple random masks and averaging the predictions.
  • Entropy-based Rejection: Adversarial examples often result in high-entropy (less certain) output distributions. Setting an entropy threshold to reject these inputs further boosts robustness.

Key Results

The approach was evaluated on the GTSRB (German Traffic Sign Recognition Benchmark) and CIFAR10 datasets.

Accuracy vs. Drop Rate for GTSRB and CIFAR10 datasets.
  • High Accuracy at High Drop Rates: On GTSRB, a model trained with a 90% drop rate only saw an accuracy decrease of about 4% compared to a standard model. On CIFAR10, the drop was about 13%.
  • Robustness Gains: The method showed significant improvements against Projected Gradient Descent (PGD) attacks across multiple norms. Subsampling effectively "dilutes" the attacker's budget, making perturbations less effective.
  • Depth Matters: Deeper architectures (like ResNet-110) performed significantly better than shallower ones (ResNet-20) when dealing with high pixel drop rates.

Insights and Discussion

  • The Redundancy Hack: Natural images are highly redundant; neighboring pixels are strongly correlated. This paper proves that DNNs can be trained to identify objects even when 90% of pixels are removed, forcing the model to ignore "non-robust" features that attackers typically exploit.
  • Concentrated Filters: Visualizing the first-layer convolutional filters shows weights becoming highly concentrated at the center. This mirrors the behavior of models trained via expensive adversarial training, suggesting that dropping pixels is a "shortcut" to achieving similar feature-selection properties.
  • Interpretability Paradox: Standard interpretability methods struggle with these models. Gradients often point toward the dropped pixels rather than the visible ones, suggesting these models "see" images in a way that current explanation tools aren't designed to handle.
  • Randomness as a Shield: Because the specific pixels dropped at test time are unknown to the attacker, it becomes much harder to craft a "universal" perturbation that survives the subsampling process.

Limitations and Future Work

The experiments were limited to relatively small-scale datasets. Testing on ImageNet is a necessary next step to see if the spatial redundancy of high-resolution images allows for even higher drop rates. Additionally, while randomness helps, further testing against sophisticated "white-box" adaptive attacks that might target the expectation of the subsampling is required.

Summary updated

BibTeX
@inproceedings{hosseini2019dropping,
  author = {Hossein Hosseini and Sreeram Kannan and Radha Poovendran},
  title = {{Dropping Pixels for Adversarial Robustness}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=qzvPeYZOor},
}
Figure