Reading the PathoROB robustness index with fixed measurements: a no-signal level, a colour reference, and what 48 named numbers explain in a foundation model's hospital signal

Parallax Pathology · Technical note

Short technical note and public artifact

Russell Parrish · analysis carried out with AI assistants · Version 3, 11 November 2026

Abstract. PathoROB compares how closely a representation follows tissue class and medical centre. On three published cohorts, a 42-dimensional Gaussian control scored 0.500, 0.499 and 0.300 under its Robustness Index (RI). Six RGB statistics scored below every Gaussian seed in each cohort under RI, distance-weighted MaRI and CRoMa. Margins exposed differences in severity: on Tolkach, RGB had fewer nonpositive margins than Gaussian features but a much deeper lower tail (−0.922 versus −0.086). The second part of the study used fixed measurements to examine the representation of one foundation model. On Camelyon, 48 colour and structural measurements linearly explained 31% of Phikon-v2 feature variance. Removing the fitted component moved RI from 0.019 to 0.494 on the scored tiles. The gain was smaller when fitted on other hospitals and did not transfer across datasets. The matched-control comparison and these model-specific fits answer separate questions.

Read the matched metric comparison · GitHub release v3.0.0 · Download the public control example

1. Question

PathoROB asks whether a foundation model's representation is organised by biology or by medical centre. Its Robustness Index (RI) compares, among each tile's nearest neighbours, those with the same tissue class from another centre against those with another tissue class from the same centre [1]. The published leaderboard lists 26 models.

The study began with one question, written down before any tile was measured: where does a fixed, training-free instrument sit on this index? The answer led to three further questions, each taken in turn:

2. Setup

ItemValue
BenchmarkPathoROB repository at commit d81a04b, its own robustness_index entry point, default arguments. No benchmark code was edited.
Neighbours (default k)TCGA 61 (paired 2 × 2 design), Camelyon 11, Tolkach 46.
DataThe benchmark’s source inventory of 256 × 256-pixel tiles: Camelyon 22,402 [4], TCGA 60,690 [5], Tolkach oesophageal 16,300 [6]. 99,392 tiles; 5, 26 and 4 medical centres.
Random features42 independent Gaussian columns per tile, three seeds.
ColourMean and standard deviation of R, G and B per tile (6 numbers).
Fixed instrumentparallax-core42 v1.0.0 [2]: 42 named measurements per tile from fixed formulas, no training. Measured on the raw tile, and again with its bundled fixed-target Macenko normaliser.
Foundation modelPhikon-v2 [3], extracted with the benchmark's own wrapper and extractor. Chosen because its weights are open and because its hospital pull on Camelyon matches the colour reference (section 3.3).
ScalingColour and fixed-instrument columns were standardised within each dataset over its full tile inventory. Gaussian draws entered without column standardisation. The scorers applied their own L2 row normalisation.
Checks on our pipelineThe results shipped in the repository for UNI2-h and Phikon-v2 equal the leaderboard values. Our own Phikon-v2 extraction reproduces its shipped index within 0.0002 on each dataset (0.6188, 0.0189, 0.7682).

The instrument returned a valid status on every tile. Eight of its values were undefined (seven in Tolkach, one in Camelyon) and were set to the dataset mean, as planned.

3. Reference rows

3.1 The index for features with no signal

TCGACamelyonTolkachAverage
Random features, RI (mean of 3 seeds)0.5000.4990.3000.433
Published models below that level0 of 2611 of 260 of 26
Published range0.511 to 0.8790.011 to 0.9400.693 to 0.965

The no-signal level is not the same number on each dataset. The index compares counts of two kinds of neighbour, and how often each kind occurs for unrelated tiles depends on the dataset's mix of classes and centres. A score of 0.60 therefore sits 0.10 above no signal on TCGA and 0.30 above it on Tolkach, and an average over the three datasets mixes those scales.

On Camelyon, the 11 models below the random-feature level are MUSK, Prov-GigaPath, RETCCL, RudolfV, Kaiko ViT-B/8, UNI, Ciga, CTransPath, Kang-DINO, Phikon-v2 and Phikon (0.467 down to 0.011). For these, neighbours follow the hospital more than they would for unrelated tiles.

Robustness Index of 26 published models on three datasets with the random-feature level and two fixed references
Figure 1. Grey: the 26 published leaderboard rows. Dashed line: random features. Blue circle: the fixed 42-axis instrument. Rust square: six colour numbers.

3.2 Colour as a reference

