Learning Visual Representations for Transfer Learning by Suppressing Texture

Shlok Mishra, Anshul Shah, Ankan Bansal, Janit Anjaria, Jonghyun Choi, Abhinav Shrivastava, Abhishek Sharma, David Jacobs

TL;DR

This paper demonstrates that Convolutional Neural Networks (CNNs) are overly reliant on texture, which hinders their ability to generalize to new domains. By using anisotropic diffusion—a classical image processing technique—to suppress texture while preserving edges during training, the authors significantly improve model performance on downstream transfer learning tasks, achieving gains of up to 11.49% on texture-sparse datasets like Sketch-ImageNet.

What Problem Does This Paper Address?

Deep learning models, particularly CNNs, are notoriously "texture-biased." While humans identify a cat by its shape and features, a CNN might classify it primarily based on the pattern of its fur. While this works well on standard benchmarks like ImageNet, it creates a major bottleneck for transfer learning and domain generalization.

When a model is moved to a new environment where the texture changes (e.g., from a photo to a sketch, or from a sunny day to a rainy one), the "texture shortcut" fails. In self-supervised learning (SSL), this is even more problematic: the network can use low-level textural cues as a "cheat code" to solve pretext tasks without ever learning the high-level semantic structures (like object shapes) that are actually useful for downstream applications.

Methods

The authors propose a simple yet effective data augmentation strategy: texture suppression via Anisotropic Diffusion Filters (ADF).

Unlike standard Gaussian blurring, which smooths everything uniformly and destroys sharp edges, anisotropic diffusion (specifically the Perona-Malik method) uses a non-linear process. It smooths out low-contrast regions (texture) while preserving high-contrast boundaries (edges). This forces the network to stop relying on local pixel patterns and start paying attention to global structure and shape.

Figure 2: Comparison of different texture-reduction methods. Anisotropic diffusion (second from left) preserves the dog's structural boundaries much better than Gaussian blur (fourth from left).

The researchers integrated this into two main pipelines:

  1. Supervised Learning: They created "Anisotropic ImageNet" by augmenting the standard dataset with ADF-filtered versions.
  2. Self-Supervised Learning (SSL): They applied ADF to state-of-the-art frameworks like MoCoV2 and Dense-CL.

They also experimented with a Pix2Pix model trained to mimic the effects of anisotropic diffusion, providing a learnable way to suppress texture.

Datasets

The models were pre-trained on ImageNet and COCO. To test generalization and transferability, the authors evaluated them on a wide array of downstream datasets:

  • Domain Shift Benchmarks: Sketch-ImageNet (sketches of objects) and Synthetic-DTD (objects rendered with randomized textures).
  • Fine-Grained Classification: Aircraft, Birds, Stanford Dogs, and Stanford Cars.
  • Robustness Benchmarks: ImageNet-C (corrupted images) and CIFAR-100.
  • Standard Vision Tasks: Pascal VOC 2007/2012 for object detection and semantic segmentation.

Key Insights and Ideas

  • Texture is a "Shortcut": The paper reinforces the idea that CNNs are lazy; if they can solve a task using local textures, they won't bother learning complex shapes. Suppressing texture removes this shortcut.
  • Edge Preservation is Crucial: The authors show that their method outperforms Gaussian blurring because Gaussian blur removes the very structural information (edges) the model needs to learn shape.
  • Better than Stylization: Previous work (Stylized-ImageNet) replaced textures with artistic styles. However, the authors found this can be counterproductive in self-supervised learning, as the model might just memorize the new, artificial textures. Suppressing texture entirely is a cleaner approach for SSL.
  • The "Sweet Spot" of Suppression: There is a limit to how much texture should be removed. The authors found that increasing the number of diffusion iterations beyond a certain point (e.g., 50 iterations) actually degrades performance, likely because the training data distribution becomes too distant from real-world images.

Key Results

The results across various tasks were consistently positive, particularly where texture was absent or misleading:

  • Sketch-ImageNet: The Pix2Pix-Anisotropic model achieved a massive 11.49% improvement in Top-1 accuracy over the ImageNet baseline.
  • Synthetic-DTD: A performance boost of 10.41%, proving the model became much more "texture-agnostic."
  • Object Detection: On the Pascal VOC benchmark, adding anisotropic diffusion to the Dense-CL (SSL) framework improved detection performance by 1.1 to 1.2 mAP.
  • Generalization: The method improved Top-1 accuracy on standard ImageNet validation by 0.82%, suggesting that even in "normal" settings, a reduced reliance on texture is beneficial.
Figure 1: An overview of our approach. We propose to augment the ImageNet dataset by adding with Anisotropic diffused images. The use of this augmentation helps the network rely less on texture information and increases performance in several settings.

Limitations and Future Work

While the method is highly effective for transfer learning, the authors note that the computational cost of running anisotropic diffusion on millions of images can be significant, though they mitigated this by using a Pix2Pix model to approximate the filter.

Additionally, the paper focuses primarily on CNNs (ResNet-50). As Vision Transformers (ViTs) become more prevalent—which are known to have different inductive biases regarding texture and shape—it remains to be seen if texture suppression provides the same magnitude of benefit for transformer-based architectures. Future work could also explore more adaptive ways to determine the optimal level of texture suppression for specific downstream tasks.

Summary updated

BibTeX
@misc{mishra2020learning,
  author = {Shlok Mishra and Anshul Shah and Ankan Bansal and Janit Anjaria and Jonghyun Choi and Abhinav Shrivastava and Abhishek Sharma and David Jacobs},
  title = {{Learning Visual Representations for Transfer Learning by Suppressing Texture}},
  year = {2020},
  eprint = {2011.01901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.01901},
}
Figure