The Devil is in Low-Level Features for Cross-Domain Few-Shot Segmentation

Yuhan Liu, Yixiong Zou, Yuhua Li, Ruixuan Li · DOI

TL;DR

This paper tackles a puzzling issue in Cross-Domain Few-Shot Segmentation (CDFSS): models perform best early in training and then degrade. They pinpoint low-level features as the culprit, becoming overly sensitive to domain shifts and creating "sharp" loss landscapes. To fix this, they introduce two modules: one to smooth these landscapes during training and another to calibrate predictions using target-domain information during testing.

What Problem Does This Paper Address?

Semantic segmentation, the task of assigning a label to every pixel in an image, typically requires vast amounts of labeled data. Few-Shot Segmentation (FSS) aims to reduce this burden by training models to recognize new object categories with only a handful of examples. A more challenging, yet realistic, scenario is Cross-Domain Few-Shot Segmentation (CDFSS), where the training data (source domain) and the few examples for new classes (target domain) come from different distributions.

A peculiar phenomenon observed in CDFSS is that models trained on the source domain often achieve their peak performance on target domains very early in the training process. As training continues, performance surprisingly declines, even falling below the initial peak. This "early stopping" behavior is suboptimal, as the goal of source-domain training is to learn generalizable features. The paper investigates why this happens and proposes a solution.

Methods

The authors propose a method called LoEC (Low-level Enhancement and Calibration), consisting of two plug-and-play modules:

  1. Train-time Low-level Enhancement Module (LEM): This module addresses the sharp loss landscapes in low-level features during source-domain training. It employs a sharpness-aware minimization strategy. Specifically, it uses random convolutions to perturb low-level features, creating diverse domains while preserving shape and semantics. To further enhance robustness, it leverages Fast Fourier Transform (FFT) to decompose features into amplitude and phase spectra, recombining them to achieve domain-oriented perturbations. This process aims to "flatten" the loss landscape, making low-level features more domain-invariant.
  2. Test-time Low-level Calibration Module (LCM): Since low-level features can become "collapsed" (i.e., lose useful information) due to domain shifts, this module supplements target-domain information during testing. It first computes a confidence map based on foreground and background similarity from the model's initial coarse segmentation. Then, it identifies the most reliable foreground regions (Top-K patches) and computes their cosine similarity with other patches in the query feature map. This similarity information is used to update the foreground similarity in the score map, effectively calibrating the predictions.

Datasets

  • Source Domain: PASCAL VOC 2012 with SBD augmentation.
  • Target Domains: FSS-1000, Deepglobe, ISIC, and Chest X-ray.

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • The "Devil" is in the Low-Level Features: The core insight is that the degradation in CDFSS performance is not due to high-level semantic features, but rather the vulnerability of low-level features (like edges and textures) to domain shifts. These features become overly specialized to the source domain, leading to sharp loss landscapes that are sensitive to any deviation in the target domain.
  • Sharp Loss Landscapes = Domain Sensitivity: The paper quantifies this by showing that sharper loss landscapes, particularly in shallow layers, lead to a greater performance drop when the model encounters perturbed or out-of-domain data.
  • Two-Phase Solution: The problem requires distinct solutions for training and testing. LEM smooths the training landscape, while LCM actively corrects for collapsed low-level information at inference time.
  • Low-Level Calibration is Key: Directly using low-level query features to refine predictions during testing is crucial, as it bypasses the limitations of relying solely on potentially corrupted high-level features.

Key Results

  • State-of-the-Art Performance: The proposed LoEC method significantly outperforms existing state-of-the-art methods, achieving an average MIoU improvement of 3.71% for 1-shot and 5.34% for 5-shot settings across the evaluated target datasets.
  • Improved Robustness: Applying LEM demonstrably reduces loss landscape sharpness and improves robustness to domain shifts, as evidenced by reduced performance drops under image perturbations.
  • Consistent Improvement: Unlike baseline models that show performance decline, LoEC (especially with LEM) shows consistent performance improvement as training progresses on target domains.
  • Effectiveness of Components: Ablation studies confirm that both LEM and LCM contribute significantly to the overall performance gains.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper investigates hyperparameter sensitivity (Fig. 13), it's implied that optimal settings might still require tuning.
  • Computational Cost: The introduction of perturbation-based modules (LEM) and calibration steps (LCM) might add computational overhead, though the paper frames them as plug-and-play.
  • Future Work: The paper doesn't explicitly detail future work directions, but the success of addressing low-level feature vulnerability suggests further exploration in this area for other domain adaptation tasks. The authors also mention comparing their LEM module with domain generalization methods, hinting at potential broader applications.

Summary updated

BibTeX
@inproceedings{liu2025devil,
  author = {Yuhan Liu and Yixiong Zou and Yuhua Li and Ruixuan Li},
  title = {{The Devil is in Low-Level Features for Cross-Domain Few-Shot Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=tTG3CZyH1d},
}
Figure