Three New Validators and a Large-Scale Benchmark Ranking for Unsupervised Domain Adaptation

Kevin Musgrave, Serge Belongie, Ser-Nam Lim · DOI

Abstract: Changes to hyperparameters can have a dramatic effect on model accuracy. Thus, the tuning of hyperparameters plays an important role in optimizing machine-learning models. An integral part of the hyperparameter-tuning process is the evaluation of model checkpoints, which is done through the use of "validators". In a supervised setting, these validators evaluate checkpoints by computing accuracy on a validation set that has labels. In contrast, in an unsupervised setting, the validation set has no such labels. Without any labels, it is impossible to compute accuracy, so validators must estimate accuracy instead. But what is the best approach to estimating accuracy? In this paper, we consider this question in the context of unsupervised domain adaptation (UDA). Specifically, we propose three new validators, and we compare and rank them against five other existing validators, on a large dataset of 1,000,000 checkpoints. Extensive experimental results show that two of our proposed validators achieve state-of-the-art performance in various settings. Finally, we find that in many cases, the state-of-the-art is obtained by a simple baseline method. To the best of our knowledge, this is the largest empirical study of UDA validators to date.

Introduction

In standard supervised learning, researchers use labeled validation sets to tune hyperparameters and select the best model checkpoint. However, in Unsupervised Domain Adaptation (UDA), models are trained on a labeled "source" domain (e.g., synthetic images) and deployed on an unlabeled "target" domain (e.g., real-world photos).

Because the target domain lacks labels, calculating accuracy directly is impossible. While many researchers use an "Oracle" validator—calculating accuracy using hidden target labels—this approach is unfeasible in real-world production environments. Real-world UDA requires a validator: a function that estimates target accuracy using only unlabeled data or source-domain performance. This paper addresses the critical question: which of these estimators can we actually trust?

Methodology

Proposed and Existing Validators

The authors evaluate five existing validators and propose three novel ones:

  1. Batch Nuclear-norm Maximization (BNM): Repurposed from a training loss to a validator, it rewards models that produce predictions that are both confident (low entropy) and diverse (utilizing all available classes).
  2. ClassAMI: An improvement on cluster-based validation that clusters target features using k-means and calculates the Adjusted Mutual Information (AMI) between those clusters and the model's predictions.
  3. DEV with Normalization (DEVN): An enhancement of Deep Embedded Validation (DEV) that fixes "exploding" scores by max-normalizing importance weights.

Ranking with Weighted Spearman Correlation (WSC)

To rank these validators, the authors introduce Weighted Spearman Correlation (WSC). Unlike standard correlation, WSC prioritizes checkpoints with high accuracy or high validation scores. This focus is essential for practical applications where the primary goal is identifying the top-performing models rather than accurately ranking mediocre ones.

Comparison of synthetic and real-world validators, illustrating why Weighted Spearman Correlation (WSC) is a more effective metric than standard Spearman Correlation (SC) for identifying top-performing models.

Large-Scale Benchmark

The study utilizes a massive dataset of 1,000,000 checkpoints across 31 transfer tasks, including MNIST → MNISTM, Office31, OfficeHome, and DomainNet126. These checkpoints were generated using 10 different UDA algorithms (e.g., DANN, CDAN, MCC) across 100 hyperparameter settings each.

Key Results and Insights

Top Performers and Baselines

  • ClassAMI emerged as a top performer when paired with algorithms like MCC or BNM.
  • BNM proved most effective for difficult datasets like DomainNet126, where source-domain performance fails to generalize to the target.
  • Source Accuracy is a Stubborn Baseline: Interestingly, simply measuring performance on labeled source data often outperformed complex unsupervised validators.
  • SND is Unreliable: Soft Neighborhood Density (SND), a popular validator in recent literature, consistently underperformed across benchmarks.

Metric Stability

The authors demonstrated that WSC is significantly more robust to experimental noise than other metrics like Average Accuracy of Top N (AATN). This stability ensures that the ranking of validators remains consistent even when target-domain accuracy measurements are noisy.

Robustness of various ranking metrics to noise added to target-domain accuracy. WSC (orange) maintains high correlation even as noise increases, outperforming AATN metrics.

Discussion and Conclusion

The "Oracle" Gap

Even the best validators result in a 2–5% drop in accuracy compared to Oracle selection. This suggests that UDA algorithms often appear more effective in research papers than they are in practice, as researchers frequently rely on hidden labels for model selection.

Limitations and Future Work

While ClassAMI and BNM show promise, they can be computationally expensive for datasets with many classes. Furthermore, validator performance may vary with new UDA training approaches. The authors conclude that improving validator accuracy is just as vital to the field as developing new training algorithms.

To support further research, the authors have released their "Powerful Benchmarker" code on GitHub.

Summary updated

BibTeX
@misc{musgrave2022three,
  author = {Kevin Musgrave and Serge Belongie and Ser-Nam Lim},
  title = {{Three New Validators and a Large-Scale Benchmark Ranking for Unsupervised Domain Adaptation}},
  year = {2022},
  eprint = {2208.07360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.07360},
}
Figure