Abstract
Few-shot segmentation (FSS) aims to segment novel classes in a query image by using only a small number of supporting images from base classes. However, in cross-domain few-shot segmentation (CD-FSS), leveraging features from label-rich domains for resource-constrained domains poses challenges due to domain discrepancies. This work presents a Dynamically Adaptive Refine (DARNet) method that aims to balance generalization and specificity for CD-FSS. Our method includes the Channel Statistics Disruption (CSD) strategy, which perturbs feature channel statistics in the source domain, bolstering generalization to unknown target domains. Moreover, recognizing the variability across target domains, an Adaptive Refine Self-Matching (ARSM) method is also proposed to adjust the matching threshold and dynamically refine the prediction result with the self-matching method, enhancing accuracy. We also present a Test-Time Adaptation (TTA) method to refine the model's adaptability to diverse feature distributions. Our approach demonstrates superior performance against state-of-the-art methods in CD-FSS tasks.
The Challenge of Cross-Domain Few-Shot Segmentation
Few-Shot Segmentation (FSS) is designed to segment a new object class using only a handful (1 to 5) of labeled "support" images. While standard FSS performs admirably when training and testing data share the same domain—such as natural images of common animals—it often fails in Cross-Domain FSS (CD-FSS) scenarios.
In CD-FSS, a model trained on natural images (e.g., PASCAL VOC) is tasked with segmenting objects in vastly different domains, such as skin lesions in medical imaging or buildings in satellite photography. This "domain gap" creates significant discrepancies in color, texture, and perspective, rendering features learned in the source domain irrelevant or even misleading in the target domain. Furthermore, conventional models typically rely on a fixed similarity threshold to match support and query images, which fails to account for the unique noise and appearance characteristics of diverse datasets.
Methodology: The DARNet Framework
The authors propose DARNet (Dynamically Adaptive Refine Network), which utilizes a dual-branch architecture designed to balance general semantic knowledge with domain-specific adaptation. The framework consists of three primary components:
1. Channel Statistics Disruption (CSD)
During the training phase, DARNet employs a CSD strategy. The model randomly perturbs the mean and standard deviation of feature channels in the early layers of the backbone network. This serves as a form of "style augmentation," forcing the model to ignore domain-specific styles and instead focus on robust, generalizable structural features that are more likely to persist across different domains.
2. Adaptive Refine Self-Matching (ARSM)
Rather than using a static, hard-coded threshold to determine if a pixel matches the target class, the ARSM module calculates a dynamic threshold. By analyzing the similarity between foreground and background prototypes, ARSM identifies "indistinguishable" pixels. It then uses a self-matching mechanism—where the query image acts as its own reference—to refine the prediction in a closed loop, overcoming intra-class inconsistencies.
3. Test-Time Adaptation (TTA)
When encountering a new domain, DARNet does not rely solely on a static forward pass. It incorporates a Distribution Alignment Module (DAM) and fine-tunes its parameters on the fly. By using the provided support images (and pseudo-labels for 1-shot tasks), the model aligns its internal feature distributions with the target domain's specific characteristics before making a final prediction.
Experimental Evaluation and Results
DARNet was trained on natural image datasets (PASCAL VOC 2012 and SBD) and evaluated across four diverse target datasets representing significant domain shifts: ISIC (Skin lesions), Chest X-Ray (Tuberculosis), DeepGlobe (Satellite), and FSS-1000 (1,000 natural classes).
Key Performance Metrics
- State-of-the-Art Accuracy: DARNet achieved superior results across nearly all benchmarks. On average, its mean Intersection-over-Union (mIoU) was 6.45% higher in 1-shot tasks and 9.90% higher in 5-shot tasks compared to the previous leading method, PATNet.
- Medical Imaging Breakthroughs: The model showed massive gains on medical data. On the Chest X-Ray dataset, DARNet achieved an mIoU of 81.22% (1-shot), a nearly 15-point jump over PATNet’s 66.61%.
- Ablation Insights: Experiments confirmed that TTA alone improved performance by 4-7%, demonstrating that adapting to the target distribution at inference time is critical for cross-domain success.
Discussion and Limitations
While DARNet excels at bridging large domain gaps, the authors noted a slight performance trade-off in scenarios with small domain gaps. On the FSS-1000 dataset, the CSD strategy occasionally degraded performance because the perturbation of channel statistics can destroy useful source distribution information when the target domain is very similar to the source.
Additionally, the Test-Time Adaptation (TTA) process introduces computational overhead, requiring multiple iterations of fine-tuning per task. Future research will focus on developing more efficient adaptation techniques that maintain high accuracy without the need for iterative optimization during inference.
Summary updated