Introduction
Few-Shot Segmentation (FSS) aims to segment target objects in a query image using only a limited number of annotated support examples. Traditional approaches typically rely on "prototypes"—feature vectors that represent the average appearance of a class. However, these methods often struggle with multi-modal appearances, where an object may look significantly different from various angles or in different contexts. A single average vector is often not expressive enough to capture these nuances, nor does it account for model confidence.
This paper proposes a shift from static prototypes to a dynamic, non-parametric Gaussian Process (GP) learner. By treating the support set as training data for a GP, the model can capture complex, non-linear distributions in feature space and provide principled uncertainty estimates, addressing the inherent limitations of prototype-based compression.
Methods
The proposed architecture is an end-to-end trainable system consisting of three primary modules: feature encoders, a GP-based few-shot learner, and a convolutional decoder.
1. Feature Encoders
The model utilizes a standard ResNet-50 backbone to extract deep features from both support and query images. Simultaneously, a dedicated "Mask Encoder" processes the support masks to generate high-dimensional representations of the target class, providing a richer output space for the learner than simple binary masks.
2. The GP Few-Shot Learner
At the heart of the framework is the GP learner. Instead of simple feature averaging, it performs GP regression to map deep image features to the mask encoding space. During inference, the GP predicts a mask encoding for every pixel in the query image. A key advantage of this approach is the generation of a predictive variance map, which quantifies the model's uncertainty. High variance indicates that a query pixel's features are significantly different from those seen in the support set.
3. CNN Decoder
The final stage involves a decoder that integrates the GP’s mean prediction, the uncertainty map, and "shallow" (low-level) features from the query image. This combination allows the model to use high-level semantic information from the GP while refining boundaries using low-level image cues, especially in regions where the GP signals high uncertainty.
Experimental Evaluation
The framework was evaluated on two standard benchmarks: PASCAL-$5^i$ and COCO-$20^i$. These datasets provide a rigorous testing ground for few-shot generalization across diverse object categories.
Key Results and Insights
The GP-based approach achieved state-of-the-art (SOTA) performance in the 5-shot setting, reaching a mean Intersection over Union (mIoU) of 68.1 on PASCAL-$5^i$ and 49.8 on COCO-$20^i$.
A critical observation is the model's ability to scale with data. Unlike prototype methods that often plateau quickly, the GP learner's performance increases monotonically as more support examples are provided. This is due to the non-parametric nature of GPs, which can incorporate additional information without the information loss associated with averaging features into a single centroid.
Furthermore, ablation studies highlighted the importance of the predictive variance. Including uncertainty estimates as an input to the decoder resulted in a 3.3 point mIoU boost. This confirms that the probabilistic output of the GP provides valuable metadata that helps the decoder rely more on low-level image cues to resolve ambiguous regions.
Conclusion and Future Work
By replacing rigid prototypes with flexible Gaussian Processes, this work demonstrates a significant leap in few-shot segmentation performance, particularly in multi-shot scenarios. While the $O(N^3)$ complexity of GP regression poses a theoretical challenge for very large support sets, the current implementation is efficient, with 5-shot inference taking approximately 197ms on a V100 GPU. Future research may explore sparse GP approximations to handle "many-shot" scenarios or adaptive kernel learning to further enhance the model's representational power.
Summary updated