cs.LGNov 23, 2026

When Source-Domain Validation Fails to Transfer: A Staged Study of Hyperparameter Selection

Authors: Veet Zaveri

Organizations: Johns Hopkins University, Baltimore, MD, USA

Abstract

Hyperparameters for an unseen domain are often selected using held-out examples from the available source domains. Withholding entire source domains during validation seems to better reflect deployment shift, but does this produce better selections on independent targets? We investigate this question through two complementary studies. A preliminary factorial experiment crosses particle swarm optimization and random search with pooled source validation and a leave-one-source-domain-out mean-minimum fitness on PACS and Multi-Domain Sentiment. The domain-aware fitness does not provide a consistent target advantage. We then separate selector development from confirmation using a shared pool of 64 configurations per task across four image benchmarks. Complete target-performance landscapes on VLCS and Office-Home inform one rule: retain the top 16 configurations by pooled source validation, then select the largest leave-one-source-domain-out mean-minus-standard-deviation score. The rule is frozen before evaluation on TerraIncognita and SVIRO. Across their 14 target domains, its equal-dataset-weighted balanced-accuracy difference from pooled validation is +0.097 percentage points (95% bootstrap interval [-0.685, +0.960]), with five wins and nine losses. Exploratory analyses reveal substantial variation across datasets, target domains, and training seeds. These results do not establish equivalence or a general failure of domain-aware validation. They show that the evaluated source-domain criteria did not establish reliable target gains under the tested protocols, and motivate assessing selection rules on datasets independent of those used to develop them.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Sep 30, 2026

Reliability-Aware Checkpoint Selection for Domain Generalization

Checkpoint selection in domain generalization often relies on source-validation accuracy, yet the selected checkpoint need not provide reliable probabilities on unseen target domains. Source-target distribution shifts can alter accuracy rankings, while accuracy alone does not measure predictive probability quality. We identify an empirical selection opportunity within fixed training trajectories: reselecting among checkpoints with near-optimal source accuracy can improve mean target probability quality with small observed changes in mean target accuracy. We study accuracy-constrained reliability selection (AC), which retains checkpoints within a tolerance of the best source-validation accuracy and ranks them by source reliability. Our reference rule aggregates within-set normalized negative log-likelihood (NLL) and class-wise calibration error (CwECE) using D∞D_\infty. AC uses no target data and requires neither additional training nor weight averaging. We evaluate five domain generalization training algorithms on three benchmarks, using PACS to develop the objectives and a 0.5-percentage-point tolerance. In exploratory aggregation comparisons on 360 OfficeHome and TerraIncognita runs, the reference rule reduces mean target soft-bin squared-gap ECE and CwECE by 0.240% and 0.182%, respectively, and NLL by 0.030 relative to Source-Acc. Mean target accuracy changes by +0.213 percentage points. These results identify opportunities for reliability-aware reselection, while the additional benefit of joint over single-objective ranking remains unresolved.
Apr 10, 2026

PAS: Estimating the target accuracy before domain adaptation

The goal of domain adaptation is to make predictions for unlabeled samples from a target domain with the help of labeled samples from a different but related source domain. The performance of domain adaptation methods is highly influenced by the choice of source domain and pre-trained feature extractor. However, the selection of source data and pre-trained model is not trivial due to the absence of a labeled validation set for the target domain and the large number of available pre-trained models. In this work, we propose PAS, a novel score designed to estimate the transferability of a source domain set and a pre-trained feature extractor to a target classification task before actually performing domain adaptation. PAS leverages the generalization power of pre-trained models and assesses source-target compatibility based on the pre-trained feature embeddings. We integrate PAS into a framework that indicates the most relevant pre-trained model and source domain among multiple candidates, thus improving target accuracy while reducing the computational overhead. Extensive experiments on image classification benchmarks demonstrate that PAS correlates strongly with actual target accuracy and consistently guides the selection of the best-performing pre-trained model and source domain for adaptation.
Jun 3, 2026

Towards Accurate Model Selection in Deep Unsupervised Domain Adaptation

Deep unsupervised domain adaptation (Deep UDA) methods successfully leverage rich labeled data in a source domain to boost the performance on related but unlabeled data in a target domain. However, algorithm comparison is cumbersome in Deep UDA due to the absence of accurate and standardized model selection method, posing an obstacle to further advances in the field. Existing model selection methods for Deep UDA are either highly biased, restricted, unstable, or even controversial (requiring labeled target data). To this end, we propose Deep Embedded Validation (DEV), which embeds adapted feature representation into the validation procedure to obtain unbiased estimation of the target risk with bounded variance. The variance is further reduced by the technique of control variate. The efficacy of the method has been justified both theoretically and empirically.