TCGACamelyonTolkachAverage
Colour only, RI0.4630.0090.2370.236
Colour only, kNN tissue balanced accuracy0.6600.7940.542

Six colour numbers score below every published model on Camelyon (0.009 against a lowest published value of 0.011), and below the random-feature level on all three datasets. They are not uninformative: their tissue balanced accuracy is well above the random-feature values in section 3.4. On Camelyon, colour separates tissue and separates hospitals, and the hospitals dominate the neighbourhoods.

3.3 A view relative to no signal

Two quantities read against the random-feature run on the same dataset:

Tissue signal / hospital pullTCGACamelyonTolkach
Fixed instrument0.48 / −0.030.68 / 0.030.57 / −0.23
Fixed instrument + its normaliser0.44 / −0.030.69 / 0.010.56 / −0.30
Colour only0.41 / 0.040.60 / 0.490.47 / 0.06
UNI2-h (shipped result)0.90 / −0.300.97 / −0.050.97 / −0.62
Phikon-v2 (shipped result)0.86 / −0.120.91 / 0.480.95 / −0.47

On Camelyon, Phikon-v2 and RGB had similar differences from the Gaussian RI reference (about 0.48 and 0.49), while their chance-adjusted tissue balanced accuracies differed (0.91 and 0.60). Comparable RI can coexist with different tissue discrimination.

Tissue signal beyond chance against hospital pull beyond chance for five representations on three datasets
Figure 2. Each representation placed by tissue signal (right is better) and hospital pull (down is better), both relative to random features on the same dataset. "core42" is the fixed instrument; its normalised variant is in the table only.

3.4 The fixed instrument

TCGACamelyonTolkachAverageRank if added (of 27)
Fixed instrument, RI0.5270.4710.5340.51023
With its fixed-Macenko normaliser, RI0.5310.4920.5980.54022
Published models below the instrument1 of 2611 of 260 of 264 of 26
kNN tissue balanced accuracyTCGACamelyonTolkach
Fixed instrument0.6990.8360.626
Colour only0.6600.7940.542
Random features0.4190.4830.138
UNI2-h (shipped result)0.9420.9850.976
Phikon-v2 (shipped result)0.9200.9540.959

The plan predicted that the instrument would sit low on average, plausibly below most foundation models, and that Camelyon was the dataset where it could land among them. Both held: rank 23 of 27 on average, above 11 of 26 models on Camelyon. The instrument is built to be sensitive to how a slide was handled, so a low index is its expected operating window on this benchmark. Its tissue signal is modest beside the foundation models'.

3.5 Predicting the hospital from fixed numbers

Logistic regression predicting the medical centre, five folds grouped by slide (by case for TCGA), all tiles. Accuracy / balanced accuracy / one-vs-rest AUC:

Fixed instrument (42)Colour (6)Both (48)Random (42)
TCGA, 26 centres0.33 / 0.15 / 0.790.34 / 0.15 / 0.800.45 / 0.27 / 0.870.15 / 0.04 / 0.50
Camelyon, 5 centres0.83 / 0.72 / 0.960.93 / 0.64 / 0.980.95 / 0.83 / 0.990.40 / 0.20 / 0.50
Tolkach, 4 centres0.62 / 0.59 / 0.840.81 / 0.81 / 0.940.87 / 0.87 / 0.980.30 / 0.25 / 0.50

Colour alone matches or exceeds the instrument alone on accuracy and AUC on every dataset. Adding the 42 measurements to colour raises balanced accuracy on all three (0.15 to 0.27, 0.64 to 0.83, 0.81 to 0.87). The benchmark paper reports that the centre can be predicted from foundation-model features with 88% to 98% mean accuracy [1]; its protocol may differ from this one.

3.6 What the lower tail adds

Can changing the metric reverse the colour result? We scored the same six RGB statistics and three Gaussian seeds under RI, margin-aware RI (MaRI) and the cross-confounder robustness margin (CRoMa) [10]. RGB scored below every seed under every metric in each cohort. The margins reveal how far apart the two kinds of neighbours were.

The two neighbour types are same tissue, other centre and other tissue, same centre. RI counts them within a fixed neighbourhood. MaRI gives more weight to closer neighbours, with a temperature set separately for each representation and cohort. CRoMa finds the five closest eligible neighbours of each type, compares their mean cosine distances and divides the difference by their sum. A negative margin means the same-centre group was closer. The share at or below zero measures frequency. The mean among margins at or below the 10th percentile measures severity at the adverse end of the distribution.

