arXiv:2609.39934cs.LGSep 2026

Manuscript Offprint

arXiv:2609.39934

Reliability-Aware Checkpoint Selection for Domain Generalization

Jinshi Liu, Jiahao Li, Pan Liu, Yanfeng Li, Rui Qian, Zhao Tong, Yue Sun, Tao Tan

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 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.

1 INTRODUCTION

Domain generalization (DG) trains on multiple source domains for deployment on an unseen target domain. Even within a fixed training run, deployment requires choosing a checkpoint without target-domain validation data. Under the DomainBed training-domain validation protocol, Source-Acc selects the checkpoint with the highest mean source-validation accuracy (Gulrajani & Lopez-Paz, 2021). We ask whether the same held-out source data can also distinguish checkpoints by predictive reliability.

Accuracy alone ignores probability quality: checkpoints can make identical class predictions while assigning different probabilities. We measure reliability using NLL and calibration errors (ECE and CwECE), motivated by known calibration and uncertainty degradation under distribution shift (Guo et al., 2017; Ovadia et al., 2019). Reliability-only selection is unsafe: minimizing source ECE or CwECE can select low-accuracy early checkpoints, while unconstrained NLL provides no explicit accuracy budget. Yet near-best-accuracy checkpoints can still differ substantially in reliability (Figure 1). Following accuracy-filtered calibration selection (Wald et al., 2021), we study reliability-based ranking among near-best-accuracy checkpoints within a fixed training trajectory.

(a) Representative run: checkpoint selection

Figure

(b) Target Accuracy vs. Reliability Distance

source-acc ● pure ECE ■ pure CwECE ● pure NLL ♦ AC-NC ○ AC-NE ▲ AC-NEC +

Figure 1: Checkpoint selection and the accuracy–reliability trade-off. (a) A representative Office-Home/VREx trajectory, with the source-accuracy tolerance marked and checkpoints colored by source reliability. (b) Mean target accuracy versus a diagnostic target reliability distance across the pooled 540 trajectories, including PACS development, with the high-accuracy region magnified. Objective-set abbreviations are defined in Section 3.2. The plotted target distance is not AC's source-side selection score. Panel (b) is descriptive; target metrics are used only for evaluation.

We instantiate this principle as accuracy-constrained reliability selection (AC). AC retains checkpoints within δ\delta percentage points of the best source-validation accuracy; AC-NC is our reference rule using normalized NLL and CwECE with D∞D_{\infty}. It returns a saved checkpoint without target data, additional training, or weight averaging. The tolerance controls empirical source accuracy, not target accuracy.

We developed the NC objective set and δ=0.5\delta = 0.5 on PACS source validation data without inspecting target outcomes, then evaluated them on 360 OfficeHome and TerraIncognita runs spanning five DG algorithms. On these post-development runs, AC-NC reduces mean target ECE, CwECE, and NLL relative to Source-Acc; the mean target-accuracy change is +0.21 percentage points. The D∞D_{\infty} aggregation was not fixed before these evaluations, so aggregation comparisons remain exploratory.

Our contributions are threefold:

• We characterize reliability variation among checkpoints with near-optimal source-validation accuracy within fixed training trajectories. Differences in their target-domain probability quality reveal a reliability-selection opportunity not explicitly exploited by Source-Acc.

• We propose accuracy-constrained reliability selection (AC), separating source-accuracy eligibility from reliability ranking. AC retains checkpoints within a prescribed tolerance of the best source-validation accuracy and ranks them by aggregating source reliability metrics normalized within the feasible set. It returns an existing checkpoint without target data, additional training, or weight averaging.

• We conduct paired evaluations across three DG benchmarks and five training algorithms, with selection-rule, objective-set, aggregation, and accuracy-tolerance ablations. Post-development OfficeHome and TerraIncognita results show lower mean target ECE, CwECE, and NLL than Source-Acc, with small observed changes in mean target accuracy. Prediction-level case studies illustrate lower error rates above a fixed confidence threshold and, on subsets of shared errors, lower incorrect-prediction confidence and higher true-label probabilities.

References (61)