Abstract
Few-shot semantic segmentation (FSS) aims to segment novel objects in a query image using only a few annotated support examples. Traditional methods often struggle with "hard pixel noise"—irrelevant background objects that share visual similarities with the target class, leading to false positives. This paper introduces OCNet (Object-level Correlation Network), a biologically inspired approach that shifts the focus from image-wide pixel matching to object-level correlation. By first identifying all potential objects in a scene and then matching them to the target, OCNet effectively suppresses background distractors. The model achieves state-of-the-art performance on the PASCAL-5$^i$ and COCO-20$^i$ benchmarks.
The Challenge of Hard Pixel Noise
Most existing FSS methods attempt to find a target object by comparing support features to every single pixel in a query image. However, query images are frequently cluttered with multiple distinct objects. If a model is searching for a "dog" in an image that also contains a "person" or a "car," these irrelevant entities act as hard pixel noise.
Because traditional models operate on image-level correlations, they often overfit to these distinct background objects, resulting in inaccurate segmentations. The authors argue that the search space in standard FSS is too broad; rather than scanning the entire image at once, a more robust system should first identify "things" in the environment and then decide which "thing" matches the target.
OCNet: Mimicking Human Vision
OCNet mimics the human visual system's two-step process: saliency detection (identifying "stuff") followed by task-dependent selection (identifying the "right stuff"). The architecture is built around two primary modules:
1. General Object Mining Module (GOMM)
Instead of searching for the target class immediately, the GOMM uses Class Activation Maps (CAM) and saliency cues to identify all general objects within the query image, including background distractors. This process generates a "General Object Feature" map, effectively narrowing the model's focus to regions likely to contain meaningful entities.
2. Correlation Construction Module (CCM)
Once potential objects are identified, the CCM matches the support target prototypes to these general objects. To ensure this matching is robust and globally optimized, the authors employ Optimal Transport (OT) via the Sinkhorn algorithm. This "content-aware" allocation prevents the "greedy" matching errors common in simple cosine similarity approaches. Furthermore, OCNet explicitly utilizes background prototypes from the support image to help suppress noise in the query image.
Key Results and Insights
OCNet was evaluated on the PASCAL-5$^i$ and COCO-20$^i$ benchmarks, following the standard episodic meta-learning paradigm. The model achieved state-of-the-art (SOTA) results across both datasets:
- PASCAL-5$^i$: Using a ResNet-50 backbone, OCNet reached 71.4% mIoU in the 1-shot setting and 74.5% mIoU in the 5-shot setting.
- COCO-20$^i$: On this more challenging dataset, the model achieved 51.5% mIoU (1-shot) and 57.0% mIoU (5-shot).
Qualitative visualizations confirm that OCNet is significantly better at ignoring "hard noise" like furniture or other animals that share high-level features with the target. By restricting correlation to pre-identified object areas, the model avoids the common pitfall of misclassifying complex background textures.
Conclusion and Future Work
The transition from a "pre-attentive" saliency phase to a "task-dependent" selection phase proves highly effective in low-data regimes. While the model's performance is currently somewhat dependent on the quality of the initial CAM-generated object masks, the use of cross-attention helps mitigate incomplete detections. Future research may explore applying these object-level correlations to other few-shot tasks, such as object detection or video-based tracking.
Summary updated