STAMP: Predicting Out-of-Distribution Generalization without Target Data
Organizations: Department of Computer Science and Engineering NPI University of Bangladesh Manikganj, Bangladesh · Department of Computer & Information Sciences Towson University Towson, MD 21252
Abstract
Predicting whether a trained model will generalize under distribution shift remains difficult, especially when target-domain data are unavailable. We introduce STAMP (Semantic Temporal Augmented Model Prediction), a source-only, target-label-free criterion that estimates out-of-distribution (OOD) performance from paired source-domain images. STAMP computes the output-space correlation ratio by contrasting semantically stable pairs with random pairs: higher indicates that model outputs vary with semantic identity rather than nuisance variation. On 44 chest X-ray models spanning CNNs, ViTs, MetaFormers, foundation models, and SSL/VLM probes, temporal STAMP attains Spearman correlations of -- with macro AUROC on VinDr-CXR, CheXpert, and MIMIC-CXR; a class-matched variant improves single-class RSNA from to . STAMP attains the best average source-only medical ranking and outperforms the target-domain ATC and AoTL estimators without any target data. On 27 ImageNet models, temperature-scaled STAMPTS attains on ObjectNet and on four additional distribution shifts, with partial correlations of -- after controlling for ImageNet accuracy. Requiring approximately 12s per model on one GPU, STAMP is a practical pre-deployment model-selection and auditing tool.
Figures & tables
| Dataset | 95 % CI | |||
|---|---|---|---|---|
| VinDr-CXR | 0.855 | [0.72, 0.92] | 44 | |
| CheXpert | 0.851 | [0.71, 0.92] | 44 | |
| MIMIC-CXR | 0.844 | [0.70, 0.91] | 44 | |
| RSNA (macro) | 0.311 | [0.02, 0.56] | 0.044 | 44 |
| RSNA (CM, Pneu.) | 0.663 | [0.44, 0.80] | 44 |
| Method | Dom. | VinDr | Chex. | RSNA | MIMIC | Avg. | |
| NIH AUROC (ref.) | lbl | .861 | .869 | .291 | .887 | .727 | 44 |
| Entropy | src | 40 | |||||
| Mean Confidence | src | 40 | |||||
| ECE | src | 44 | |||||
| MC Dropout | src | 31 | |||||
| TTA Multi | src | 40 |
| Benchmark | Shift | Part. | LOO range | 95 % CI | Boot. CI | |
|---|---|---|---|---|---|---|
| ObjectNet | Hard covariate | 0.984 | 0.949 | [0.982, 0.988] | [0.964, 0.993] | [0.935, 0.996] |
| Dollar Street | Geographic | 0.940 | 0.804 | [0.932, 0.966] | [0.870, 0.972] | [0.799, 0.991] |
| ImageNet-A | Natural adversarial | 0.928 | 0.755 | [0.919, 0.942] | [0.846, 0.967] | [0.808, 0.971] |
| ImageNet-R | Style/texture | 0.911 | 0.700 | [0.900, 0.936] | [0.812, 0.959] | [0.736, 0.982] |
| ImageNet-C | Synthetic corruption | 0.905 | 0.662 | [0.893, 0.926] | [0.800, 0.956] | [0.745, 0.976] |
| Objective | Range | |||
|---|---|---|---|---|
| CE-Supervised | 31 | 0.786 | 0.011 | [0.754, 0.805] |
| SSL | 5 | 0.717 | 0.029 | [0.666, 0.754] |
| VL-Contrastive | 3 | 0.674 | 0.034 | [0.626, 0.701] |
| TXV | 4 | 0.641 | 0.101 | [0.493, 0.739] |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Label-free | Target-free | Arch.-agnostic | Closed-form | fwd. |
|---|---|---|---|---|---|
| LogME ( You et al., 2021 ) | ✗ | ✗ | ✓ | ✗ | ✓ |
| LEEP ( Nguyen et al., 2020 ) | ✗ | ✗ | ✓ | ✗ | ✓ |
| H-score ( Bao et al., 2019 ) | ✗ | ✗ | ✓ | ✗ | ✓ |
| ( Ben-David et al., 2010 ) | ✓ | ✗ | ✓ | ✓ | ✗ |
| FID ( Heusel et al., 2017 ) | ✓ | ✗ | ✓ | ✗ | ✓ |
| MMD ( Gretton et al., 2012 ) | ✓ | ✗ | ✓ | ✗ | ✓ |
| A5(ii): centroid gap vs. STAMP rank | A5(iii): vs. STAMP | |||||
|---|---|---|---|---|---|---|
| Family | Family | |||||
| All ( ) | CNN family | |||||
| CNN ( ) | ViT/Modern | |||||
| ViT/Modern ( ) | All (pooled) | |||||
| labeled STAMP (pooled) | ||||||
| Variant | ||
|---|---|---|
| SV only | ||
| AV only | ||
| SV/AV (raw ratio) | ||
| STAMP SV/AV |
| Architecture | STAMP | 95 % CI | SV | AV |
|---|---|---|---|---|
| CE-Supervised fine-tuned (31 models, two-stage protocol) | ||||
| ResNet-18 | 0.7764 | [0.763, 0.790] | 0.00500 | 0.02238 |
| ResNet-34 | 0.7818 | [0.769, 0.795] | 0.00465 | 0.02130 |
| ResNet-50 | 0.7802 | [0.768, 0.793] | 0.00480 | 0.02182 |
| ResNet-101 | 0.7760 | [0.762, 0.790] | 0.00493 | 0.02200 |
| ResNet-152 | 0.7728 | [0.759, 0.786] | 0.00512 | 0.02254 |
| Architecture | Temporal STAMP | Synthetic STAMP | |
|---|---|---|---|
| ResNet-18 | .7764 | .9528 | +.177 |
| ResNet-34 | .7818 | .9472 | +.165 |
| ResNet-50 | .7802 | .9601 | +.180 |
| ResNet-101 | .7760 | .9336 | +.158 |
| ResNet-152 | .7728 | .9433 | +.171 |
| DenseNet-121 | .7832 | .9548 | +.172 |
| Method | Images | Time (s) | Target? |
|---|---|---|---|
| STAMP (ours) | 4,000 | 12 | No |
| ATC ( Garg et al., 2022 ) | 32,010 | 96 | Yes |
| NIH AUROC (labeled) | 25,596 | 77 | Yes labels |
| AoTL ( Baek et al., 2022 ) ( ) | 1,126,224 | 3,379 | Yes multi-model |
| Corruption type | |
|---|---|
| Gaussian noise | 0.891 |
| Shot noise | 0.892 |
| Impulse noise | 0.892 |
| Defocus blur | 0.868 |
| Glass blur | 0.813 |
| Motion blur | 0.874 |
| 27 | 0.682 | 0.966 | 0.998 | |
|---|---|---|---|---|
| 30 | 0.721 | 0.977 | 0.999 | |
| 44 | 0.865 | 0.997 |