Beyond Counts: A Distributional Robustness Margin For Pathology Foundation Models

Clément Grisi, Jeroen van der Laak, Geert Litjens
7/28/2026
cs.CVcs.AI

No official code found. Best implementation: clemsgrs/croma (0 stars, Apache-2.0, last commit 2026-07-28).

Abstract

Pathology foundation models are approaching clinical deployment, yet remain vulnerable to systematic non-biological variation across centres. Differences in tissue preparation, staining and scanning are strongly encoded in their representations, enabling shortcut learning and weakening generalisation across cohorts and institutions. The Robustness Index (RI) quantifies whether local representation geometry is dominated by biology or by non-biological variation, but its count-based formulation discards distance information. We show that adding distance weights changes little because the deeper limitation lies in RI's pooled, fixed-neighbourhood design, which obscures sample-level heterogeneity and effectively evaluates only a model-dependent subset of samples. We introduce the Cross-confounder Robustness Margin (CRoMa), a sample-resolved measure that directly compares distances to cross-confounder biological matches and same-confounder biological distractors. CRoMa recasts robustness as a cohort-wide margin distribution rather than a single pooled score. We evaluated frozen representations from 20 tile-level encoders across three benchmarks and 4 slide-level encoders on a fourth. Rankings by median CRoMa were broadly consistent across datasets, while the underlying distributions revealed substantial within-model heterogeneity. Every tile encoder retained a confounder-dominated lower tail, whose prevalence and severity varied markedly across models. These distinct robustness profiles frame model selection as a Pareto trade-off between typical and lower-tail robustness. Higher CRoMa was also associated with smaller shortcut-induced performance drops after supervised adaptation. By turning representation geometry into a distributional robustness readout that anticipates downstream shortcut susceptibility, CRoMa provides a principled basis for robustness assessment and model selection.

View on arXivView PDF

Code Implementations(1)

clemsgrs/cromaCommunity70%
Apache-2.0

Beyond counts: a cross-confounder robustness margin for pathology foundation models

00Feb 21, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{grisi2026beyond,
  title  = {Beyond Counts: A Distributional Robustness Margin For Pathology Foundation Models},
  author = {Clément Grisi and Jeroen van der Laak and Geert Litjens},
  year   = {2026},
  eprint = {2607.25497},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.25497v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.25497.svg)](https://codeofpaper.com/paper/2607.25497)

Discussion