Matched public controls. Gaussian entries average three separately scored seeds. Fixed-k support is the share with at least one informative neighbour under RI and MaRI. CRoMa had full support in every run.
CohortControlRIMaRICRoMaCRoMa tail meanMargin ≤ 0Fixed-k support
TCGA 2×2Gaussian0.5000.500≈0−0.05950.0%100.00%
TCGA 2×2RGB0.4630.457−0.168−0.86855.3%98.58%
CamelyonGaussian0.4990.499≈0−0.05150.1%99.96%
CamelyonRGB0.0090.006−0.888−0.97997.1%63.41%
Tolkach ESCAGaussian0.3000.300−0.031−0.08684.6%100.00%
Tolkach ESCARGB0.2370.281−0.442−0.92273.6%98.33%
The Gaussian headline and lower-tail margins lie near zero. RGB has a much deeper lower tail in each cohort, including TCGA where its headline margin is only −0.168.
Figure 2a. The same controls viewed at the centre and lower end of the margin distribution. The TCGA headline is the median of 94 subset medians. Its lower tail pools all 112,800 subset occurrences. Camelyon and Tolkach each contribute one margin per evaluated tile.

TCGA illustrates what a pooled score can hide. Colour RI was 0.463 against a Gaussian reference of 0.500. The colour headline margin was −0.168 and its lower-tail mean was −0.868, versus −0.059 for Gaussian. The colour tail contained 11,280 occurrences, representing 8,878 distinct tiles from 942 slides and all 94 pairings. All 11,280 already had fixed-k support. Here the deeper tail comes from measuring distance among covered observations. Repeated tiles count once per pairing in this calculation.

Camelyon distinguishes missing evidence from adverse evidence. For RGB, 12,935 of 20,400 tiles had fixed-k support. Fully 12,794 of those supported tiles had local RI equal to zero, so its tie-inclusive lower tail has mean zero and covers almost the entire supported set. CRoMa scored all 20,400. Among the 7,465 tiles without fixed-k evidence, 6,971 (93.4%) had nonpositive margins. Of the 2,040 tiles in the CRoMa lower tail, 2,033 already had fixed-k support. Extending coverage and resolving severity within the covered tiles are distinct contributions.

Tolkach separates frequency from severity. Gaussian produced more nonpositive margins than RGB (84.6% versus 73.6%). Its lower-tail mean was only −0.086, while RGB reached −0.922. Thus a count of which neighbour type wins and a measure of how far it wins can order the same controls differently.

Scope. This comparison scores 88,650 distinct tiles from the 99,392-tile feature inventory. It preserves TCGA's 94 paired 2×2 comparisons (59,250 distinct tiles), the two-centre Camelyon scoring manifest (20,400 tiles), and reduced three-centre Tolkach ESCA (9,000 tiles). All metrics exclude the query slide. Centre is an observational label that can capture tissue mix, staining, scanning and other differences. The three seeds describe simulation variation. They supply no patient-level uncertainty estimate. The margins in this section concern the two public controls only.

Medical interpretation. “Same tissue” means the same supplied benchmark label. Camelyon has tumour/normal labels, TCGA uses project-level cancer classes, and reduced Tolkach uses six tissue annotations. A nonpositive margin includes exact ties. It describes distances between labelled representations and gives neither a misclassification count nor a probability of patient harm. No patient outcomes or diagnostic decisions entered the control analysis. Three simulation seeds and repeated tile occurrences do not provide independent patient- or hospital-level replication.

The comparison plan fixed the three metrics before scoring. The tail-membership counts and coverage cross-tabulations above are descriptive second-pass checks. Across 12 runs the maximum RI difference between packages was 0.000009, attributable to near-tied neighbours at the cutoff. In an exhaustive check of 576 sampled occurrences the largest CRoMa margin discrepancy was 0.000023. The example includes the full-precision scores and the scripts to recover the local values. Download the reproducible example.

4. What fixed measurements explain in a foundation model

4.1 Design

The plan was written and hashed before any Phikon-v2 feature was extracted. Per dataset, every one of Phikon-v2's feature dimensions is regressed on a set Z of fixed measurements (ordinary least squares with intercept, Z standardised, all tiles of that dataset, no labels of any kind). The residual is kept and scored by the benchmark, unchanged. The sets:

Criterion, fixed in advance. A removal works on a dataset if its RI gain exceeds the best random-column gain by at least 0.05 and tissue balanced accuracy stays within 0.02 of the unmodified model. Prediction. Removing colour raises the Camelyon index. No direction was claimed for the instrument beyond colour.

4.2 Explained variance

