Dual-Agent Optimization framework for Cross-Domain Few-Shot Segmentation

Zhaoyang Li, Yuan Wang, Wangkai Li, Tianzhu Zhang, Xiang LiuCVPR 2025

Abstract

Cross-Domain Few-Shot Segmentation (CD-FSS) is hindered by significant domain gaps that degrade feature reliability and matching accuracy. We propose the Dual-AgenT Optimization (DATO) framework, which introduces learnable domain-adaptive agents to unify feature enhancement and matching rectification. DATO employs Consistent Mutual Aggregation (CMA) in the frequency domain to extract domain-invariant features and a Correlation Rectification Strategy (CRS) in the spatial domain to stabilize the matching process. Experimental results demonstrate that DATO achieves state-of-the-art performance across diverse target domains, including medical and satellite imagery, outperforming existing methods by significant margins.

Introduction

Few-Shot Segmentation (FSS) aims to generalize to new object categories using minimal labeled examples. However, standard FSS models often fail in Cross-Domain (CD-FSS) scenarios where the training (source) and testing (target) data distributions differ significantly—such as transitioning from natural images to medical radiographs.

This failure stems from two primary sensitivities identified by the authors:

  1. Feature Domain Sensitivity: Models overfit to source-specific textures and styles, leading to unreliable representations in the target domain.
  2. Matching Process Domain Sensitivity: The mechanism that compares the support image to the query image is fragile; domain shifts lead to massive matching errors.
Overview of the domain gap problem (a, b) and the proposed agent-based solution (c).

As illustrated in the figure above, traditional matching fails when transferred to the target domain (b), whereas the introduction of domain-adaptive agents (c) provides a robust bridge for cross-domain alignment.

Methodology

DATO addresses these sensitivities through a unified framework centered on a set of learnable adaptive agents. These agents serve a dual purpose: as feature enhancers in the frequency domain and as matching anchors in the spatial domain.

Consistent Mutual Aggregation (CMA)

The CMA module operates in the frequency domain to improve feature robustness. Using Fast Fourier Transforms (FFT), the framework perturbs low-frequency components—which typically represent domain-specific styles like lighting and texture.

The Consistent Mutual Aggregation (CMA) module architecture.

As shown in the CMA diagram, a discriminator attempts to distinguish between original and perturbed features, while the agents are optimized to capture domain-invariant semantic information. This adversarial process allows the agents to "enhance" the original frequency features, making the resulting representations more resilient to style shifts.

Correlation Rectification Strategy (CRS)

In the spatial domain, the CRS module replaces direct pixel-to-pixel matching between support and query images. Instead, both sets of features are mapped into a "referable feature space" defined by their similarity to the domain-adaptive agents. By using these agents as stable anchors, the matching process is "rectified," significantly reducing errors caused by domain-specific appearance changes.

Experiments and Results

The DATO framework was evaluated on the CD-FSS benchmark using PASCAL VOC 2012 as the source domain and diverse target domains including Chest X-ray, ISIC (skin lesions), FSS-1000, and Deepglobe (satellite imagery).

Quantitative Performance

DATO established a new state-of-the-art on the CD-FSS benchmark, achieving an average mIoU of 70.31% for 1-shot and 73.82% for 5-shot tasks. This represents a ~2.5% improvement over previous leading methods like IFA and PATNet.

Qualitative Analysis

Visualizations indicate that DATO produces significantly cleaner object contours and fewer false positives, particularly in challenging medical imaging contexts. The method's effectiveness is consistent across various backbones, including ResNet and Transformer-based architectures (e.g., HDMNet, FPTrans), proving its architecture-agnostic nature.

Conclusion

The Dual-AgenT Optimization (DATO) framework effectively bridges the domain gap in few-shot segmentation by jointly optimizing feature extraction and matching. By leveraging frequency-domain perturbations and spatial-domain agent anchors, DATO provides a robust solution for generalizing to highly divergent data distributions. Future work may explore more complex frequency perturbation strategies and the application of dual-agent concepts to broader cross-domain computer vision tasks.

Summary updated

BibTeX
@inproceedings{li2025dual,
  author = {Zhaoyang Li and Yuan Wang and Wangkai Li and Tianzhu Zhang and Xiang Liu},
  title = {{Dual-Agent Optimization framework for Cross-Domain Few-Shot Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00920},
}
Figure