Skip to main content
QUICK REVIEW

[Paper Review] Intriguing generalization and simplicity of adversarially trained neural networks

Chirag Agarwal, Peijie Chen|arXiv (Cornell University)|Jun 16, 2020
Adversarial Robustness in Machine LearningComputer Science3 citations
TL;DR

This paper investigates how adversarially trained neural networks generalize to out-of-distribution data and what representations they learn. It finds that robust models generalize better on texture-less images like silhouettes and stylized versions, relying heavily on shape cues, while adversarial training induces three key shifts: smoother feature detection, increased focus on low-level textures/colors, and reduced neuronal complexity.

ABSTRACT

Adversarial training has been the topic of dozens of studies and a leading method for defending against adversarial attacks. Yet, it remains unknown (a) how adversarially-trained classifiers (a.k.a classifiers) generalize to new types of out-of-distribution examples; and (b) what hidden representations were learned by robust networks. In this paper, we perform a thorough, systematic study to answer these two questions on AlexNet, GoogLeNet, and ResNet-50 trained on ImageNet. While robust models often perform on-par or worse than standard models on unseen distorted, texture-preserving images (e.g. blurred), they are consistently more accurate on texture-less images (i.e. silhouettes and stylized). That is, robust models rely heavily on shapes, in stark contrast to the strong texture bias in standard ImageNet classifiers (Geirhos et al. 2018). Remarkably, adversarial training causes three significant shifts in the functions of hidden neurons. That is, each convolutional neuron often changes to (1) detect pixel-wise smoother patterns; (2) detect more lower-level features i.e. textures and colors (instead of objects); and (3) be simpler in terms of complexity i.e. detecting more limited sets of concepts.

Motivation & Objective

  • To understand how adversarially trained classifiers generalize to out-of-distribution examples beyond standard ImageNet data.
  • To investigate the nature of hidden representations learned by robust models compared to standard models.
  • To identify structural and functional changes in neurons after adversarial training.
  • To determine whether robustness correlates with shifts in feature hierarchy and representational complexity.

Proposed method

  • Trained AlexNet, GoogLeNet, and ResNet-50 on ImageNet using adversarial training with PGD attacks.
  • Evaluated generalization on diverse out-of-distribution datasets, including blurred, stylized, and silhouette images.
  • Analyzed hidden-layer activations to assess feature complexity, spatial smoothness, and detectable concepts per neuron.
  • Compared neuron behavior in standard vs. adversarially trained models across multiple architectures and layers.
  • Quantified shifts in neuron function by measuring spatial smoothness, feature specificity, and concept diversity in activations.

Experimental results

Research questions

  • RQ1How do adversarially trained models generalize to out-of-distribution images with altered textures or distortions?
  • RQ2What kind of inductive bias do robust models learn compared to standard models?
  • RQ3How does adversarial training alter the functional behavior of individual convolutional neurons?
  • RQ4To what extent do robust models rely on shape versus texture for classification?

Key findings

  • Adversarially trained models outperform standard models on texture-less images such as silhouettes and stylized images, indicating stronger shape bias.
  • Standard ImageNet classifiers exhibit a strong texture bias, whereas robust models shift toward detecting shape-based features.
  • Each convolutional neuron in robust models becomes more spatially smooth in its activation patterns, indicating detection of coarser, smoother patterns.
  • Neurons in robust models increasingly detect low-level features like colors and textures rather than high-level objects, suggesting a shift in representational hierarchy.
  • Neurons in adversarially trained networks show reduced complexity, detecting fewer and more constrained sets of visual concepts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.