Local Context-Aware Active Domain Adaptation

Tao Sun, Cheng Lu, Haibin Ling

Abstract

Domain adaptation remains a critical challenge in deploying machine learning models across varying environments. While Unsupervised Domain Adaptation (UDA) seeks to bridge domain gaps without labels, Active Domain Adaptation (ADA) utilizes a small labeling budget to significantly improve performance. This paper introduces LADA (Local context-aware Active Domain Adaptation), a framework that prioritizes "local neighborhood" consistency. By selecting target samples where predictions conflict with their neighbors and progressively augmenting the training set with confident nearby samples, LADA achieves state-of-the-art results on major benchmarks, even under heavy label distribution shifts.

Introduction

Machine learning models often experience performance degradation when transitioned from a source domain to a target domain due to domain shift. While UDA attempts to mitigate this without additional supervision, it often fails when the domain gap is substantial. Active Domain Adaptation (ADA) provides a middle ground, allowing models to query labels for a small fraction (e.g., 1-5%) of target data.

The effectiveness of ADA hinges on two primary challenges: Selection and Efficiency. Traditional selection methods often target global uncertainty or outliers, which may not be representative of the target distribution. Furthermore, once labels are obtained, models risk overfitting to this sparse set. LADA addresses these issues through local context-aware selection and progressive augmentation.

Methodology: The LADA Framework

LADA consists of two synergistic modules: Local context-aware Active Selection (LAS) and Progressive Anchor-set Augmentation (PAA).

The LADA framework overview, illustrating the LAS selection process and the PAA augmentation cycle.

Local context-aware Active Selection (LAS)

Rather than relying solely on individual prediction uncertainty (e.g., entropy), LAS introduces the Local Inconsistency (LI) score. This metric evaluates how much a sample’s prediction deviates from its $K$-nearest neighbors. High LI scores indicate regions near decision boundaries where the model is likely confused. To ensure the queried samples are informative and diverse, LADA employs a clustering-based sampling strategy on the top LI candidates, preventing the selection of redundant data points.

Progressive Anchor-set Augmentation (PAA)

To maximize the utility of the limited labeling budget, PAA constructs an "anchor set" that expands over time. Starting with the manually labeled data, the model identifies confident neighbors and incorporates them into the training set with pseudo-labels.

To combat potential biases toward dominant classes, LADA implements Class Balancing Rejection (CBR). This mechanism regulates the growth of the anchor set by rejecting new samples from classes that are already over-represented. Finally, the model is trained using Mixup-style augmentations, combining weak and strong transformations to improve generalization.

Experimental Evaluation

The researchers evaluated LADA across several standard computer vision benchmarks, including Office-31, Office-Home, VisDA, and DomainNet. Additionally, they tested the framework on Office-Home RSUT, a variant designed to simulate severe label distribution shifts between source and target domains.

Performance Results

LADA consistently outperformed existing state-of-the-art methods such as CLUE, TQS, and LAMDA.

Performance comparison of LADA against baselines on Office-31 and Office-Home, including an ablation study table.

Key findings include:

  • Standard Benchmarks: On Office-Home with a 5% budget, LADA reached 75.3% accuracy, a significant improvement over the previous best of 73.7%.
  • Label Shift Resilience: On the RSUT benchmark, LADA maintained a +1.0% lead over LAMDA, demonstrating its robustness to mismatched class frequencies.
  • Ablation Insights: The PAA module proved crucial, providing a +2.6% accuracy boost on Office-Home compared to standard fine-tuning without augmentation.

Discussion and Limitations

The success of LADA underscores the principle that neighbors are "safer" than strangers in high-shift scenarios. By leveraging local structure, the model filters out unhelpful outliers and builds a more representative synthetic training set.

However, some limitations persist:

  1. Computational Cost: Calculating $K$-nearest neighbors in high-dimensional spaces can be intensive for very large datasets.
  2. Feature Dependency: The method's efficacy depends on the initial feature extractor's ability to cluster similar objects. If the domain gap is extreme, the local neighborhoods may not be semantically meaningful.
  3. Future Work: Future iterations could explore Graph Neural Networks (GNNs) to model local structures more sophisticatedly.

Conclusion

LADA offers a robust solution for Active Domain Adaptation by focusing on local consistency. By turning a handful of labels into a growing, balanced anchor set, it bridges the gap between source and target domains more effectively than traditional uncertainty-based methods.

Summary updated

BibTeX
@inproceedings{sun2022local,
  author = {Tao Sun and Cheng Lu and Haibin Ling},
  title = {{Local Context-Aware Active Domain Adaptation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2022},
}
Figure