MADAv2: Advanced Multi-Anchor Based Active Domain Adaptation Segmentation

Munan Ning, Donghuan Lu, Yujia Xie, Dongdong Chen, Dong Wei, Yefeng Zheng, Yonghong Tian, Shuicheng Yan, Li Yuan

Abstract

Semantic segmentation models often suffer from significant performance degradation when deployed in environments that differ from their training data, a phenomenon known as domain shift. While Unsupervised Domain Adaptation (UDA) attempts to mitigate this without manual labeling, it frequently results in feature distribution distortion, where the structural integrity of the target domain is sacrificed to match the source. This paper presents MADAv2, an advanced Active Domain Adaptation (ADA) framework that utilizes a multi-anchor strategy to select the most informative target samples for annotation. By labeling only 5% of the target data and employing sophisticated semi-supervised learning techniques, MADAv2 achieves performance nearly indistinguishable from fully supervised upper bounds on synthetic-to-real benchmarks.

Introduction

In the field of computer vision, semantic segmentation is a critical task for applications such as autonomous driving. However, the high cost of pixel-level annotation makes it difficult to scale models to new environments. While synthetic datasets (e.g., GTA5) provide abundant labeled data, models trained on them often fail on real-world data (e.g., Cityscapes).

Standard UDA methods attempt to align the target domain with the source domain in a common feature space. However, this often leads to "distribution distortion," where the model aggressively forces target features toward source centers, destroying the unique structural information of the target domain. MADAv2 addresses this by treating domains as multimodal distributions and using a strategic active learning approach to bridge the gap with minimal human intervention.

Methodology

MADAv2 introduces a two-stage framework: Multi-Anchor Active Sample Selection followed by an advanced Semi-Supervised Learning phase.

Multi-Anchor Active Sample Selection

Unlike previous methods that treat a domain as a single unimodal distribution, MADAv2 recognizes that complex scenes (like urban environments) consist of multiple distinct sub-distributions. The framework employs K-means clustering to identify $K$ anchors (where $K=10$) representing different scene types, such as residential areas or highways.

To select the optimal 5% of target data for annotation, the authors introduce a Dual-Domain Distance metric. This metric identifies samples that are:

  1. Far from source anchors: These provide information complementary to what the model has already learned from the synthetic data.
  2. Far from target anchors: These represent outliers or unique features within the target domain that the current clustering fails to capture.

This one-time selection process ensures a diverse and informative subset is chosen for manual labeling, avoiding the need for multiple, costly rounds of active learning.

Advanced Semi-Supervised Learning

Once the selected samples are labeled, MADAv2 enters a semi-supervised training phase designed to maximize the utility of both labeled and unlabeled data:

  • Adaptive CutMix (ACM) and Copy-Paste (ACP): These techniques address the "long-tail" problem by specifically targeting rare classes (e.g., pedestrians, bicycles). By blending labeled and unlabeled data, the model is forced to learn these difficult categories more effectively.
  • Online Hard Example Mining (OHEM): The loss function is weighted to focus on the most challenging pixels where the model's confidence is lowest.
  • Soft-Alignment Loss: This novel loss function explicitly pulls target features toward their corresponding target anchors, maintaining a faithful representation of the target distribution rather than distorting it toward the source.

Experimental Evaluation

The framework was evaluated on two standard "synthetic-to-real" benchmarks:

  • GTA5 → Cityscapes: Adapting from 24,966 synthetic images to 500 real-world test images.
  • SYNTHIA → Cityscapes: Adapting from 9,400 synthetic images to the Cityscapes dataset.

Results and Discussion

MADAv2 sets a new state-of-the-art for active domain adaptation in semantic segmentation. On the GTA5 → Cityscapes benchmark, the model achieved 71.4% mIoU. This is a significant improvement over the original MADA framework (+6.5% mIoU) and other active DA methods like AADA (+8.9% mIoU). Most notably, this performance is remarkably close to the fully supervised upper bound of 71.9% mIoU, demonstrating that 5% of strategically selected data can be as effective as 100% of the data.

Qualitative analysis indicates that MADAv2 produces much cleaner object boundaries and fewer segmentation artifacts compared to standard adversarial UDA methods. By preserving the target domain's multimodal structure, the model avoids "hallucinating" segments that do not exist in the real-world data.

Limitations and Future Work

Despite its performance, MADAv2 introduces higher computational overhead during training. The multi-anchor calculations and complex semi-supervised components roughly double the training time and memory requirements compared to simple UDA baselines. Additionally, the number of anchors ($K$) is currently a fixed hyperparameter. Future research could explore dynamic anchor adjustment to better suit datasets of varying complexity. However, it is important to note that the final deployed model uses a standard DeepLab v3+ architecture, ensuring that inference speed remains unaffected.

Conclusion

MADAv2 demonstrates that the key to effective domain adaptation lies in respecting the multimodal nature of data distributions. By combining a dual-domain distance metric for sample selection with class-aware data augmentation, the framework provides a practical and highly efficient solution for deploying segmentation models in new domains with minimal labeling effort.

Summary updated

BibTeX
@article{ning2023madav,
  author = {Munan Ning and Donghuan Lu and Yujia Xie and Dongdong Chen and Dong Wei and Yefeng Zheng and Yonghong Tian and Shuicheng Yan and Li Yuan},
  title = {{MADAv2: Advanced Multi-Anchor Based Active Domain Adaptation Segmentation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2023.3293893},
}
Figure