Defective Convolutional Layers Learn Robust CNNs

Tiange Luo, Tianle Cai, Mengxiao Zhang, Siyu Chen, Di He, Liwei Wang · OpenReview

Abstract

Adversarial examples—inputs modified by imperceptible perturbations that cause misclassification—pose a significant threat to the reliability of convolutional neural networks (CNNs). Recent research suggests that these vulnerabilities arise from a "texture bias," where models prioritize local textural patterns over global structural information. We propose Defective Convolutional Networks (DCNs), which incorporate defective neurons with constant activations in early layers. By intentionally disrupting the extraction of local textures, DCNs are forced to learn more robust, shape-based representations. Our results demonstrate that DCNs achieve state-of-the-art performance against transfer-based black-box attacks without requiring computationally expensive adversarial training.

Introduction: The Texture Bias Problem

Standard CNNs are often described as "lazy" learners. Because local textures are highly redundant and easier to optimize for during training, models naturally develop a bias toward these features. However, these textural cues are fragile; they are easily distorted by the high-frequency noise typical of adversarial attacks. While humans can recognize an object despite graininess or missing pixels by relying on global geometry, CNNs often fail when their preferred textural signals are compromised.

Methodology: Defective Convolutional Layers

The core innovation of this work is the Defective Convolutional Layer. Unlike standard layers where every neuron is functional, a defective layer applies a fixed binary mask ($M_{defect}$) to the activations, permanently setting a subset of neurons to zero.

Strategic Implementation

  • Bottom-Up Defense: The defects are strategically applied to the bottom layers (those closest to the input). This disrupts the initial feature extraction phase, preventing the network from building a representation based solely on local textures.
  • Fixed Masks: Unlike Dropout, which is a stochastic regularization technique used only during training, DCN masks remain fixed during both training and inference. This permanent "defect" forces the subsequent layers to find alternative, more stable structural cues like edges and shapes.
  • Standard Training: DCNs do not require adversarial training. They are trained on clean datasets using standard optimization, making them significantly more efficient to develop than many existing robust models.

Key Insights: Shape Bias and Human Alignment

By killing up to 70-90% of neurons in early layers, the network is forced to utilize its remaining "bandwidth" for essential, non-redundant features. This shift from texture to shape has a profound effect on how the model perceives adversarial perturbations.

Human-Aligned Adversaries

A striking finding is that adversarial examples generated to fool a DCN often align better with human perception. In a standard CNN, an adversarial attack typically looks like meaningless high-frequency noise. In contrast, an adversary designed to fool a DCN often begins to take on the structural characteristics of the target class. This suggests that the DCN's internal representations are more closely aligned with the way humans identify objects.

Standard CNN adversarial example: The perturbation appears as non-interpretable high-frequency noise.

Experimental Results

Black-Box Robustness

On the CIFAR-10 benchmark, DCNs achieved 84.60% accuracy against PGD transfer attacks. This outperforms traditional adversarial training (78.10%) and other specialized defenses, despite the DCN never having seen an adversarial example during its training phase.

The Accuracy-Robustness Trade-off

There is an inherent "robustness price." For a ResNet-18 on CIFAR-10, a DCN with a 0.3 keep probability (70% defective neurons) saw clean test accuracy drop from 95.33% to 91.83%. However, this minor loss in clean performance is offset by a massive gain in resilience against both adversarial attacks and common additive Gaussian noise.

Conclusion and Future Work

Defective Convolutional Networks provide a hardware-efficient and training-friendly method for building robust vision models. By forcing a shift from texture bias to shape bias, DCNs achieve superior black-box defense. Future work will explore ensembling multiple DCNs with different random masks to mitigate the clean accuracy drop while further hardening the models against white-box attacks where the specific mask might be known to the attacker.

Summary updated

BibTeX
@misc{luo2019defective,
  author = {Tiange Luo and Tianle Cai and Mengxiao Zhang and Siyu Chen and Di He and Liwei Wang},
  title = {{Defective Convolutional Layers Learn Robust CNNs}},
  year = {2019},
  eprint = {1911.08432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08432},
}
Figure