On the Texture Bias for Few-Shot CNN Segmentation

Reza Azad, Abdur R. Fayjie, Claude Kauffmann, Ismail Ben Ayed, Marco Pedersoli, Jose Dolz

Abstract: Despite the initial belief that Convolutional Neural Networks (CNNs) are driven by shapes to perform visual recognition tasks, recent evidence suggests that texture bias in CNNs provides higher performing models when learning on large labeled training datasets. This contrasts with the perceptual bias in the human visual cortex, which has a stronger preference towards shape components. Perceptual differences may explain why CNNs achieve human-level performance when large labeled datasets are available, but their performance significantly degrades in lowlabeled data scenarios, such as few-shot semantic segmentation. To remove the texture bias in the context of few-shot learning, we propose a novel architecture that integrates a set of Difference of Gaussians (DoG) to attenuate high-frequency local components in the feature space. This produces a set of modified feature maps, whose high-frequency components are diminished at different standard deviation values of the Gaussian distribution in the spatial domain. As this results in multiple feature maps for a single image, we employ a bi-directional convolutional long-short-term-memory to efficiently merge the multi scale-space representations. We perform extensive experiments on three well-known few-shot segmentation benchmarks -- Pascal i5, COCO-20i and FSS-1000 -- and demonstrate that our method outperforms state-of-the-art approaches in two datasets under the same conditions.

Introduction

In the world of computer vision, Convolutional Neural Networks (CNNs) are often praised for their "human-like" performance. However, research has revealed a fundamental difference: while humans prioritize shape to recognize objects, CNNs are highly sensitive to texture. While a cat's fur pattern helps a model identify it in a massive dataset like ImageNet, that same "texture bias" becomes a liability in few-shot learning, where the model must generalize from only one or two examples.

Texture is highly variable; lighting, perspective, and individual differences can make the texture of the same object look completely different. Shape, however, is much more consistent. This paper proposes that the performance degradation seen in few-shot tasks is largely because CNNs are trying to match noisy textures rather than robust shapes. To fix this, the authors introduce a method to force the model to "squint" and ignore high-frequency details.

Proposed Architecture

The authors propose a two-stage solution to prioritize shape over texture by integrating classical image processing techniques with modern deep learning architectures.

Overview of the proposed few-shot segmentation architecture featuring the DoG Pyramid and Bi-directional ConvLSTM.

1. The DoG Pyramid (Texture Filtering)

The researchers integrate a pyramid of Difference of Gaussians (DoG). In image processing, a DoG acts as a band-pass filter. By applying different levels of Gaussian blur and subtracting them, the model can systematically suppress high-frequency "noise" (texture) while preserving the structural "signal" (shape). This creates a "scale-space" where the image is represented at multiple levels of detail.

Detailed view of the DoG module and the Bi-directional ConvLSTM fusion mechanism.

As shown in the detailed module view, the support features are passed through Gaussian kernels ($\sigma_0$ to $\sigma_4$). The resulting DoG maps are masked using the support labels to focus on the object of interest, then pooled and un-pooled to create a scale-space representation that is combined with the query features.

2. Bi-directional ConvLSTM Fusion

Because the DoG pyramid produces multiple feature maps for a single image, the model needs an efficient way to merge them. Instead of simple averaging, the authors treat these scales as a sequence. They use a Bi-directional Convolutional Long Short-Term Memory (BConvLSTM) to fuse the features. This allows the model to learn the relationships between coarse shapes and finer details, passing information both "forward" and "backward" through the scales.

Experimental Results

The proposed method, dubbed DoG-LSTM, was evaluated on three major few-shot segmentation benchmarks: PASCAL-$5^i$, COCO-$20^i$, and FSS-1000.

  • FSS-1000: In the 1-shot task, the model achieved 80.8% mIoU, representing a 5.5% improvement over the previous best-performing model using the same backbone.
  • PASCAL-$5^i$: The model consistently outperformed state-of-the-art (SOTA) approaches across different backbones (VGG-16, ResNet-50, and ResNet-101). For example, using a VGG-16 backbone, it reached 58.0% mIoU, significantly higher than many ResNet-based competitors.
  • Robustness to Weak Supervision: Because the model focuses on shape, it is surprisingly resilient. The authors showed that even if the model is given a rough bounding box instead of a perfect pixel-level mask for the support image, the performance barely drops.

Conclusion and Future Work

By acknowledging and mitigating the texture bias inherent in standard CNNs, this research provides a powerful new direction for few-shot learning. The integration of a DoG-based scale-space representation allows for a more "human-like" perceptual bias toward shape.

While the architecture is "light" in parameters, recurrent units like ConvLSTMs can be computationally expensive. Future work may explore applying this "shape-over-texture" philosophy to other few-shot tasks, such as object detection or classification, to create more robust AI across the board.

The code for this project is available at: https://github.com/rezazad68/fewshot-segmentation

Summary updated

BibTeX
@inproceedings{azad2021texture,
  author = {Reza Azad and Abdur R. Fayjie and Claude Kauffmann and Ismail Ben Ayed and Marco Pedersoli and Jose Dolz},
  title = {{On the Texture Bias for Few-Shot CNN Segmentation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=jhiSU-qjtt},
}
Figure