RANDOM MASK: Towards Robust Convolutional Neural Networks

Tiange Luo, Tianle Cai, Mengxiao Zhang, Siyu Chen, Liwei WangarXiv 2020

Abstract

Robustness of neural networks has recently been highlighted by the adversarial examples, i.e., inputs added with well-designed perturbations which are imperceptible to humans but can cause the network to give incorrect outputs. In this paper, we design a new CNN architecture that by itself has good robustness. We introduce a simple but powerful technique, Random Mask, to modify existing CNN structures. We show that CNN with Random Mask achieves state-of-the-art performance against black-box adversarial attacks without applying any adversarial training. We next investigate the adversarial examples which 'fool' a CNN with Random Mask. Surprisingly, we find that these adversarial examples often 'fool' humans as well. This raises fundamental questions on how to define adversarial examples and robustness properly.

Introduction

Deep Convolutional Neural Networks (CNNs) are notoriously fragile. A malicious actor can introduce imperceptible "noise"—adversarial perturbations—to an image, causing a high-performing model to confidently misclassify it. For example, a model might identify a dog as an automobile after minimal manipulation.

Existing defenses, such as adversarial training or input transformations, often suffer from high computational costs or vulnerability to attackers who can "average out" randomness. This paper argues that CNN vulnerability stems from an over-reliance on the presence of local features rather than their spatial distribution. To address this, the authors propose Random Mask, an architectural modification that enhances robustness by design.

Methodology: The Random Mask Technique

The core of the proposed approach is a simple yet powerful modification to the CNN architecture:

  • Mechanism: Before training commences, a fixed percentage of neurons (the "drop ratio") in the feature maps are randomly selected and permanently removed.
  • Fixed Architecture: Unlike Dropout, which varies active neurons during training, the Random Mask is fixed for both training and inference.
  • Strategic Placement: The technique is most effective when applied to shallow layers. Since shallow neurons have smaller receptive fields, masking them forces the network to learn more complex spatial relationships to compensate for the "missing" data.

By breaking the inherent symmetry of standard CNNs, Random Mask prevents the model from relying on the highly predictable, uniform gradients that attackers typically exploit.

Key Insights and Results

Sensitivity to Spatial Structure

Through "Random Shuffle" experiments, the authors demonstrated that Random Mask models are significantly more sensitive to images being cut into patches and rearranged than standard CNNs. This confirms that masked models prioritize the global arrangement of features over their mere presence.

The "Human-Fooling" Phenomenon

Perhaps the most striking finding is the nature of adversarial examples generated against Random Mask models. In standard CNNs, adversarial examples typically look like the original image with slight artifacts. However, adversarial images that successfully fool a Random Mask model often undergo semantic shifts that confuse human observers as well.

Adversarial examples generated against Random Mask models often exhibit semantic features of the target class, potentially fooling human observers.

As shown in the examples above, an adversarial image intended to be classified as a "frog" may actually begin to visually resemble a frog to a human viewer. This suggests that the model's failures occur only when the input's semantic meaning has been fundamentally altered.

A detailed view of an adversarial example that takes on the visual characteristics of the target class (Frog).

Performance Benchmarks

On the CIFAR-10 dataset using a ResNet-18 architecture, Random Mask achieved a 90.30% defense rate against PGD black-box attacks. This outperformed traditional adversarial training (86.00%) while maintaining a higher clean test accuracy (90.08% vs 87.30%). These results were achieved without any adversarial training, significantly reducing the computational overhead required for robust models.

Conclusion

Random Mask offers a promising path toward robust-by-design architectures by forcing networks to prioritize spatial structure. While it remains more vulnerable to white-box attacks where the specific mask is known, its performance in black-box scenarios is state-of-the-art. The findings suggest a need to rethink the definition of "robustness" if the most resilient models are those that force attackers to change the semantic meaning of an image to achieve misclassification.

Summary updated

BibTeX
@misc{luo2020random,
  author = {Tiange Luo and Tianle Cai and Mengxiao Zhang and Siyu Chen and Liwei Wang},
  title = {{RANDOM MASK: Towards Robust Convolutional Neural Networks}},
  year = {2020},
  eprint = {2007.14249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.14249},
}
Figure