CRCNet: Few-Shot Segmentation with Cross-Reference and Region-Global Conditional Networks

Weide Liu, Chi Zhang, Guosheng Lin, Fayao Liu

Abstract

Few-shot segmentation (FSS) aims to segment novel object categories using only a limited number of labeled support examples. Traditional approaches often suffer from architectural asymmetry, where support images guide query images in a one-way process, and rely on coarse global features that overlook local details. This paper introduces CRCNet, a framework that reimagines FSS by treating support and query images as a symmetric pair. By employing a Cross-Reference Module and a Local-Global Conditional mechanism, CRCNet achieves state-of-the-art performance across major benchmarks, including PASCAL VOC 2012, MS COCO, and FSS-1000.

Introduction

Few-shot segmentation is a critical task for computer vision models required to generalize to unseen classes on the fly. While standard deep learning models require thousands of labeled images to learn a new category, FSS models must identify objects based on as few as one to five examples.

Existing research in FSS has identified three primary challenges:

  1. Asymmetry: Most models use the support image to guide the query image, but the query image’s information is rarely used to refine the understanding of the support image.
  2. Coarse Guidance: Many methods rely on global category vectors, which can ignore local, part-level similarities—such as matching a bird's wing in a query image to a full bird in a support image.
  3. Single-pass Prediction: The high variability in object appearance means a single feed-forward pass often fails to capture the full extent of an object.

CRCNet addresses these gaps by introducing a symmetric architecture that facilitates mutual information exchange between the support and query sets.

Methodology

Symmetric Cross-Reference Module

Unlike standard two-branch networks, CRCNet predicts foreground masks for both the query and the support images simultaneously. This symmetric approach encourages the network to identify co-occurrent features present in both images, effectively mining the "essence" of the target category rather than just matching pixels to a static template.

Local-Global Conditional Module

To improve the precision of feature comparison, CRCNet utilizes two types of conditions:

  • Global Condition: Uses masked average pooling to extract a category-representative vector from the support image.
  • Local Condition: Computes a pixel-to-pixel similarity matrix (attention) between the two images. This captures fine-grained, part-level relationships, allowing the model to recognize objects even under partial occlusion or significant viewpoint changes.

Recurrent Mask Refinement

CRCNet includes a lightweight module that saves the probability map from the previous step into a "confidence cache." The model then uses this cache to iteratively refine the segmentation, expanding from high-confidence "seed" regions to the full object boundaries. This iterative process significantly improves the robustness of the final mask.

K-shot Finetuning

For scenarios where multiple support images are available ($k > 1$), the authors propose a test-time finetuning scheme. Instead of simply averaging predictions from $k$ separate 1-shot tasks, CRCNet optimizes the model on the specific support set at inference time, allowing for better adaptation to the specific appearance of the target class.

Experiments and Results

Datasets

The model was evaluated on three primary benchmarks:

  • PASCAL VOC 2012: The standard FSS benchmark, using 4-fold cross-validation.
  • MS COCO: A large-scale dataset with 80 categories and complex backgrounds.
  • FSS-1000: A dataset containing 1,000 different object classes designed specifically for few-shot tasks.

Performance

CRCNet established new state-of-the-art (SOTA) results across all tested datasets:

  • PASCAL VOC 2012: Achieved 56.4% mIoU (1-shot) and 61.5% mIoU (5-shot), outperforming previous leaders such as PFENet.
  • MS COCO: Reached 38.7% mIoU (1-shot) and 43.1% mIoU (5-shot).
  • FSS-1000: Achieved a high of 81.1% mIoU (1-shot).

Efficiency analysis showed that the recurrent mask refinement module, while iterative, remains lightweight. It contributed a ~2.6% mIoU boost on PASCAL VOC compared to a single-pass baseline with minimal computational overhead.

Discussion and Limitations

While CRCNet represents a significant advancement, the authors noted several areas for improvement:

  • Semantic Ambiguity: The model occasionally confuses visually similar categories (e.g., cats vs. dogs) without higher-level semantic context.
  • Small Objects: Very small objects remain difficult to capture, likely due to the loss of spatial resolution in deep feature encoders.
  • Incomplete Support Information: If a support image only displays a portion of an object, the model may struggle to segment the entire object in the query image.

Conclusion

CRCNet demonstrates that treating the query and support images as a symmetric pair is a powerful paradigm for few-shot segmentation. By combining global category guidance with local attention and iterative refinement, the model effectively bridges the gap between limited data and robust generalization. Future work will likely focus on integrating stronger semantic priors to resolve category ambiguity and multi-scale fusion to better handle small objects.

Summary updated

BibTeX
@article{liu2022crcnet,
  author = {Weide Liu and Chi Zhang and Guosheng Lin and Fayao Liu},
  title = {{CRCNet: Few-Shot Segmentation with Cross-Reference and Region-Global Conditional Networks}},
  journal = {Int. J. Comput. Vis.},
  year = {2022},
  doi = {10.1007/s11263-022-01677-7},
}
Figure