Contrastive fine-tuning against stain and scanner bias improves robustness and downstream performance across pathology foundation models
Ryan Kim, Hassan Muhammad, Anish Dulal, Paul S. Scotti, Tanishq Mathew Abraham
Key points
From the paper's conclusion- We introduce SPECTRA (Scanner and Pathology Embedding Contrastive Tuning for Robust Alignment), a model-agnostic contrastive learning post-training framework which explicitly encourages scanner- and stain-robust representations, to optimize performance and generalization on downstream applications.
Abstract
Histopathology foundation models achieve strong performance across diverse downstream tasks, yet their representations have been shown to encode scanner- and site-specific biases, creating generalization gaps and potentially limiting real-world utility. We introduce SPECTRA (Scanner and Pathology Embedding Contrastive Tuning for Robust Alignment), a model-agnostic contrastive learning post-training framework which explicitly encourages scanner- and stain-robust representations, to optimize performance and generalization on downstream applications. Using parameter-efficient LoRA adapters trained on matched multi-scanner and multi-stain whole-slide images sourced from the PLISM dataset, our method aligns spatially corresponding regions across acquisition conditions (scanner, stain), using other locations within each candidate condition as negatives. SPECTRA improved PathoROB robustness index, gene-expression prediction on HEST, slide-level classification AUC on CPTAC, and held-out PLISM retrieval for every model. Overall tile-level classification on THUNDER also improved, with exceptions for segmentation and calibration tasks. We open-source our training and evaluation codebases and release adapters and model weights for selected backbones.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- One-Slide Calibration of Pathology Foundation ModelsarXiv · 2026
- End-to-end multimodal pathology foundation model with clinical dialogueNature Medicine · 2026
- Tempering and few-shot calibration of pathology foundation models improve digital biomarker reproducibility across slide scannersarXiv · 2026
- DELTA: Training-free and label-free correction of pathology foundation model embeddings through paired counterfactual stain-appearance interventionsbioRxiv · 2026
- Mind the Gap: Continuous magnification sampling for pathology foundation models.Medical image analysis · 2026
- Lightweight self supervised learning framework for domain generalization in histopathologyScientific Reports · 2025