cs.CVJul 28, 2026

A Distributional Robustness Margin For Pathology Foundation Models

Authors: Clément GrisiJeroen van der LaakGeert Litjens

Organizations: Department of Pathology, Radboud University Medical Center, Nijmegen, The Netherlands

Abstract

Pathology foundation models encode non-biological variation introduced by tissue preparation, staining and scanning, enabling shortcut learning that undermines generalisation across institutions. The Robustness Index (RI} was proposed to assess whether local representation geometry is dominated by biological or non-biological variation. However, its construction suffers from structural limitations that make cross-model comparison unreliable and call for a more principled metric. We introduce the Cross-confounder Robustness Margin (CRoMa), which measures, for each sample, whether biologically matched samples differing in the confounder lie closer in representation space than confounder-matched samples differing in biology. By design, CRoMa recasts robustness as a cohort-wide distribution of sample-level margins. We evaluated frozen representations from 20 tile-level encoders across three benchmarks and 4 slide-level encoders on a fourth. Median CRoMa rankings were broadly consistent across cohorts, yet all encoders contained confounder-dominated subsets whose prevalence and severity varied substantially across models and cohorts. Higher CRoMa margins were associated with smaller shortcut-induced performance drops after supervised adaptation, indicating that CRoMa can be a valuable tool for assessing model robustness on downstream tasks.

Explore similar work

CardsList
  1. Robustifying pathology foundation models via fine-tuning

    Jul 24, 2026Alexandre Filiot, Oskar Thaeter, Benoit Schmauch +1Pathology Foundation Models