Skip to main content
QUICK REVIEW

[Paper Review] Shape or Texture: Understanding Discriminative Features in CNNs

Amirul Islam, Matthew Kowal|arXiv (Cornell University)|Jan 27, 2021
Generative Adversarial Networks and Image SynthesisComputer Science31 references15 citations
TL;DR

This paper investigates how Convolutional Neural Networks (CNNs) encode shape versus texture information in their latent representations, using mutual information estimation and read-out modules to isolate shape- and texture-specific neurons. It finds that while CNNs learn most shape information early in training and encode it across layers, only the final layers correctly assign semantic labels to shape pixels, and shape-biased models rely more on shape-specific neurons than texture-biased ones.

ABSTRACT

Contrasting the previous evidence that neurons in the later layers of a Convolutional Neural Network (CNN) respond to complex object shapes, recent studies have shown that CNNs actually exhibit a `texture bias': given an image with both texture and shape cues (e.g., a stylized image), a CNN is biased towards predicting the category corresponding to the texture. However, these previous studies conduct experiments on the final classification output of the network, and fail to robustly evaluate the bias contained (i) in the latent representations, and (ii) on a per-pixel level. In this paper, we design a series of experiments that overcome these issues. We do this with the goal of better understanding what type of shape information contained in the network is discriminative, where shape information is encoded, as well as when the network learns about object shape during training. We show that a network learns the majority of overall shape information at the first few epochs of training and that this information is largely encoded in the last few layers of a CNN. Finally, we show that the encoding of shape does not imply the encoding of localized per-pixel semantic information. The experimental results and findings provide a more accurate understanding of the behaviour of current CNNs, thus helping to inform future design choices.

Motivation & Objective

  • To understand whether and how CNNs encode shape information in their latent representations, beyond just classification output.
  • To investigate when and where shape information is encoded during training, particularly in relation to texture bias.
  • To determine whether shape encoding in CNNs supports per-pixel semantic understanding, not just global shape recognition.
  • To evaluate the relative reliance of texture-biased and shape-biased models on shape- or texture-specific neurons in their latent features.

Proposed method

  • Used mutual information estimation between stylized PASCAL VOC images and CNN feature maps to quantify shape and texture representation dimensions.
  • Trained read-out modules (single-convolutional-layer heads) on latent features to perform binary and semantic segmentation, using ground truth pixel-level labels.
  • Forced read-out modules to rely only on top X% of neurons most correlated with shape or texture via selective neuron retention in frozen ResNet-50 features.
  • Compared performance of read-out modules trained on ImageNet (texture-biased) and Stylized ImageNet (shape-biased) models to assess reliance on shape vs. texture neurons.
  • Applied dimensionality estimation to identify the number of effective dimensions encoding shape and texture in feature maps.
  • Used binary and semantic segmentation mIoU scores as evaluation metrics to compare performance across neuron selection strategies.

Experimental results

Research questions

  • RQ1How much shape information is encoded in the latent representations of CNNs, and at which network depth is it most prominent?
  • RQ2Does the encoding of shape in CNNs support per-pixel semantic segmentation, or is it limited to global shape recognition?
  • RQ3Do shape-biased models (e.g., trained on Stylized ImageNet) rely more on shape-specific neurons than texture-biased models (e.g., trained on ImageNet)?
  • RQ4When during training is the majority of shape information learned by a CNN?
  • RQ5How does removing non-targeted neurons affect segmentation performance when only shape- or texture-specific neurons are retained?

Key findings

  • CNNs learn the majority of overall shape information within the first few epochs of training, indicating rapid acquisition of shape cues.
  • Shape information is encoded across multiple layers, but only the final layers of the network correctly assign categorical semantic labels to object pixels.
  • A model pre-trained on ImageNet contains sufficient shape and categorical information in its late-stage features to perform binary and semantic segmentation with high mIoU.
  • Removing texture information severely impairs the network’s ability to correctly assign semantic labels to shape pixels, highlighting texture’s disruptive role in shape perception.
  • For texture-biased models (ImageNet-pretrained), performance of read-out modules is significantly better when only texture-specific neurons are retained, confirming their reliance on texture.
  • For shape-biased models (Stylized ImageNet-pretrained), performance is significantly better when only shape-specific neurons are retained, confirming their reliance on shape features.

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.