Reliability-Aware Checkpoint Selection for Domain Generalization
Organizations: Shenzhen University · Xiamen University · The Hong Kong University of Science and Technology (Guangzhou) · Macao Polytechnic University · Fudan University · Institute of Information Engineering, Chinese Academy of Sciences
Abstract
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 . 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.
Figures & tables
| Dataset | Selector | Gap | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|---|---|
| OfficeHome | Source-Acc | 0.0000 | 60.87 | 2.77 | 3.32 | 4.2724 |
| AC-NC | 0.1612 | 61.06 | 2.48 | 3.05 | 4.2362 | |
| TerraInc. | Source-Acc | 0.0000 | 42.74 | 9.10 | 11.35 | 2.3438 |
| AC-NC | 0.1091 | 42.97 | 8.90 | 11.25 | 2.3210 | |
| PACS (dev.) | Source-Acc | 0.0000 | 80.73 | 1.63 | 2.75 | 0.7794 |
| AC-NC | 0.1647 | 80.55 | 1.59 | 2.75 | 0.7728 |
| Comparator | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|
| AC-NLL | ||||
| AC-CwECE | ||||
| Selector | Gap | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|---|
| Source-Acc | 0.0000 | 80.7253 | 1.6265 | 2.7526 | 0.7794 |
| AC-ECE | 0.2167 | 80.2406 | 1.5928 | 2.8638 | 0.7835 |
| AC-NLL | 0.1689 | 80.3712 | 1.6402 | 2.8355 | 0.7787 |
| AC-CwECE | 0.1660 | 80.5422 | 1.6172 | 2.8025 | 0.7801 |
| AC-NC | 0.1647 | 80.5523 | 1.5924 | 2.7501 | 0.7728 |
| AC-mean | 0.1933 | 80.3927 | 1.6477 | 2.8624 | 0.8020 |
| Selector | Candidates | Gap | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|---|---|
| Source-Acc | – | 0.0000 | 61.44 | 4.50 | 5.81 | 2.4652 |
| AC-NC ( ) | 1.30 | 0.0063 | 61.46 | 4.46 | 5.78 | 2.4610 |
| AC-NC ( ) | 3.92 | 0.1450 | 61.53 | 4.33 | 5.69 | 2.4433 |
| AC-NC ( ) | 9.71 | 0.3516 | 61.51 | 4.19 | 5.62 | 2.1109 |
| Selector | Acc. (%) | ECE | CwECE | NLL |
|---|---|---|---|---|
| Source-Acc | 51.94 | |||
| AC-NC | 51.99 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Algorithm | Gap (pp) | target acc. | ECE | CwECE | NLL | WHD |
|---|---|---|---|---|---|---|---|
| OfficeHome | CORAL | 0.2159 | |||||
| ERM | 0.1798 | ||||||
| GroupDRO | 0.2264 | ||||||
| IRM | 0.0449 | ||||||
| VREx | 0.1391 | ||||||
| PACS | CORAL | 0.1677 |
| Selector | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|
| Source-Acc | 60.85 | 2.61 | 3.26 | 2.1211 |
| AC-NC | 60.97 | 2.36 | 3.05 | 2.1156 |
| checkpoint-SWAD + BN recal. | 62.62 | 1.95 | 2.91 | 2.0026 |
| checkpoint-SWAD, no BN recal. | 48.36 | 11.99 | 3.35 | 9567.3991 |
| Algorithm | Dataset | Selector | Acc. | NLL | ECE | CwECE |
|---|---|---|---|---|---|---|
| ERM | OfficeHome | Source-Acc | 65.786 | 1.501 | 11.661 | 0.716 |
| AC | 65.636 | 1.507 | 11.603 | 0.719 | ||
| LODO-Acc | 65.754 | 1.447 | 9.349 | 0.699 | ||
| AC-LODO | 65.720 | 1.443 | 8.621 | 0.703 | ||
| TerraIncognita | Source-Acc | 46.199 | 2.487 | 32.301 | 13.131 | |
| AC | 45.809 | 2.446 | 32.070 | 13.002 |
| Scope | Metric | AC LODO-Acc | AC-LODO LODO-Acc |
|---|---|---|---|
| Fixed | Accuracy | ||
| NLL | |||
| ECE | |||
| CwECE | |||
| Selected | Accuracy | ||
| NLL |
| Dataset | Selector | Acc. (%) | ECE ( ) | CwECE ( ) | NLL | WHD (%) | WC (%) |
|---|---|---|---|---|---|---|---|
| OfficeHome | Source-Acc | 57.44 | 2.77 | 2.92 | 1.9327 | 45.61 | 12.08 |
| PAIR iid-last10 | 50.03 | 2.11 | 3.38 | 2.2105 | 38.58 | 10.92 | |
| PAIR val-filter | 57.44 | 2.94 | 3.12 | 1.9435 | 45.95 | 11.93 | |
| AC-NC | 57.63 | 2.54 | 2.70 | 1.9025 | 45.49 | 12.00 | |
| PACS | Source-Acc | 79.79 | 2.05 | 3.17 | 0.7219 | 70.53 | 56.69 |
| PAIR iid-last10 | 70.12 | 1.88 | 2.26 | 0.9669 | 62.25 | 49.57 |
| NC distance | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|
| Target metric | Mean difference | 95% paired bootstrap CI |
|---|---|---|
| Accuracy | ||
| ECE | ||
| CwECE | ||
| NLL |
| Objectives | Distance | src. acc. | tgt. acc. | ECE | CwECE | NLL | WHD |
|---|---|---|---|---|---|---|---|
| NC | |||||||
| NC | |||||||
| NC | |||||||
| NE | |||||||
| NE | |||||||
| NE |
| Target metric | Mean difference | 95% paired bootstrap CI |
|---|---|---|
| Accuracy | ||
| ECE | ||
| CwECE | ||
| NLL |
| Selector | Gap | Src. acc. | Src. NLL | Src. CwECE | WHD | WC |
|---|---|---|---|---|---|---|
| AC-NLL | 0.138017 | 84.4905 | 1.269184 | 2.2609 | 51.5809 | 24.5767 |
| AC-CwECE | 0.155944 | 84.4725 | 1.292866 | 2.1405 | 51.5854 | 24.5787 |
| AC-NC | 0.145010 | 84.4835 | 1.271047 | 2.1888 | 51.6157 | 24.6432 |
| Dataset | Selector | Gap | Acc. | ECE | CwECE | NLL | WHD | WC |
|---|---|---|---|---|---|---|---|---|
| OfficeHome | AC-NLL | 0.1432 | 61.0523 | 2.5276 | 3.0798 | 4.240746 | 48.2747 | 12.8679 |
| AC-CwECE | 0.1686 | 61.0611 | 2.4858 | 3.0615 | 4.236254 | 48.2056 | 13.0297 | |
| AC-NC | 0.1612 | 61.0613 | 2.4828 | 3.0488 | 4.236244 | 48.2139 | 12.9993 | |
| PACS (dev.) | AC-NLL | 0.1689 | 80.3712 | 1.6402 | 2.8355 | 0.778687 | 71.8626 | 60.1070 |
| AC-CwECE | 0.1660 | 80.5422 | 1.6172 | 2.8025 | 0.780122 | 72.1708 | 59.8490 | |
| AC-NC | 0.1647 | 80.5523 | 1.5924 | 2.7501 | 0.772756 | 72.1615 | 60.0456 |
| AC-NC minus AC-NLL | AC-NC minus AC-CwECE | |||
|---|---|---|---|---|
| Metric | Mean | 95% CI | Mean | 95% CI |
| Source accuracy | ||||
| Target accuracy | ||||
| ECE | ||||
| CwECE | ||||
| NLL | ||||
| (pp) | Candidates | Gap (pp) | Acc. | ECE | CwECE | NLL |
|---|---|---|---|---|---|---|
| 0.1 | 1.30 | 0.0063 | 61.46 | 4.46 | 5.78 | 2.4610 |
| 0.5 | 3.92 | 0.1450 | 61.53 | 4.33 | 5.69 | 2.4433 |
| 1.0 | 9.71 | 0.3516 | 61.51 | 4.19 | 5.62 | 2.1109 |
| Dataset | Candidates | Gap | Acc. | ECE | CwECE | NLL | |
|---|---|---|---|---|---|---|---|
| OfficeHome | 0.1 | 1.28 | 0.0075 | 60.90 | 2.69 | 3.26 | 4.2633 |
| 0.5 | 3.80 | 0.1612 | 61.06 | 2.48 | 3.05 | 4.2362 | |
| 1 | 9.44 | 0.4164 | 60.99 | 2.46 | 2.98 | 3.2860 | |
| PACS (dev.) | 0.1 | 1.40 | 0.0072 | 80.77 | 1.59 | 2.75 | 0.7741 |
| 0.5 | 5.20 | 0.1647 | 80.55 | 1.59 | 2.75 | 0.7728 | |
| 1 | 14.23 | 0.3686 | 80.30 | 1.59 | 2.82 | 0.7766 |
| Tolerance | Metric | Mean difference | 95% CI |
|---|---|---|---|
| 0.1 | Source accuracy | ||
| Target accuracy | |||
| ECE | |||
| CwECE | |||
| NLL | |||
| 1.0 | Source accuracy |
| Dataset | Selector | Src. acc. | Tgt. acc. | ECE | CwECE | NLL | Step |
|---|---|---|---|---|---|---|---|
| OfficeHome | Source-Acc | 76.14 | 60.87 | 2.77 | 3.32 | 4.2724 | 2553 |
| pure ECE | 2.96 | 2.55 | 0.04 | 0.04 | 4.1890 | 164 (94.4%) | |
| pure CwECE | 2.07 | 1.91 | 0.03 | 0.01 | 4.2168 | 173 (95.6%) | |
| pure NLL | 74.54 | 60.40 | 1.92 | 2.82 | 1.7333 | 1723 | |
| PACS | Source-Acc | 93.68 | 80.73 | 1.63 | 2.75 | 0.7794 | 2656 |
| pure ECE | 85.10 | 73.58 | 0.94 | 2.54 | 0.7927 | 1264 (7.8%) |
| Dataset | Algorithm | Ckpts | Src. acc. range | Src. NLL range | Src. CwECE range | Tgt. NLL range | Tgt. CwECE range |
|---|---|---|---|---|---|---|---|
| OfficeHome | CORAL | 4.33 | 0.3639 | 0.0689 | 0.0063 | 0.1498 | 0.0091 |
| ERM | 4.03 | 0.3283 | 0.0441 | 0.0051 | 0.1196 | 0.0086 | |
| GroupDRO | 5.08 | 0.3753 | 0.0642 | 0.0064 | 0.1691 | 0.0101 | |
| IRM | 2.11 | 0.0979 | 2.1954 | 0.0012 | 11.3938 | 0.0024 | |
| VREx | 3.44 | 0.2772 | 0.0388 | 0.0039 | 0.0852 | 0.0062 | |
| PACS | CORAL | 5.06 | 0.3727 | 0.0336 | 0.0032 | 0.2091 | 0.0138 |
| Dataset | Source proxy | Spearman | Kendall | Checkpoints | Valid/total |
|---|---|---|---|---|---|
| OfficeHome | source-out accuracy | 684 | 104/180 | ||
| AC utility | 684 | 104/180 | |||
| PACS | source-out accuracy | 936 | 128/180 | ||
| AC utility | 936 | 128/180 | |||
| TerraInc. | source-out accuracy | 497 | 74/180 | ||
| AC utility | 497 | 74/180 |
| Item | Setting |
|---|---|
| Backbone | Code default: ImageNet-1K-pretrained ResNet-50 ( resnet50.ram_in1k ). |
| Source split | Code default: 20% validation per source domain; target domain excluded from selection. |
| Trajectory | 5001 updates; logged steps (51 per run). |
| Seeds | Hyperparameter seed 0: defaults; 1–2: registry draws. Trial seeds 0–2: splits and, jointly with hyperparameter seeds, draws. Training seed hashes all run keys. |
| Shared search | Learning rate – ; weight decay – ; batch size 8–45; dropout . |
| Algorithm search | CORAL penalty weight ; GroupDRO ; IRM/VREx penalty weight – and annealing step 1–9999. |