Abstract
Recently few-shot segmentation (FSS) has been extensively developed. Most previous works strive to achieve generalization through the meta-learning framework derived from classification tasks; however, the trained models are biased towards the seen classes instead of being ideally class-agnostic, thus hindering the recognition of new concepts. This paper proposes a fresh and straightforward insight to alleviate the problem. Specifically, we apply an additional branch (base learner) to the conventional FSS model (meta learner) to explicitly identify the targets of base classes, i.e., the regions that do not need to be segmented. Then, the coarse results output by these two learners in parallel are adaptively integrated to yield precise segmentation prediction. Considering the sensitivity of meta learner, we further introduce an adjustment factor to estimate the scene differences between the input image pairs for facilitating the model ensemble forecasting. The substantial performance gains on PASCAL-5<sup>i</sup> and COCO-20<sup>i</sup> verify the effectiveness, and surprisingly, our versatile scheme sets a new state-of-the-art even with two plain learners. Moreover, in light of the unique nature of the proposed approach, we also extend it to a more realistic but challenging setting, i.e., generalized FSS, where the pixels of both base and novel classes are required to be determined.
Introduction
Few-Shot Segmentation (FSS) aims to segment novel objects in a query image given only a few annotated support examples. While humans perform this task effortlessly, machine learning models often struggle with base class bias. During training, models are exposed to thousands of examples of specific "base" classes (e.g., "person," "car"). When subsequently asked to segment a "novel" class (e.g., "cat") in a scene containing base classes, the model often incorrectly focuses on the familiar base objects. Ideally, an FSS model should be class-agnostic, but in practice, it remains class-biased. This paper introduces the BAM (Base and Meta learner) framework, which posits that to find something new, a model must first know exactly what to ignore.
Methodology: The BAM Framework
The core innovation of BAM is an "addition by subtraction" approach. By explicitly identifying known background objects (base classes), the model makes the novel object "pop out" by process of elimination.
Dual-Learner Architecture
BAM utilizes a shared encoder backbone to feed two parallel branches:
- The Base Learner: A standard semantic segmentation branch trained to recognize all classes present in the initial training set. Its role is to identify "distractor" objects that are definitely not the novel target.
- The Meta Learner: A traditional few-shot branch that extracts features from the support image to create a prototype of the novel object and searches for similar features in the query image.
Adaptive Ensemble and Adjustment Factor
The coarse predictions from both learners are merged in an Ensemble module. To handle the inherent instability of meta-learners—which are sensitive to the quality and scene similarity of support images—BAM introduces an Adjustment Factor ($\psi$). By calculating the difference between the Gram matrices of the support and query images (a proxy for scene difference), the model can adaptively weight the contributions of the two learners, providing a mathematical confidence score for the meta-learner's prediction.
Experimental Results
BAM was evaluated on the PASCAL-5<sup>i</sup> and COCO-20<sup>i</sup> benchmarks, achieving significant performance gains over previous state-of-the-art (SOTA) models like HSNet and PFENet.
- Quantitative Performance: On PASCAL-5<sup>i</sup>, BAM achieved a mean Intersection-over-Union (mIoU) of 64.41% (1-shot) and 68.76% (5-shot) using a VGG16 backbone, outperforming previous bests by nearly 5%. On the more challenging COCO-20<sup>i</sup>, it reached 46.23% mIoU (1-shot) with a ResNet50 backbone.
- Qualitative Analysis: Visual results demonstrate that BAM effectively suppresses distractors. While baseline models often mistakenly segment base class objects (like people) when searching for novel targets, BAM's base learner identifies these regions to be excluded from the final prediction.
Generalized Few-Shot Segmentation (GFSS)
BAM naturally extends to the Generalized FSS setting, where the model must simultaneously segment both novel and base classes. Because it maintains a dedicated base learner, BAM avoids the common pitfall of "forgetting" base classes, allowing it to excel in this more realistic and challenging scenario.
Conclusion
By explicitly modeling "what not to segment," the BAM framework effectively mitigates base class bias in few-shot segmentation. This simple yet powerful perspective allows the model to achieve state-of-the-art results even with relatively plain learner components. The success of this approach suggests that explicitly identifying known distractors is a vital step toward achieving true class-agnostic generalization in computer vision.
Summary updated