Abstract
Cross-Domain Few-Shot Segmentation (CDFSS) is proposed to transfer the pixel-level segmentation capabilities learned from large-scale source-domain datasets to downstream target-domain datasets, with only a few annotated images per class. In this paper, we focus on a well-observed but unresolved phenomenon in CDFSS: for target domains, particularly those distant from the source domain, segmentation performance peaks at the very early epochs and declines sharply as source-domain training proceeds. We delve into this phenomenon for an interpretation: low-level features are vulnerable to domain shifts, leading to sharper loss landscapes during source-domain training, which is the "devil" of CDFSS. Based on this interpretation, we propose a method including two plug-and-play modules: one to flatten the loss landscapes for low-level features during training via a novel sharpness-aware minimization method, and another to directly supplement target-domain information during testing through low-level-based calibration. Extensive experiments on four target datasets validate our rationale and demonstrate that our method surpasses state-of-the-art methods by 3.71% and 5.34% average MIoU in 1-shot and 5-shot scenarios, respectively.
Introduction: The Challenge of Domain Shift
Few-Shot Segmentation (FSS) aims to segment novel objects using only a handful of labeled examples. However, in real-world applications, the "target" domain (e.g., satellite imagery or medical X-rays) is often vastly different from the "source" domain (e.g., everyday objects in PASCAL VOC) used for initial training. This gap defines the challenge of Cross-Domain Few-Shot Segmentation (CDFSS).
A puzzling phenomenon in CDFSS is that models often perform best on target domains after only one or two epochs of training. As training continues on the source domain, performance on the target domain drops sharply. While "early stopping" is a temporary fix, it doesn't solve the underlying issue: why does more learning lead to worse generalization? This paper identifies that low-level features (edges, textures) become too specialized to the source domain, creating a "sharp" loss landscape that fails to navigate the domain gap.
Methodology: Stabilizing Low-Level Features
The authors propose two "plug-and-play" modules to address the vulnerability of low-level features:
1. Low-level Enhancing Module (LEM) - Train-time
To prevent the model from overfitting to source-specific textures, LEM applies a novel form of Sharpness-Aware Minimization. It uses random convolutions to perturb features and then employs a Fast Fourier Transform (FFT). By swapping the amplitude spectrum (style/texture) while keeping the phase spectrum (shape/structure), the model is forced to learn features that are invariant to low-level domain shifts, effectively "flattening" the loss landscape.
2. Low-level Calibration Module (LCM) - Test-time
Since low-level features often "collapse" when encountering a new domain, LCM directly supplements the model with information from the target query image. It identifies reliable foreground patches in a coarse segmentation mask and uses their low-level feature similarities to refine and "calibrate" the final prediction.
Experimental Results
The model was trained on the PASCAL VOC 2012 dataset as the source domain and evaluated on four distinct target datasets: FSS-1000 (daily objects), Deepglobe (satellite imagery), ISIC (skin lesions), and Chest X-ray (lung segmentation).
Key Findings
- Superiority: The proposed method outperformed the previous state-of-the-art (APSeg) by 3.71% in 1-shot and 5.34% in 5-shot scenarios (average mIoU).
- Consistency: Unlike previous methods that showed a "downward curve" in performance as training progressed, the LEM-equipped model showed steady, increasing performance on target domains.
- Qualitative Improvement: Visualizations show the model is much better at identifying the primary object in distant domains where baseline models often focused on incorrect regions after extended training.
Discussion and Conclusion
This research challenges the common assumption that low-level features are the most transferable across domains. In the context of CDFSS, these features are actually the most prone to absorbing domain-specific "noise," which subsequently poisons deeper layers. By demonstrating that the loss landscape for shallow layers becomes "sharper" over time, the authors provide a quantitative link between feature sharpness and poor generalization.
While the modules are "plug-and-play," the LCM module introduces several hyperparameters that require tuning for optimal calibration. Future work may involve automating this selection or exploring if these low-level feature insights apply to other cross-domain tasks like object detection. Ultimately, by flattening the loss landscape and utilizing phase-based shape information, this work provides a robust framework for high-performance cross-domain segmentation.
Summary updated