Abstract
We consider the problem of active domain adaptation (ADA) to unlabeled target data, of which a subset is actively selected and labeled given a budget constraint. Inspired by recent analysis on a critical issue from label distribution mismatch between source and target in domain adaptation, we devise a method that addresses the issue for the first time in ADA. At its heart lies a novel sampling strategy, which seeks target data that best approximate the entire target distribution as well as being representative, diverse, and uncertain. The sampled target data are then used not only for supervised learning but also for matching label distributions of source and target domains, leading to remarkable performance improvement. On four public benchmarks, our method substantially outperforms existing methods in every adaptation scenario.
Introduction
Domain Adaptation (DA) aims to transfer knowledge from a labeled source domain to an unlabeled target domain. Active Domain Adaptation (ADA) enhances this by allowing a small budget for querying labels from the target domain. While traditional ADA methods focus on selecting "informative" or "uncertain" samples to maximize supervised learning gains, they often overlook a fundamental challenge: Label Distribution Shift.
Label distribution shift occurs when class frequencies differ significantly between the source and target domains (e.g., a source dataset dominated by one class while the target is balanced). Standard active sampling strategies that prioritize uncertainty tend to select samples near decision boundaries, providing a biased view of the overall target distribution. This bias prevents effective domain alignment, as the model incorrectly assumes the source and target distributions should match in class proportions.
The LAMDA Framework
To address these challenges, we propose LAMDA (LAbel distribution Matching through Density-aware Active sampling). LAMDA is designed to estimate the target label distribution accurately and use this information to align the domains effectively.
Density-Aware Prototype Sampling
Instead of relying solely on uncertainty, LAMDA selects a "prototype set" of target samples that best represents the entire target distribution. This is achieved using Maximum Mean Discrepancy (MMD) to find a subset whose distribution closely matches the full target set. This ensures the selected samples are diverse and representative of the data density.
Hybrid Labeling for Distribution Estimation
To overcome the limitations of a small labeling budget, LAMDA employs a hybrid approach. "Hard" samples (those with high uncertainty) are labeled by a human oracle, while "easy" samples (those with high confidence) are assigned pseudo-labels by the model. By combining these, LAMDA obtains a much more accurate estimate of the global target label distribution than human labels alone could provide.
Label Distribution Matching and Classification
With an estimated target distribution, LAMDA performs domain alignment by re-weighting source data mini-batches. By sampling source data to match the target's class frequencies, the model avoids the negative transfer typically caused by distribution mismatch. Finally, LAMDA replaces the standard linear classifier with a cosine classifier. By utilizing normalized weights, the cosine classifier is inherently less sensitive to class imbalance, providing further robustness against distribution shifts.
Experimental Results
We evaluated LAMDA across four major benchmarks: OfficeHome, OfficeHome-RSUT (specifically designed for high label shift), VisDA-2017, and DomainNet.
- State-of-the-Art Performance: LAMDA consistently outperformed existing methods like TQS, CLUE, and S3VAADA. Notably, on the high-shift OfficeHome-RSUT dataset, LAMDA achieved a 7-8% accuracy improvement over the next best method.
- Budget Efficiency: A key finding was the "2% vs 10%" phenomenon: LAMDA with only a 2% labeling budget frequently outperformed competing methods using a 10% budget. This underscores the importance of distribution matching over simple sample quantity.
- Scalability: The method proved robust on large-scale datasets like VisDA and DomainNet, maintaining a significant lead in accuracy.
Conclusion
LAMDA demonstrates that addressing label distribution shift is crucial for effective Active Domain Adaptation. By shifting the focus from purely "uncertain" samples to "representative" prototypes and leveraging hybrid labeling for distribution estimation, LAMDA provides a robust framework for real-world adaptation tasks where class frequencies are unknown and likely mismatched. Future work will explore the application of density-aware sampling to broader transfer learning contexts.
Summary updated