NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tempering and few-shot calibration of pathology foundation models improve digital biomarker reproducibility across slide scanners

Frank T Wen, Kyler Rosen, Siddhi Ramesh, Michael Koo, Sara Kochanny, Sasha Jain-Liu, Emma Dyer, Alexander T Pearson, James M DolezalarXiv 2026

TL;DR

Imagine getting two different cancer diagnoses from the exact same biopsy slide, simply because Hospital A and Hospital B used different digital slide scanners. Pathology foundation models secretly memorize hardware quirks—optics, color profiles, compression—which wrecks reproducibility across clinics. This paper introduces "tempering," a clever, lightweight fine-tuning recipe using public data that strips away scanner-specific noise from a foundation model, making downstream cancer predictions remarkably consistent across machines without sacrificing biological accuracy.

What Problem Does This Paper Address?

Modern computational pathology relies heavily on foundation models—massive neural networks pretrained on millions of tissue images. Researchers feed tissue patches into these frozen encoders to extract mathematical representations (embeddings), and then train smaller Multiple Instance Learning (MIL) models on top to predict clinical biomarkers from whole slides, like tumor grade or genetic mutations.

The catch? Foundation models don't just see biology; they also encode the digital "fingerprint" of the slide scanner. Two failure modes emerge:

  1. Deployment Shift: If you rescan the same glass slide on a different brand of scanner, the model’s predicted probability can shift. Common ranking metrics like AUROC completely miss this, because even if the overall ranking of patients stays the same, shifting scores across a fixed clinical decision threshold (say, 0.5) flips diagnoses from negative to positive.
  2. Shortcut Learning (Confounding): If Hospital A uses Scanner X and treats mostly high-risk patients, a downstream classifier might lazily learn to detect Scanner X rather than the actual cancer biology.

Previously, fixing this required pixel-aligned rescans from every single deployment hospital to calibrate features post hoc—a massive logistical headache.

Methods

Starting with a frozen, state-of-the-art pathology foundation model (H-optimus-0, a giant Vision Transformer), the authors compare two strategies in a 2×2 factorial design:

  • Tempering (Novel Encoder Fine-Tuning): The authors attach lightweight Low-Rank Adapters (LoRA) inside the frozen transformer alongside a small, content-conditioned correction head. They feed this setup spatially aligned pairs of the exact same tissue captured on different scanners (plus synthetic image perturbations like blur and JPEG compression). Using an L1 loss, they force the adapted model's embedding of a comparison scan to match the original frozen model's embedding of a clean reference scan. Anchoring to the original model prevents representation collapse and preserves biological knowledge. The resulting encoder—trained in just ~5 GPU-hours on an A100—is named Mettle-1.5.
  • Few-Shot Calibration (Post Hoc Baseline): Instead of touching the encoder, this trains just the correction head on top of frozen features using a small set of paired rescans taken directly from the target evaluation hospitals and scanners. Crucially, the head is content-conditioned, meaning it doesn't need metadata telling it which scanner produced the image at inference time.

Datasets

  • Tempering (Public Only): Registered cross-scanner and cross-stain pairs from SCORPION, PLISM, and 10 prostate specimens from PAR.
  • Calibration: The 10 PAR specimens plus 15 internal University of Chicago cross-scanner specimens.
  • Clinical Task Training & Evaluation: Downstream models were trained on TCGA (head-and-neck, colorectal, prostate) and SICAPv2 (prostate), and tested on multi-scanner paired cohorts from the University of Chicago (head-and-neck HPV, colorectal MSI, breast signatures, plus an auxiliary unseen-scanner panel) and PAR (prostate biopsies).
  • Public Benchmarks: PathoROB (used for checkpoint selection), CRoMa, HEST, BACH, and EVA. No new public benchmark datasets were introduced, though a custom University of Chicago paired-scanner cohort was curated for evaluation.

Key Insights and Ideas

  • Fixing the root beats patching the leaves: Tempering the shared encoder on public data matched or beat post hoc calibration—even though calibration had the "unfair" advantage of training on slides from the exact evaluation hospitals and scanners.
  • AUROC lies about clinical readiness: Across tasks, stock models maintained steady AUROCs across scanners while quietly flipping clinical calls at fixed thresholds. Evaluating cross-site models requires checking fixed-threshold agreement.
  • Vaccination against shortcut learning: When training data was intentionally rigged so that HPV status correlated 100% with scanner type, stock models took the bait—calling 79% of test patients positive when trained on one scanner pairing, versus 11% when reversed. Tempered features largely erased the scanner signal before the classifier could ever cheat with it.
  • Plug-and-play compatibility: Because tempering anchors to the original model's embedding space, frozen legacy biomarkers trained on stock features became significantly more consistent when fed tempered features directly, without any retraining (only requiring threshold revalidation due to output scale shifts).

Key Results

  • Cross-Scanner Consistency: Compared to stock H-optimus-0, Mettle-1.5 slashed cross-scanner prediction discrepancies by 67.5% for head-and-neck HPV, 69.3% for colorectal MSI, and 63.4%–81.2% for frozen breast cancer gene-expression models.
  • Prostate Grading: Exact grade agreement across scanners jumped from 42.5% (stock) to 92.7% (Mettle-1.5), raising quadratic weighted kappa from 0.72 to 0.95—meaning the model agreed with itself across scanners more often than human pathologists agreed with each other (kappa 0.48–0.78).
  • Confounding Resistance: Under 100% scanner–disease confounding, stock model AUROC dropped from 0.80 to 0.68, whereas Mettle-1.5 held steady (0.86 to 0.84) and reduced scanner-induced positive call-rate swings from 68 percentage points down to 0.9 points.
  • General Perturbations: On synthetic JPEG and color/stain degradations, Mettle-1.5 cut prediction drift by 67%–81%, whereas post hoc calibration failed (−25% to +19% change).

Limitations and Future Work

  • Unseen Hardware: Reproducibility gains were mostly demonstrated on scanner brands present in the tempering data. For instance, no Olympus scanner was used during tempering; on an Olympus VS200, Mettle-1.5 reduced discrepancy for MSI and breast tasks, but not for HPV.
  • Single Backbone: Only one foundation model (H-optimus-0) was tempered; encoders with different pretraining recipes might behave differently.
  • Retrospective Scope: All clinical evaluations were retrospective. Prospective, multicenter clinical trials are needed to confirm these stability gains in live workflows.

Summary updated

BibTeX
@misc{wen2026tempering,
  author = {Frank T Wen and Kyler Rosen and Siddhi Ramesh and Michael Koo and Sara Kochanny and Sasha Jain-Liu and Emma Dyer and Alexander T Pearson and James M Dolezal},
  title = {{Tempering and few-shot calibration of pathology foundation models improve digital biomarker reproducibility across slide scanners}},
  year = {2026},
  eprint = {2611.31536},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31536},
}
Figure