Learning Distinctive Margin toward Active Domain Adaptation

Ming Xie, Yuxi Li, Yabiao Wang, Zekun Luo, Zhenye Gan, Zhongyi Sun, Mingmin Chi, Chengjie Wang, Pei Wang

Introduction

Machine learning models often encounter a "domain gap" when transitioning from training (source domain) to real-world application (target domain). While Domain Adaptation (DA) seeks to bridge this gap with few or no labels, Active Learning (AL) identifies the most informative samples to label within a budget. Active Domain Adaptation (ADA) merges these fields to maximize performance under limited labeling resources. However, existing ADA methods often struggle with high computational complexity, overfitting, or selecting samples that are merely "different" from the source rather than truly "informative" for the task.

The researchers introduce Select-by-Distinctive-Margin (SDM), a streamlined approach that uses a maximum margin loss and a margin-based sampling strategy to identify the most valuable target-domain samples. By focusing on the geometric properties of the feature space, SDM achieves state-of-the-art accuracy while being significantly faster than its predecessors.

Methodology: Select-by-Distinctive-Margin (SDM)

SDM treats the ADA problem with the precision of a Support Vector Machine (SVM). The framework focuses on defining sharp, distinctive boundaries between classes to better identify informative target samples.

Conceptual overview of SDM training on source and querying on target using margins.

The core components of the SDM pipeline include:

  1. Categorical-wise Margin Loss: Instead of standard Cross-Entropy, this loss ignores "easy" samples and focuses on "hard" ones near decision boundaries. This forces the model to define sharp, distinctive boundaries between classes.
  2. Margin Sampling: To select data for labeling, the model identifies unlabeled target samples where the gap between the top two predicted class probabilities is smallest. These are the samples the model is most "confused" about.
  3. Advanced Variants (SDM-AG):
    • SDM-A (Adaptive): Dynamically adjusts gradients based on sample difficulty to avoid outlier interference.
  4. SDM-G (Gradient): Incorporates the first-order gradient of the sampling function to prioritize samples that accelerate model convergence.

Experimental Results

The authors evaluated SDM-AG on standard benchmarks including Office-Home, Office-31, and the large-scale VisDA-2017 dataset.

Accuracy and Efficiency

SDM-AG consistently outperformed state-of-the-art methods. On the Office-Home dataset, it achieved 73.1% accuracy with only 5% of target data labeled, surpassing the previous leader, TQS (70.5%). The method's robustness is further demonstrated across specific domain adaptation tasks.

Accuracy comparison on P to C and R to A tasks across varying percentages of queried instances.

Beyond accuracy, SDM-AG is remarkably efficient. It achieved a 24.6x speedup in query time compared to the CLUE algorithm. While some methods take seconds to decide which samples to pick, SDM does it in milliseconds (0.067s vs 1.65s-11.47s for competitors).

Insights and Conclusion

The success of SDM lies in its simplicity and theoretical grounding. By linking margin loss to SVM behavior, the model uses "hard examples" from the source domain as anchors to evaluate target sample informativeness. This geometric approach avoids the pitfalls of complex adversarial networks (GANs), leading to better generalization and significantly lower computational overhead.

While highly effective, the authors note that future work could address potential biases when the source domain is significantly unrelated to the target or extend the "distinctive margin" logic to more complex tasks like object detection and segmentation.

Summary updated

BibTeX
@inproceedings{xie2022learning,
  author = {Ming Xie and Yuxi Li and Yabiao Wang and Zekun Luo and Zhenye Gan and Zhongyi Sun and Mingmin Chi and Chengjie Wang and Pei Wang},
  title = {{Learning Distinctive Margin toward Active Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure