Interpreting Adversarially Trained Convolutional Neural Networks

Tianyuan Zhang, Zhanxing Zhu

This paper explores a fascinating side effect of adversarial training: it fundamentally changes how Convolutional Neural Networks (CNNs) "see" the world. While standard CNNs are notorious for being "texture-hounds"—relying on local patterns like fur or fabric to identify objects—the authors demonstrate that adversarially trained CNNs (AT-CNNs) shift their focus toward global shapes, making their internal representations more aligned with human perception.

The "Texture Bias" Problem

Standard CNNs are incredibly effective but fragile. Research has shown they often rely on local textures rather than the actual shape of an object. For example, a model might identify a "cat" simply by seeing a patch of fur, even if that fur is stretched over the shape of an elephant. This "texture bias" makes models susceptible to adversarial attacks—small, calculated tweaks to pixels that don't change the shape but confuse the texture-sensitive filters. The authors set out to understand if adversarial training (training on these "fooled" images) fixes this bias and encourages the model to look at the "big picture" (i.e., shape).

Methods and "Torture Tests"

The researchers compared standard CNNs with Adversarially Trained CNNs (AT-CNNs) using two main approaches:

  1. Qualitative Visualization: They used SmoothGrad to generate "saliency maps," which highlight the pixels in an image that most influence the model's final prediction.
  2. Quantitative "Torture Tests": To prove the shift from texture to shape, they created three types of transformed test sets designed to isolate these features:
  3. Stylizing: Using style transfer to replace natural textures with artistic ones while keeping the global shape intact.
  4. Saturation: Pushing pixel values toward 0 or 1 to wipe out internal textures, leaving only high-contrast contours.
  5. Patch-Shuffling: Breaking an image into a grid and shuffling the pieces. This preserves local texture but completely destroys the global shape.
Examples of image transformations: Original, Stylized, Saturated, and Patch-shuffled.

The study utilized three widely used benchmarks: CIFAR-10, Tiny ImageNet, and Caltech-256. The authors generated modified versions of these datasets to evaluate the models' performance under different types of information loss.

Key Insights

  • Adversarial training is a "shape-bias" engine: Training against small perturbations forces the network to ignore fickle local textures and instead rely on more stable, long-range dependencies like object contours.
  • Saliency maps become "human-readable": Saliency maps for standard CNNs are often noisy and scattered. In contrast, AT-CNN saliency maps clearly outline the object's shape, looking remarkably like human sketches.
  • The Texture-Shape Trade-off: There is a clear inverse relationship. Standard models excel when shape is destroyed (patch-shuffling) because they only need texture to guess. AT-CNNs fail these tests but dominate when texture is destroyed (stylizing/saturation).

Key Results

  • Stylized Accuracy: On the Stylized Caltech-256 dataset, standard CNNs achieved only 16.83% accuracy. AT-CNNs reached up to 22.53%, showing they are significantly better at recognizing objects by shape alone.
  • Saturation Robustness: As saturation increases (wiping out texture), the accuracy of standard models plummets. AT-CNNs maintain much higher performance, as they can still "see" the remaining contours.
  • Patch-Shuffling Sensitivity: When images were shuffled into 4x4 patches, standard CNNs on Caltech-256 still managed 51.50% accuracy (relying on local texture). AT-CNNs dropped to as low as 20.14%, proving they rely heavily on global structure and are "lost" when the shape is shattered.

Limitations and Future Work

The authors acknowledge the well-known "robustness-accuracy trade-off": while AT-CNNs are more robust and shape-biased, they often have lower accuracy on clean, natural images compared to standard models. Furthermore, this study focused on norm-constrained ($L_\infty$, $L_2$) adversarial training. The authors suggest that future work should investigate if other types of defenses, such as those against spatial transformations, induce similar or different biases in what the network learns.

Summary updated

BibTeX
@inproceedings{zhang2019interpreting,
  author = {Tianyuan Zhang and Zhanxing Zhu},
  title = {{Interpreting Adversarially Trained Convolutional Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure