Reflection Invariance Learning for Few-shot Semantic Segmentation

Qinglong Cao, Yuntian Chen, Chao Ma, Xiaokang YangarXiv 2023 · DOI

Introduction: The Challenge of Reflection Invariance

Few-shot semantic segmentation (FSS) aims to segment novel object categories using only a handful of annotated examples. A significant hurdle in FSS is the model's inability to generalize across mirror symmetries. For instance, if a support image depicts a sheep facing left, a standard model may fail to recognize a sheep facing right in the query image. This lack of reflection invariance limits the learning space and introduces bias when encountering unseen classes.

Comparison between existing single-view frameworks and the proposed reflection-invariant framework.

Methodology: Explicit Reflection Invariance

The proposed framework moves beyond simple data augmentation by embedding horizontal reflection into the core architecture. The system processes both original and reflected versions of the support and query images through a shared backbone (e.g., ResNet50 or VGG16).

1. Reflection Invariance Prototype Creation

To represent a category holistically, the model extracts features from both the original support image and its reflection. Using "Mask Average Pooling," it generates two prototypes which are then fused using learnable parameters. This creates a single, "reflection-invariant" prototype that captures the object's essence regardless of orientation.

2. Reflection Invariance Prior Mask Generation (RIPMG)

The RIPMG module generates initial spatial guidance (prior masks) for both the original and reflected query images. By integrating information from both perspectives, the model provides more robust localization for the final segmentation stage.

3. Reflection Invariance Semantic Prediction (RISP)

Instead of a single output, the model generates predictions for both views. These are complementarily merged in the RISP module to produce the final, high-precision segmentation mask. An "adjustment factor" is also incorporated to account for scene differences between the support and query images.

Detailed architecture of the proposed framework, highlighting the Query, Support, and Segmentation branches.

Evaluation and Results

The framework was evaluated on the PASCAL-$5^i$ and COCO-$20^i$ benchmarks, which are standard for few-shot segmentation tasks.

  • Performance: On PASCAL-$5^i$, the model achieved a mean Intersection over Union (mIoU) of 68.78% (1-shot) and 72.14% (5-shot), surpassing previous leaders by roughly 1%. On the more complex COCO-$20^i$ dataset, it outperformed previous state-of-the-art methods by 2.29% in the 1-shot setting.
  • Ablation Studies: Comparisons with other transformations (rotation, scaling, exposure) revealed that horizontal reflection is the most critical factor for performance gains in natural images. While random scaling provided a minor boost, rotation actually degraded performance, suggesting horizontal symmetry is a uniquely fundamental property for natural object recognition.
  • Qualitative Analysis: Visual results demonstrate that the model is significantly better at capturing complete object boundaries, such as airplane wings or animal limbs, which single-view models often truncate.

Conclusion and Future Work

By treating symmetry as a strong inductive bias, this research demonstrates that explicit architectural support for reflection invariance can significantly mitigate the data scarcity problem in few-shot learning. While the current focus is on horizontal reflection—the most common symmetry in natural scenes—future work may extend these principles to other geometric invariances, such as vertical symmetry or rotational properties relevant to domains like medical imaging or satellite photography.

Summary updated

Abstract

Few-shot semantic segmentation (FSS) aims to segment objects of unseen classes in query images with only a few annotated support images. Existing FSS algorithms typically focus on mining category representations from the single-view support to match semantic objects of the single-view query. However, the limited annotated samples render the single-view matching struggle to perceive the reflection invariance of novel objects, which results in a restricted learning space for novel categories and further induces a biased segmentation with demoted parsing performance. To address this challenge, this paper proposes a fresh few-shot segmentation framework to mine the reflection invariance in a multi-view matching manner. Specifically, original and reflection support features from different perspectives with the same semantics are learnable fused to obtain the reflection invariance prototype with a stronger category representation ability. Simultaneously, aiming at providing better prior guidance, the Reflection Invariance Prior Mask Generation (RIPMG) module is proposed to integrate prior knowledge from different perspectives. Finally, segmentation predictions from varying views are complementarily merged in the Reflection Invariance Semantic Prediction (RISP) module to yield precise segmentation predictions. Extensive experiments on both PASCAL-$5^\textit{i}$ and COCO-$20^\textit{i}$ datasets demonstrate the effectiveness of our approach and show that our method could achieve state-of-the-art performance. Code is available at \url{https://anonymous.4open.science/r/RILFS-A4D1}
BibTeX
@misc{cao2023reflection,
  author = {Qinglong Cao and Yuntian Chen and Chao Ma and Xiaokang Yang},
  title = {{Reflection Invariance Learning for Few-shot Semantic Segmentation}},
  year = {2023},
  eprint = {2309.15850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.15850},
}
Figure