Share of Phikon-v2 feature variance linearly predicted by the instrument, colour, both, and random columns on three datasets
Figure 3. Share of Phikon-v2's feature variance (standardised dimensions) that each set predicts linearly, fitted on all tiles of the dataset. "core42" is the fixed instrument.

Forty-eight named numbers predict 12.7%, 30.9% and 27.5% of the model's feature variance on TCGA, Camelyon and Tolkach. Random columns predict 0.1% to 0.3%. The instrument alone predicts more than colour alone on every dataset (25.1% against 20.5% on Camelyon).

4.3 Removal

Phikon-v2 Robustness Index after removing what each set predicts, on three datasets
Figure 4. Phikon-v2's index after removing the part each set predicts. F0 is the unmodified model. Fitted on all tiles of each dataset.
Removed (RI / tissue bal. acc. / centre AUC)TCGACamelyonTolkachAvg RIRank
Nothing (Phikon-v2)0.619 / 0.920 / 0.9800.019 / 0.954 / 1.0000.768 / 0.959 / 0.9980.46926
Instrument (42)0.642 / 0.921 / 0.9770.361 / 0.946 / 0.6460.764 / 0.939 / 0.8630.58921
Colour (6)0.673 / 0.926 / 0.9750.411 / 0.952 / 0.8650.826 / 0.948 / 0.9030.63717
Both (48)0.678 / 0.921 / 0.9690.494 / 0.950 / 0.9020.828 / 0.941 / 0.6690.66716
Five "breaks" axes0.630 / 0.925 / 0.9800.045 / 0.955 / 1.0000.786 / 0.952 / 0.9790.48724
Leave-dataset-out axes (11 / 3 / 20)0.648 / 0.926 / 0.9780.083 / 0.955 / 0.9120.778 / 0.948 / 0.9380.50323
Random columns (range of 3)0.6140.024 to 0.0250.770 to 0.7710.469 to 0.47025

Rank places each average against the 26 published rows, which include Phikon-v2 itself. Centre AUC is the benchmark's own linear hospital-prediction score; it reflects folds below 0.5, so noise scores above 0.5.

Criterion met? (RI gain)TCGACamelyonTolkach
Instrumentno (+0.023)yes (+0.342)no (−0.004)
Colouryes (+0.055)yes (+0.392)yes (+0.057)
Bothyes (+0.059)yes (+0.476)yes (+0.060)
Five "breaks" axesno (+0.012)no (+0.026)no (+0.018)
Leave-dataset-out axesno (+0.029)yes (+0.065)no (+0.010)

Best random-column gain: −0.005, +0.006 and +0.003.

5. How does the result change when the fit uses other centres or datasets?

Section 4 fitted the removal on the same tiles it was scored on, as ComBat is fitted. Two checks were planned and hashed before they ran.

5.1 A design that failed its own null

The first held-out design fitted a separate removal for each hospital from the other hospitals. Removing 42 random columns this way lowered Phikon-v2's index (Tolkach 0.768 to 0.589, Camelyon 0.019 to 0.000). The design itself injects hospital structure: each hospital is shifted by a fit that excludes it, so hospitals are shifted by different amounts. Those numbers are kept and not interpreted. The redesign below was written and hashed after this fault was found and before it ran, and is declared as post hoc.

5.2 One fit, applied to every tile

Phikon-v2 Robustness Index under in-sample removal, half-hospital fits, other-dataset fits, and ComBat
Figure 5. Filled markers: fits that saw every scored tile (the removal of section 4, labelled "move 3", and ComBat). Hollow markers: fits that did not see all scored hospitals, or that combine both.
Fit (RI / tissue bal. acc.)TCGACamelyonTolkachAvg RI
Nothing removed0.619 / 0.9200.019 / 0.9540.768 / 0.9590.469
Both, fitted on all tiles (section 4)0.678 / 0.9210.494 / 0.9500.828 / 0.9410.667
Other datasets: instrument0.612 / 0.9200.031 / 0.9520.788 / 0.9560.477
Other datasets: colour0.599 / 0.9200.019 / 0.9500.789 / 0.9560.469
Other datasets: both0.608 / 0.9190.021 / 0.9510.784 / 0.9560.471
Half the hospitals: instrument0.629 / 0.9200.269 / 0.9490.702 / 0.9400.533
Half the hospitals: colour0.648 / 0.9240.163 / 0.9510.727 / 0.9480.513
Half the hospitals: both0.645 / 0.9190.249 / 0.9460.667 / 0.9340.521
Half the hospitals: random columns0.6170.065 to 0.0660.777 to 0.7780.486 to 0.487

