Unsupervised Domain Adaptation (UDA) is a powerful tool for making AI models work on new, unlabeled data (the "target domain") by leveraging knowledge from a labeled "source domain." However, a major bottleneck remains: model selection.
How do you know which version of your model—or which set of hyperparameters—will perform best on the target data if you don't have any labels to test against? Source-based validation often fails because the distribution shift between domains makes source performance a poor proxy for target performance. Existing target-only methods, such as Entropy (which prefers confident predictions) or Soft Neighborhood Density (SND) (which prefers local consistency), often rely on a single assumption about the data structure. These methods can be unstable, working well for some UDA algorithms but failing for others.
The MixVal Approach
To address this, researchers introduce MixVal, an innovative model selection method that operates solely with unlabeled target data during inference. Instead of simply measuring properties of raw predictions, MixVal "probes" the learned structure of the target domain using the mixup technique.
MixVal generates synthetic "in-between" samples by performing a convex combination of pairs of target images and their corresponding pseudo-labels. It uses two distinct types of probes:
- Intra-cluster probes: Mixing samples that share the same pseudo-label. This evaluates neighborhood density. If a model is good, it should predict the original label for these internal mixtures.
- Inter-cluster probes: Mixing samples with different pseudo-labels. This investigates the classification boundary. A robust model should maintain a clear, low-density separation between classes.
For every candidate model, MixVal calculates an Interpolation Consistency Evaluation (ICE) score, which measures the accuracy of the model's predictions on these mixed samples compared to their mixed pseudo-labels. To ensure stability, MixVal ranks models separately based on intra- and inter-cluster ICE scores and selects the model with the highest average rank.
Key Insights
- Unified Assumptions: MixVal elegantly combines the two most successful assumptions in UDA validation: neighborhood consistency and low-density separation.
- Probing vs. Measuring: Unlike previous methods that passively observe model outputs for real data, MixVal actively challenges the model with ambiguous, synthetic data to see if its internal logic holds up.
- Ambiguity is Key: Using a mix ratio ($\lambda$) of 0.55—creating highly ambiguous samples—is more effective for probing than using a ratio like 0.9, which creates samples too similar to the original data.
- Stability over Raw Accuracy: By using a ranking-based combination of its two probe types, MixVal avoids the catastrophic failures that sometimes plague Entropy or SND when applied to certain UDA methods.
Results and Performance
MixVal was extensively evaluated across several standard UDA benchmarks, including Office-31, Office-Home, VisDA, and DomainNet for image classification, as well as GTAV to Cityscapes for semantic segmentation. It was tested across diverse settings like closed-set, partial-set, open-partial-set, and source-free UDA scenarios.
MixVal consistently outperformed both source-based and state-of-the-art target-only baselines across 11 different UDA methods:
- Superior Accuracy: In closed-set UDA on the large-scale DomainNet benchmark, MixVal achieved an average validation accuracy of 69.68%, significantly higher than SND (63.05%) and Entropy (64.34%), and very close to the theoretical "Best" possible selection (70.34%).
- Stability: In challenging scenarios like partial-set UDA (where the target has fewer classes than the source), MixVal maintained high performance while other methods like Entropy often collapsed.
- Versatility: It proved effective not just for standard ResNet backbones but also for modern Vision Transformers (ViT), where it outperformed competitors by a wide margin (e.g., 54.78% vs 28.21% for Entropy on a ViT-based task).
Conclusion
MixVal provides a stable and highly accurate way to pick the best hyperparameters without requiring any labeled target data. While more work is needed to establish a formal theoretical foundation and extend the method to tasks like object detection, MixVal sets a new standard for unsupervised model selection in domain adaptation.
Summary updated