When Source-Domain Validation Fails to Transfer: A Staged Study of Hyperparameter Selection
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
| Stage | Data and decision | Evidence status |
|---|---|---|
| I: Preliminary | PACS and sentiment; PSO/RS IID/DA50, followed by DA75 | Planned factorial comparisons; subsequent weighting analysis is exploratory. |
| II: Development | VLCS and Office-Home; eight tasks with all 64 target outcomes | Target outcomes inform one top-16 mean-minus-SD selector. |
| III: Confirmation | TerraIncognita and SVIRO; 14 tasks | Frozen selector versus IID on previously untouched datasets. |
| IV: Diagnostics | All four later image datasets; 22 tasks | Retrospective proxy analysis and ten-rule exploratory comparison after confirmation outcomes are known. |
| Condition | PACS | Multi-Domain Sentiment |
|---|---|---|
| PSO-IID | ||
| PSO-DA50 | ||
| RS-IID | ||
| RS-DA50 |
| Source proxy | VLCS | Office-Home | Equal-dataset mean |
|---|---|---|---|
| Pooled IID | 0.806 | 0.941 | 0.874 |
| LODO mean | 0.668 | 0.980 | 0.824 |
| LODO mean minus SD | 0.524 | 0.969 | 0.747 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Images | Sentiment |
|---|---|---|
| Head/overall learning rate (log) | ||
| Layer-4/head learning-rate ratio (log) | — | |
| Weight decay (log) | ||
| First/only dropout | ||
| Second hidden-layer dropout | — | |
| Label smoothing |
| Dataset | Contrast | Estimate | 95% interval | |
|---|---|---|---|---|
| PACS | H1: PSO DA50 IID | 0.7266 | ||
| H2a: mean DA50 IID | 1.0000 | |||
| H2b: optimizer interaction | 1.0000 | |||
| Sentiment | H1: PSO DA50 IID | 0.0059 | ||
| H2a: mean DA50 IID | 0.0039 | |||
| H2b: optimizer interaction | 0.6641 |
| Dataset | Condition | Accuracy | Macro- |
|---|---|---|---|
| PACS | PSO-IID | ||
| PSO-DA50 | |||
| RS-IID | |||
| RS-DA50 | |||
| Sentiment | PSO-IID | ||
| PSO-DA50 |
| Dataset | Target | PSO-IID | PSO-DA50 | RS-IID | RS-DA50 |
|---|---|---|---|---|---|
| PACS | Art painting | 77.258 | 77.029 | 76.075 | 77.175 |
| Cartoon | 70.751 | 69.829 | 70.026 | 68.354 | |
| Photo | 93.209 | 93.686 | 93.786 | 93.561 | |
| Sketch | 52.856 | 53.045 | 52.294 | 51.069 | |
| Sentiment | Books | 79.965 | 80.030 | 79.860 | 79.495 |
| DVD | 80.585 | 80.390 | 80.420 | 80.200 |
| Dataset | Fitness | PSO | Random search |
|---|---|---|---|
| PACS | IID | 94.420 | 94.162 |
| DA50 | 65.574 | 65.081 | |
| Sentiment | IID | 87.731 | 87.369 |
| DA50 | 79.522 | 79.188 |
| Dataset | Summary or contrast | Value | 95% interval | |
|---|---|---|---|---|
| PACS | Balanced accuracy | 73.828 | — | — |
| Worst-target mean | 54.590 | — | — | |
| DA75 IID | 0.4941 | |||
| DA75 DA50 | 0.3750 | |||
| Sentiment | Balanced accuracy | 82.665 | — | — |
| Worst-target mean | 79.840 | — | — |
| Dataset group | Source-score seeds | Final-training seeds |
|---|---|---|
| VLCS, Office-Home | 13007, 23003 | 41011, 51001 |
| TerraIncognita, SVIRO | 13007, 23003, 33013 | 71011, 81001, 91009, 101003, 111017 |
| Dataset | Target | IID (%) | Frozen (%) | Effect (pp) | Positive seeds |
|---|---|---|---|---|---|
| TerraIncognita | Location 100 | 30.762 | 30.104 | 3/5 | |
| Location 38 | 20.433 | 23.158 | 5/5 | ||
| Location 43 | 23.035 | 23.127 | 3/5 | ||
| Location 46 | 22.031 | 21.647 | 2/5 | ||
| SVIRO | aclass | 98.953 | 98.691 | 0/5 | |
| escape | 98.607 | 97.954 | 0/5 |
| Rule identifier | Eligible candidates | Maximized score |
|---|---|---|
| iid_pooled | (all 64) | |
| lodo_top2 | ||
| lodo_top4 | ||
| lodo_top8 | ||
| lodo_top16 | ||
| trust_005 |
| Rule | Effect | 95% interval | W/T/L | Nonnegative |
|---|---|---|---|---|
| Pooled IID | — | 0/22/0 | 4/4 | |
| LODO within IID top 2 | 5/11/6 | 3/4 | ||
| LODO within IID top 4 | 7/6/9 | 3/4 | ||
| LODO within IID top 8 | 8/4/10 | 2/4 | ||
| LODO within IID top 16 | 9/0/13 | 2/4 | ||
| Trust region, 0.5 pp | 6/5/11 | 1/4 |
Hyperparameter Transfer
Hyperparameter transfer studies how to reuse training settings across model sizes, architectures, tasks, and training horizons.
See all 47 papers