5.3 Matched ComBat

We ran pycombat (inmoose 0.8.1) with medical centre as the batch, no biological covariates and all source tiles for fitting. For Phikon-v2 the publisher reports ComBat RI of 0.762 on TCGA paired 2×2, 0.446 on Camelyon and 0.923 on Tolkach. Our estimates were 0.755, 0.424 and 0.922, respectively. These are close numerical comparisons across implementations. Published Supplementary Tables 6–8, pages 13–15.

RITCGACamelyonTolkachAverage
ComBat on Phikon-v2 (uses hospital labels)0.7550.4240.9220.700
Removal of section 4, both sets (no labels)0.6780.4940.8280.667
Removal, then ComBat0.7640.5220.8830.723

On Camelyon the label-free removal is above ComBat (0.494 against 0.424); on TCGA and Tolkach ComBat is higher. Applying the removal before ComBat adds 0.098 on Camelyon and 0.009 on TCGA, and costs 0.039 on Tolkach. Both methods here are fitted on the scored tiles. The benchmark paper reports that ComBat did not consistently help downstream models [1]; downstream training is outside this note.

6. Which named axes follow the hospital

For each of the 42 axes, the share of between-group variance that follows the medical centre and not the tissue class was computed per dataset and averaged. This is a one-way variance share per axis, not the neighbour index, and centre and class are not fully balanced in every dataset.

Bar chart of 42 instrument axes sorted by the share of between-group variance that follows the hospital
Figure 6. The 42 axes sorted by hospital share, averaged over the three datasets. Colours mark the axes that broke (rust) or held (blue) in a separate per-field map between two colorectal laboratories [8].

7. Reading

8. Limitations

Data and code availability

The runnable example contains the Gaussian and colour controls, pinned public input manifests and checksums, native and matched-metric reference scores, and verification and plotting scripts for section 3.6. It requires the two upstream repositories and public tiles. The ZIP SHA-256 is 61e9fbe8f655175609a377a929adcba1c96f3a18c9cafa1409441dd415eff4a6. Public control example and run instructions.

The wider study used the benchmark code and datasets [1], the released fixed instrument [2] and Phikon-v2 [3]. The foundation-model and fixed-instrument analyses are recorded separately from the example. The TCGA tile subset used by PathoROB carries the CC BY-NC-SA 4.0 licence.

References

  1. Kömen J, de Jong ED, Hense J, Marienwald H, Dippel J, Naumann P, Marcus E, Ruff L, Alber M, Teuwen J, Klauschen F, Müller K-R. Towards robust foundation models for digital pathology. Nature Communications 2026;17:5218. doi:10.1038/s41467-026-73923-2. Preprint: arXiv:2507.17845. Code and leaderboard: https://github.com/bifold-pathomics/PathoROB (commit d81a04b).
  2. Parrish R. parallax-core42 v1.0.0: a fixed 42-axis H&E measurement instrument. https://github.com/parallaxmetrology/parallax-core42
  3. Filiot A, Jacob P, Mac Kain A, Saillard C. Phikon-v2, a large and public feature extractor for biomarker prediction. arXiv:2409.09173, 2024.
  4. Bándi P, et al. From detection of individual metastases to classification of lymph node status at the patient level: the CAMELYON17 challenge. IEEE Transactions on Medical Imaging 2019;38(2):550–560. doi:10.1109/TMI.2018.2867350
  5. Komura D, et al. Universal encoding of pan-cancer histology by deep texture representations. Cell Reports 2022;38(9):110424. doi:10.1016/j.celrep.2022.110424
  6. Tolkach Y, et al. Artificial intelligence for tumour tissue detection and histological regression grading in oesophageal adenocarcinomas: a retrospective algorithm development and validation study. The Lancet Digital Health 2023;5(5):e265–e275.
  7. Johnson WE, Li C, Rabinovic A. Adjusting batch effects in microarray expression data using empirical Bayes methods. Biostatistics 2007;8(1):118–127.
  8. Parrish R. Which fixed H&E measurements survive a change of laboratory. Technical note, 2026. https://www.parallaxmetrology.com/Field_Transport_NOTE.html
  9. Parrish R. Two pre-registered transport tests of fixed structural H&E measurements. Technical note, 2026. https://www.parallaxmetrology.com/Transport_Tests_NOTE.html
  10. Grisi C, van der Laak J, Litjens G. A distributional robustness margin for pathology foundation models. arXiv:2607.25497, 2026. Preprint · Scorer at the tested revision.