One-Slide Calibration of Pathology Foundation Models
Organizations: App-In Club · Ryquo
Abstract
Scanner variation changes how pathology foundation models represent the same tissue. We introduce SlideRuler, which uses regions within a slide as internal controls to estimate and correct acquisition-induced shifts in other regions. A transfer map learned from paired rescans enables calibration from a single scan at inference while keeping the foundation model fixed. Across two encoders and five SCORPION scanners, learned transfer reduces mean target-to-source embedding distance by 16.3-38.5% relative to raw embeddings. Comparisons with unrelated same-scanner controls reveal a positive same-slide contribution across all four evaluation settings, including scanner holdout. A source-anchored variant reduces source-feature displacement by 47.7-83.6% relative to learned transfer while retaining most of its alignment gain. By drawing calibration information from the slide itself, SlideRuler offers a path toward more consistent use of frozen pathology models across imaging systems.
Figures & tables
| Encoder | Protocol | Raw | Scanner mean | Affine ridge | Shrinkage | Learned | Anchored |
|---|---|---|---|---|---|---|---|
| Prost40M | Calibrated | 18.654 | 11.328 | 9.640 | 13.181 | 11.470 | 12.030 |
| Holdout | 18.654 | 15.940 | 13.294 | 14.801 | 13.871 | 14.196 | |
| DistillPath | Calibrated | 17.551 | 13.805 | 14.447 | 13.808 | 13.843 | 14.591 |
| Holdout | 17.551 | 15.840 | 15.420 | 14.690 | 14.682 | 14.973 |
| Reference class | Fields | Patients | Precision | Recall |
|---|---|---|---|---|
| Benign gland | 337 | 21 | 89.37 [80.05, 95.72] | 89.51 [82.19, 94.40] |
| Residual stroma | 7,028 | 32 | 99.98 [99.93, 100.00] | 98.16 [96.78, 99.18] |
| Tumor | 960 | 20 | 96.32 [91.85, 98.69] | 81.40 [71.34, 89.38] |
| Policy | Grundium | Hamamatsu | Leica | Overall |
|---|---|---|---|---|
| Reference (512 fields) | 12/35 | 3/35 | 14/35 | 29/105 (27.6%) |
| Dense (2,048 fields) | 21/35 | 17/35 | 20/35 | 58/105 (55.2%) |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Encoder | Protocol | Pooled mean | Direct controls |
|---|---|---|---|
| Prost40M | Calibrated | 14.131 | 12.215 |
| Holdout | 15.940 | 13.837 | |
| DistillPath | Calibrated | 14.985 | 14.051 |
| Holdout | 15.840 | 14.770 |
| Encoder | Protocol | Versus affine ridge | Versus scanner mean | Versus shrinkage |
|---|---|---|---|---|
| Prost40M | Calibrated | [ ] | [ ] | 1.711 [1.565,1.865] |
| Holdout | [ ] | 2.069 [1.979,2.158] | .930 [.792,1.082] | |
| DistillPath | Calibrated | .604 [.411,.798] | [ ] | [ ] |
| Holdout | .738 [.553,.922] | 1.158 [1.101,1.219] | .008 [ ] |
| Encoder | Protocol | Learned, 95% CI | Anchored, 95% CI | Learned gain range |
|---|---|---|---|---|
| Prost40M | Calibrated | .535 [.427,.641] | .249 [.169,.325] | .472–.591 |
| Holdout | .303 [.238,.369] | .156 [.099,.213] | .261–.348 | |
| DistillPath | Calibrated | .330 [.270,.392] | .031 [.015,.047] | .298–.367 |
| Holdout | .249 [.201,.299] | .058 [.041,.075] | .220–.277 |
| Top-1 retrieval accuracy | Distance worsening | |||||
|---|---|---|---|---|---|---|
| Encoder | Protocol | Raw | Learned | Anchored | Learned | Anchored |
| Prost40M | Calibrated | 93.91 | 99.74 | 99.84 | 1.77 | 1.15 |
| Holdout | 93.91 | 99.74 | 99.58 | 3.07 | 2.45 | |
| DistillPath | Calibrated | 99.79 | 100.00 | 99.95 | 1.77 | 1.35 |
| Holdout | 99.79 | 99.95 | 99.90 | 2.40 | 1.35 | |
| Encoder | Protocol | Target distance, 95% CI | Retrieval change, 95% CI | Worsening change, 95% CI |
|---|---|---|---|---|
| Prost40M | Calibrated | .560 [.466,.652] | .104 [.000,.260] | [ ] |
| Holdout | .326 [.264,.389] | [ ] | [ ] | |
| DistillPath | Calibrated | .749 [.677,.822] | [ ] | [ ] |
| Holdout | .291 [.241,.344] | [ ] | [ ] |
| Source displacement | Selected models | |||||
|---|---|---|---|---|---|---|
| Encoder | Protocol | Learned | Anchored | Global-only | Residual | Identity |
| Prost40M | Calibrated | 3.562 | 1.861 | 0 | 6 | 0 |
| Holdout | 3.306 | 1.683 | 0 | 24 | 0 | |
| DistillPath | Calibrated | 2.365 | .388 | 6 | 0 | 0 |
| Holdout | 2.248 | .555 | 12 | 12 | 0 | |
| Policy | Direction | Slides /35 | Patients /20 | Training patients, folds 0–4 |
|---|---|---|---|---|
| Reference | G H | 0 | 0 | 0, 0, 0, 0, 0 |
| G L | 2 | 2 | 2, 2, 0, 2, 2 | |
| H G | 0 | 0 | 0, 0, 0, 0, 0 | |
| H L | 0 | 0 | 0, 0, 0, 0, 0 | |
| L G | 2 | 2 | 2, 2, 0, 2, 2 | |
| L H | 0 | 0 | 0, 0, 0, 0, 0 |
| Policy | Class | Selected fields | With nearby center | Fraction |
|---|---|---|---|---|
| Reference | Benign gland | 1,667 | 459 | 27.5% |
| Residual stroma | 25,729 | 12,213 | 47.5% | |
| Dense | Benign gland | 6,251 | 4,016 | 64.2% |
| Residual stroma | 100,660 | 86,688 | 86.1% |
| Shift RMSE | Worst QWK | Grade flip | ||||||
|---|---|---|---|---|---|---|---|---|
| Regime | Audit | Raw | Corrected | Raw | Corrected | Raw | Corrected | Cov. |
| Acquisition-sensitive | 7/8 | 4.014 | 1.894 | .828 | .949 | .567 | .157 | .804 |
| Already robust head | 7/8 | 4.031 | 1.893 | .983 | .993 | .098 | .038 | .807 |
| Unseen scanner | 7/8 | 4.449 | 2.513 | .790 | .932 | .617 | .185 | .753 |
| Unseen, 1.5 range | 7/8 | 6.673 | 5.925 | .643 | .729 | .714 | .479 | .365 |
| Matched tissue response | 7/8 | 3.504 | 1.630 | .865 | .961 | .555 | .150 | .813 |
| Stress | Ungated worsening | Coverage | Accepted worsening |
|---|---|---|---|
| One-control conflict | .738 | .000 | – |
| Concordant control drift | .964 | .037 | .990 |
| Morphology out of support | .003 | .000 | – |
| Novel acquisition direction | .001 | .000 | – |
| Insufficient controls | .000 | .000 | – |
| 25% selector contamination | .001 | .415 | .000 |