WorksEngineering
With foundation-model features, aggregator complexity does not improve cross-hospital discrimination in gastric whole-slide image classification
Abstract
Whole-slide image classifiers are usually developed within one hospital and often go untested at unseen hospitals. We assembled 5,036 haematoxylin-and-eosin-stained gastric slides from five Korean hospitals, scanned at 20x and 40x, and compared multiple-instance learning aggregators under leave-one-hospital-out validation on frozen pathology foundation-model features. A hierarchical patch-region-slide graph aggregator (CHIME-MIL) with site alignment and two-scale fusion reached a mean area under the receiver operating characteristic curve (AUC) of 0.837, above six conventional attention and transformer aggregators trained without these steps. Under a matched recipe it did not exceed attention-based pooling, and global max pooling given the same alignment and fusion was better (AUC 0.855, P = 0.0002). The alignment, which subtracts each hospital's mean feature vector without labels, onboarded a new hospital from ten unlabelled slides and cost 0.002 AUC without held-out-hospital data, but its accuracy gains were small and inconsistent. The model had low top-label calibration error (0.053) but under-confident malignancy probabilities, and removing its most-attended patches lowered the malignancy probability far more than removing random patches. With these features, more complex aggregators did not improve discrimination; what a deployable system adds is label-free onboarding, calibration checks and auditable evidence.
Abstract
Introduction
Histopathological examination of haematoxylin and eosin (H&E)-stained whole slide images (WSIs) is the diagnostic gold standard in oncology, but manual review is time-consuming, subject to inter-observer variability, and strained by rising case volumes. Computational pathology can automate slide-level classification at clinical scale, with deep models matching pathologist-level performance under controlled conditions [1]. Because WSIs exceed pixels, the standard pipeline tiles each slide, extracts per-patch embeddings, and aggregates them into a slide-level representation. Multiple instance learning (MIL) is the dominant weakly supervised paradigm, treating each slide as a bag of patches with a single slide-level label. Attention-based MIL (ABMIL) [2] and CLAM [3] are the canonical aggregators, extended by transformer [4, 5, 6, 7], dual-stream [8] and pseudo-bag distillation [9] variants, by graph models that encode tissue architecture [10, 11], and, for gastric cancer, by recalibrated and hybrid convolutional neural network (CNN)–transformer models [12, 13] and by multiple-bag MIL with foundation-model tumour detection for Epstein–Barr virus status prediction in multicentre biopsies [14]. ACMIL [15] combines multi-branch attention with stochastic top-instance masking and a diversity penalty. In parallel, self-supervised and foundation-model pretraining has sharply improved the patch embeddings themselves, from hierarchical pretraining [16] to general-purpose models such as UNI [17], Virchow [18] and GenBio-PathFM [19], and recent multi-centre work indicates that frozen foundation-model features, not aggregator design, increasingly determine downstream MIL accuracy [20].
The barrier to clinical deployment is cross-hospital distribution shift. Staining, fixation, tissue processing and scanner hardware shift patch-feature distributions even for the same tissue type [21], so models trained at one site degrade on slides from a new hospital, especially when and scanners coexist. Training-time remedies include stain normalisation and augmentation [22, 23] and domain-adversarial training [24, 25, 26], but they need the multi-site variation, and often domain labels, during training and couple robustness to a trainable backbone, so onboarding a new scanner means retraining. Pixel-level stain normalisation [27, 28, 29] requires re-extracting features for every site, whereas feature-level alignment such as correlation alignment (CORAL) [30] and contrastive domain adaptation [31] adapt the learned representation instead. Two further gaps limit trust. Attention maps and gradient attributions [32] are usually judged for plausibility rather than for whether the highlighted regions actually drive the decision, and calibrated uncertainty is increasingly regarded as a prerequisite for clinical AI [33]. Most MIL systems are also developed and validated within a single institution, leaving their cross-hospital behaviour uncharacterised.
Here we measure where MIL accuracy comes from under cross-hospital shift, and what a system must expose to be deployed across hospitals. We assembled a five-hospital leave-one-site-out (LOSO) benchmark of 5,036 H&E-stained gastric slides from five Korean tertiary centres scanned at and , and evaluated a hierarchical patch–region–slide graph aggregator (CHIME-MIL) against eight published aggregators and global max pooling on frozen UNI and GenBio-PathFM embeddings [17, 19]. We tested a label-free, first-moment alignment that subtracts each hospital’s mean embedding at inference using only the scanner identifier, including a strict variant that uses no held-out-hospital information and an onboarding curve for new hospitals, and we tested calibration and the faithfulness of the attention maps. The central finding is a negative one for architecture: with strong foundation-model features, the hierarchical aggregator does not exceed attention-based pooling under a matched training recipe, and global max pooling given the same recipe is significantly better (), so the value of an aggregator lies in label-free onboarding, calibration checks and auditable evidence rather than in accuracy.
Results
Study design
The benchmark comprises 5,036 H&E-stained gastric WSIs from five Korean tertiary hospitals (Sites A–E; Table 1), scanned at or . Every model was evaluated by leave-one-site-out (LOSO) cross-validation, in which each hospital in turn is held out for testing and never used for training or model selection. Figure 1 summarises the pipeline. Frozen GenBio-PathFM patch embeddings are aligned by subtracting a per-site mean vector, processed by a three-level hierarchical encoder (patch, region, slide graph), and the predictions of two models trained at 256 and 392 px are averaged (Methods).
| Site | Mag. | MPP | M | N | Total | Stain |
| Site A | 20× | 0.50 | 811 | 1,825 | 2,636 | H&E |
| Site B | 40× | 0.25† | 344 | 839 | 1,183 | H&E |
| Site C | 20× | 0.50 | 125 | 209 | 334 | H&E |
| Site D | 20× | 0.50 | 337 | 348 | 685 | H&E |
| Site E | 40× | 0.25 | 57 | 141 | 198 | H&E |
| Total | 1,674 | 3,362 | 5,036 |
Table 1. Per-hospital composition of the five-site dataset. Each hospital forms one held-out fold in the LOSO evaluation. Mag. = scanner objective; MPP = native microns-per-pixel (openslide.mpp-x), used for resolution normalisation; M = malignant; N = normal. †Site B raw slides are archived off-site; the MPP is the 40× scanner-class nominal, consistent with the measured Site E value.

Figure 1. Overview of the CHIME-MIL pipeline. (1) Input WSIs are tiled at 20×, encoded by the frozen GenBio-PathFM encoder, and site-conditionally mean-centred. (2) The hierarchical model processes patches through three parallel branches: (A) gated ABMIL for patch-level importance, (B) a 4×4 grid aggregator for region-level features, and (C) a spatial graph attention network (GAT) with a gated recurrent unit (GRU) update for graph-level reasoning, combined by adaptive gated fusion (D); two models trained at 256 and 392 px are ensembled by equal-weight averaging (E). (3) The fused embedding is classified as malignant (, positive class) or normal (). (4) Training uses a multi-task focal loss () at each level plus a counterfactual region ablation hinge loss.
Aggregator complexity does not improve discrimination
Table 2 reports five-fold LOSO performance. On the UNI track, ABMIL is the strongest attention-MIL baseline (0.8199). The headline model, CHIME-MIL with GenBio-PathFM features and multi-scale fusion, reaches an area under the receiver operating characteristic curve (AUC) of 0.8374 (±0.0041 over three seeds; deterministic seed-42 reference 0.8434). Against the six conventional GenBio baselines, the paired bootstrap (Methods) favours the headline on five-fold-mean AUC for all six (ΔAUC +0.0100 to +0.0301, Benjamini–Hochberg-adjusted ≤0.018; ABMIL +0.0102, =0.014). On the pre-specified pooled-LOSO AUC it exceeds five of them (+0.0075 to +0.0363, ≤0.032) but not ABMIL (−0.0024, =0.44); the pooled estimate is dominated by Site A (52% of slides) and also depends on how comparable the score scales are across sites. Against the foundation-model-ceiling probes the direction reverses. MaxPool at 256 and 392 px and ACMIL all exceed the headline on pooled AUC (ΔAUC −0.0176, −0.0153, −0.0093; <0.001, 0.0003, 0.0042), and are numerically higher but not significantly different on fold-mean AUC (−0.0055, −0.0087, −0.0012; =0.36, 0.11, 0.77).
These comparisons set the full headline recipe (site alignment, hospital-stratified validation and two-scale fusion) against single-scale, unaligned baselines, so they compare recipes rather than aggregators. Under a matched recipe at 256 px the hierarchical aggregator does not exceed ABMIL: without alignment the two reach 0.8204 and 0.8272 (ΔAUC=−0.0068, 95% confidence interval (CI) −0.0155 to +0.0019, =0.12; pooled −0.0068, =0.026), and with mean-centring 0.8274 and 0.8358 (−0.0084, −0.0175 to +0.0010, =0.078; pooled +0.0045, =0.19). Given the same mean-centring and 256+392 px fusion as the headline, global max pooling reaches 0.8552 and exceeds the three-seed headline significantly (−0.0178, 95% CI −0.0261 to −0.0092, =0.0002; pooled −0.0262, <0.0002), although it lacks stratified validation (Table 3). The choice of aggregator does matter, but in favour of simplicity: with every baseline under the same single-scale, unaligned recipe, max pooling at 256 px exceeds ABMIL (+0.0157), DSMIL (+0.0264), RoFormer (+0.0305) and TransMIL (+0.0356) on five-fold-mean AUC (≤0.0004 for each, also after Benjamini–Hochberg correction across the four tests; pooled AUC +0.015 to +0.054, all <0.0002). We therefore claim no discrimination advantage for the hierarchical architecture: with strong patch features, hierarchical complexity does not improve AUC over simpler aggregators on this binary task.
three-seed mean over (0.8374 0.0041 across seeds; the 0.028 shown is the across-site std, as in every row), using the label-free all-slides (“leaky” only in the unsupervised test-time sense; no labels enter it). A strict-LOSO variant that estimates from training sites only costs (Supplementary Table S4). The deterministic seed-42 reference run reproduced by the released code reaches 0.8434. Baseline GenBio rows are single-scale, without first-moment alignment or hospital-stratified validation, so these tests compare the full headline recipe with each baseline’s recipe; alignment is evaluated in Table 3 and recipe-matched comparisons are given in the Results. MC = site mean-centring (first-moment alignment). Bold = best per column.
| Method | AUC | ACC | BalAcc | fold-mean / pooled |
| Baselines (UNI features, 1,024-d) | ||||
| ABMIL [2] | 0.8199 0.040 | 0.7546 | – | – |
| CLAM-SB [3] | 0.8124 0.036 | 0.6744 | – | – |
| CLAM-MB [3] | 0.8164 0.049 | 0.7339 | – | – |
| TransMIL [4] | 0.8095 0.046 | 0.7202 | 0.7214 | – |
| DSMIL [8] | 0.7657 0.040 | 0.6432 | 0.6830 | – |
| DTFD-MIL [9] | 0.8158 0.035 | 0.7181 | 0.7351 | – |
| Baselines (GenBio-PathFM features, 4,608-d) | ||||
| ABMIL [2] | 0.8272 0.032 | 0.7504 | 0.7583 | 0.014 / 0.44 |
| CLAM-SB [3] | 0.8208 0.033 | 0.7553 | 0.7561 | 0.0006 / 0.015 |
| CLAM-MB [3] | 0.8274 0.025 | 0.7544 | 0.7528 | 0.018 / 0.032 |
| TransMIL [4] | 0.8073 0.046 | 0.7440 | 0.7541 | < 0.001 / < 0.001 |
| DSMIL [8] | 0.8165 0.037 | 0.7597 | 0.7477 | < 0.001 / < 0.001 |
| RoFormer [5] | 0.8125 0.031 | 0.7357 | 0.7497 | < 0.001 / < 0.001 |
| ACMIL [15] | 0.8386 0.020 | 0.7602 | 0.7627 | 0.77 / 0.0042 |
| ACMIL + MC [15] | 0.8370 0.025 | 0.7336 | 0.7496 | – |
| MaxPool (256 px) | 0.8429 0.024 | 0.7549 | 0.7459 | 0.36 / < 0.001 |
| MaxPool (392 px) | 0.8461 0.029 | 0.7680 | 0.7613 | 0.11 / 0.0003 |
| CHIME-MIL (ours): UNI comparison track | ||||
| CHIME-MIL (single model) | 0.8257 | 0.7467 | – | – |
| CHIME-MIL (Top-4 ensemble) | 0.8346 0.039 | 0.7697 | 0.7554 | – |
| CHIME-MIL (ours): GenBio headline | ||||
| CHIME-MIL (mc, 256 + 392 px) | 0.8374 0.028‡ | 0.7729 0.036 | 0.7683 0.032 | – |
Table 3.
Table 3. Ablation study. All CHIME-MIL rows use GenBio-PathFM features (4,608-d) with the spatial-grid region aggregator, except the first two rows which use UNI (1,024-d) as the comparison reference. MC = first-moment site alignment; SV = hospital-stratified validation split; MS = multi-scale late fusion (256+392 px). The counterfactual region ablation loss is active () in every row except the explicitly marked “no CRA” row, which sets under an otherwise identical base configuration, isolating the loss as a controlled A/B against the base row. Mean AUC std over five LOSO folds. CHIME-MIL GenBio rows (base, +MC, +MC+SV, full, MC+SV @ 256+392) are the deterministic seed-42 reference run (fixed val split, CUBLAS_WORKSPACE_CONFIG, PYTHONHASHSEED=42) that the released code reproduces exactly, used here for reproducible component attribution (it removes run-to-run GPU non-determinism, not seed variance; paired bootstrap tests for each step are given in the text); the headline performance reported in Table 2 is the three-seed mean 0.8374 0.0041 (seeds 42, 123 and 7 give 0.8332, 0.8377 and 0.8414); the deterministic reference run (0.8434) is a separate re-execution. Rows marked ‡ (no CRA, MC only @ 256+392, and the MaxPool control block) are from the earlier runs and are shown for reference. The MaxPool + MC @ 256+392 row is the equal-weight probability average of the two MaxPool+MC rows above it, i.e. the same late-fusion rule as the headline, and is the recipe-matched comparison taken up in the Discussion (balanced accuracy 0.7756; AUC above the three-seed headline, , paired bootstrap). MaxPool and ABMIL rows use a label-stratified random validation split (SV does not apply).
Table 2. Table 2. Five-fold LOSO comparison. The AUC column is the five-fold mean (mean ± std over held-out sites). : paired slide-level bootstrap (=10,000, seed 42, two-sided) of the CHIME-MIL headline against each GenBio-PathFM baseline, with the headline statistic taken as the mean over its three training seeds, so that the test concerns the tabulated headline. The first value tests the tabulated five-fold-mean AUC (slides resampled within each held-out site); the second tests the pre-specified pooled-LOSO AUC (=5,036; headline pooled AUC 0.8143). values are Benjamini–Hochberg-adjusted within the two pre-specified families (see the Evaluation protocol and statistics subsection of the Methods): the six conventional baselines, and the three foundation-model-ceiling probes (ACMIL, MaxPool 256/392 px). < 0.001 means no bootstrap replicate crossed zero. Signed differences are given in the Aggregator complexity does not improve discrimination subsection of the Results. UNI-track significance is not asserted (per-slide predictions not retained). ‡ The headline AUC is the
| Configuration | Feat. | MC | SV | MS | AUC |
| ABMIL (reference) | UNI | – | – | – | 0.8199 0.040 |
| CHIME-MIL, no alignment | UNI | 0.8257 | |||
| Configuration | Feat. | MC | SV | MS | AUC |
| CHIME-MIL, no alignment | GenBio | ✗ | ✓ | ✗ | |
| no CRA () | GenBio | ✗ | ✓ | ✗ | † |
| + MC | GenBio | ✓ | ✗ | ✗ | |
| + MC + SV | GenBio | ✓ | ✓ | ✗ | |
| + MC + SV + MS (full) | GenBio | ✓ | ✓ | ✓ | |
| Multi-scale fusion cross comparison | |||||
| MC only @ (256+392) | GenBio | ✓ | ✗ | ✓ | † |
| MC + SV @ (256+392) | GenBio | ✓ | ✓ | ✓ | $0.8434 |
| MaxPool control: MC on a non-hierarchical aggregator | |||||
| MaxPool 256 px | GenBio | ✗ | — | ✗ | † |
| MC | GenBio | ✓ | — | ✗ | † |
| MaxPool 392 px | GenBio | ✗ | — | ✗ | † |
| MC | GenBio | ✓ | — | ✗ | † |
| MC @ (256+392) | GenBio | ✓ | — | ✓ | † |
| ABMIL control: MC on a gated-attention aggregator | |||||
| ABMIL 256 px | GenBio | ✗ | — | ✗ | |
| MC | GenBio | ✓ | — | ✗ | |
| ABMIL 392 px | GenBio | ✗ | — | ✗ | |
| MC | GenBio | ✓ | — | ✗ |
Table 5.
Per-site performance
Table 4 breaks AUC down by hospital. Site C shows the largest alignment gain: mean-centring alone raises its AUC from 0.7835 to 0.8060 (+0.0225, 95% CI −0.0009 to +0.0471, =0.061; paired bootstrap within the site), in line with a feature-space diagnostic identifying Site C normal tissue as closest to the tumour cluster (Supplementary Note 2). Mean-centring raises AUC at four of the five sites and lowers it at Site E (0.8601 to 0.8503; Supplementary Table S2). Site A is the hardest site for almost every method despite its size (the exceptions, TransMIL on both feature tracks and DSMIL on GenBio-PathFM, do worse on Site C): in an audit of four earlier CHIME-MIL variants (with and without mean-centring), 555 of its slides (21.1% of Site A) were misclassified by all four at a 0.5 threshold, so much of the Site A error is shared across model variants rather than specific to one configuration. CHIME-MIL and ACMIL are the strongest per-site attention aggregators; they show no significant difference on fold-mean AUC (=0.77), while ACMIL is higher on pooled AUC (=−0.0093, =0.0042; Table 2).
| Method | Site A | Site B | Site C | Site D | Site E |
| Baselines (UNI features, 1,024-d) | |||||
| ABMIL | 0.766 | 0.845 | 0.797 | 0.811 | 0.880 |
| CLAM-SB | 0.769 | 0.850 | 0.785 | 0.799 | 0.859 |
| Method | Site A | Site B | Site C | Site D | Site E |
| CLAM-MB | 0.763 | 0.849 | 0.772 | 0.805 | 0.893 |
| TransMIL | 0.758 | 0.848 | 0.755 | 0.819 | 0.868 |
| DSMIL | 0.727 | 0.768 | 0.729 | 0.769 | 0.836 |
| DTFD-MIL | 0.769 | 0.838 | 0.790 | 0.814 | 0.868 |
| Baselines (GenBio-PathFM features, 4,608-d) | |||||
| ABMIL | 0.791 | 0.855 | 0.797 | 0.820 | 0.873 |
| CLAM-SB | 0.785 | 0.848 | 0.790 | 0.811 | 0.870 |
| CLAM-MB | 0.791 | 0.852 | 0.806 | 0.834 | 0.854 |
| TransMIL | 0.769 | 0.825 | 0.748 | 0.815 | 0.880 |
| DSMIL | 0.784 | 0.824 | 0.775 | 0.822 | 0.878 |
| RoFormer | 0.766 | 0.846 | 0.797 | 0.807 | 0.847 |
| ACMIL | 0.804 | 0.859 | 0.836 | 0.836 | 0.859 |
| MaxPool (256 px) | 0.807 | 0.862 | 0.823 | 0.853 | 0.870 |
| MaxPool (392 px) | 0.803 | 0.863 | 0.831 | 0.845 | 0.889 |
| CHIME-MIL (ours) | |||||
| CHIME-MIL (UNI, Top-4 ens.) | 0.785 | 0.855 | 0.816 | 0.829 | 0.888 |
| CHIME-MIL (GenBio, mc) | 0.793 | 0.870 | 0.835 | 0.840 | 0.878 |
Table 4. Table 4. Per-site AUC under LOSO evaluation. Each column is the AUC on one held-out hospital. CHIME-MIL (UNI) is the Top-4 ensemble; CHIME-MIL (GenBio) is the mc multi-scale (256+392 px) deterministic seed-42 reference run (its per-site values average to 0.8434; the three-seed headline mean is 0.8374, Table 2). Bold = best result per site across all methods.
Component ablation and alignment transfer
Table 3 traces each component (deterministic seed-42 run); each step is tested with the paired bootstrap on five-fold-mean AUC (Methods; 95% CI, unadjusted ). Multi-scale fusion is the only step with a statistically supported gain on CHIME-MIL: +0.0092 (95% CI +0.0038 to +0.0149, =0.001), reaching 0.8434, with positive per-fold gains everywhere (Supplementary Table S2). Mean-centring (MC) raises AUC from 0.8204 to 0.8274 (+0.0070, 95% CI −0.0015 to +0.0157, =0.10), concentrated at Site C, and hospital-stratified validation (SV) adds +0.0067 (−0.0034 to +0.0171, =0.20): both are positive but neither is significant on its own in a single seed. The counterfactual region ablation (CRA) loss does not help: at the headline configuration (MC+SV, 256 px) disabling it (=0) changes fold-mean AUC by +0.0058 (−0.0022 to +0.0137, =0.16) and raises pooled AUC by +0.0155 (<0.0002), with no loss of attention concentration (the earlier toggle without alignment in Table 3 gives +0.0009). We keep =0.3 only for specification fidelity and report it as a documented design choice (Supplementary Note 7). The accuracy effect of alignment on other aggregators depends on the statistic. On five-fold-mean AUC mean-centring lifts MaxPool (+0.0081, 95% CI +0.0019 to +0.0143, unadjusted =0.009) and ABMIL (+0.0086, +0.0003 to +0.0166, =0.044) at least as much as CHIME-MIL (+0.0070), but after Benjamini–Hochberg correction across the three transfer tests (MaxPool, ABMIL, ACMIL) only MaxPool remains significant (=0.026 and 0.065). On pooled AUC the gains disappear: MaxPool +0.0042 (=0.14), CHIME-MIL +0.0037 (=0.31), and ABMIL falls by 0.0077 (=0.048, =0.14). At 256 px MaxPool+MC (0.8510) exceeds CHIME-MIL+MC (0.8274). Alignment does not help ACMIL on either statistic (0.8386 → 0.8370, −0.0016, =0.70), and disabling ACMIL’s top-instance masking does not change this (−0.0012), so the non-transfer attaches to its diversity-regularised multi-branch attention (Supplementary Note 10).
First-moment alignment removes most of the hospital signal
Raw per-slide embeddings segregate by hospital, with the two 40× scanners (Sites B and E) clearly separated (Figure 2A). After mean-centring the hospital clusters dissolve (Figure 2B): a 15-nearest-neighbour hospital classifier (majority-class baseline 0.52) falls from 0.910 to 0.709 accuracy and the linear inter-site maximum mean discrepancy (MMD) from 35.96 to 0.54. Second-moment alternatives do not help (Supplementary Table S3): CORAL (0.8144) and per-site zero-phase component analysis (ZCA) whitening (0.8248) both trail mean-centring (0.8274) on CHIME-MIL, and similarly for ABMIL. Whitening strips more site structure (residual 15-NN 0.587 and 0.570) at cost yet yields no gain, so the residual covariance is site-identifying but task-irrelevant. A trivial per-slide centring is worse than no alignment (0.8173), so the site, not the slide, is the correct granularity.

Figure 2. Cross-hospital site shift in slide-embedding space. t-distributed stochastic neighbour embedding (t-SNE) of per-slide GenBio-PathFM embeddings. A, Raw: slides segregate by hospital, the two 40× scanners (Sites B, E) clearly separated. B, After site mean-centring: per-site clusters dissolve and slides intermix. An inter-site 15-nearest-neighbour hospital classifier (majority-class baseline 0.52) falls from 0.910 to 0.709 accuracy and the linear inter-site MMD from 35.96 to 0.54; the residual reflects higher-moment structure (Supplementary Table S3).
The headline does not depend on held-out-hospital statistics
Replacing the held-out-site mean with the average of the four training-site means, which uses no held-out information, costs only on the fused model (0.8374 to 0.8355; Supplementary Table S4). Figure 3 sweeps the number of unlabelled onboarding slides for the single-scale 256 px model (the seed-42 run of the three-seed sweep; Methods): across folds the mean AUC moves by less than between and , so a new hospital is onboarded from unlabelled slides with no retraining.

Figure 3. Cold-start onboarding curve. Held-out AUC versus the number of unlabelled onboarding slides used to estimate at each held-out hospital (no retraining; single-scale 256 px model, seed-42 run of the three-seed sweep). Coloured lines show per-site AUC (error bars over three subset-sampling seeds); the black line is the across-folds mean and the grey band the AUC tolerance around the ceiling (0.8273). By all curves lie within the band.
External validation on CAMELYON16
Applying the unchanged pipeline to the public CAMELYON16 benchmark [34] (the single-source Radboud subset: 246 sentinel lymph-node WSIs, breast-cancer metastasis), with the same frozen GenBio-PathFM encoder and five-fold stratified cross-validation (five training seeds for CHIME-MIL, one for each baseline), CHIME-MIL attains an AUC of 0.9916 0.012 ( across seeds), alongside ABMIL (0.9970) and CLAM-SB (0.9947) (Supplementary Table S5). All three aggregators saturate on this cohort, and a paired slide-level bootstrap over the pooled out-of-fold predictions separates none of them: against ABMIL AUC (95% CI to , ); against CLAM-SB AUC ( to , ) (, paired on the same resampled slides; the test uses pooled out-of-fold AUC averaged over seeds, whereas the table reports fold-mean AUC, on which CHIME-MIL is 0.0054 below ABMIL and 0.0031 below CLAM-SB). The benchmark therefore confirms architecture transfer without discriminating between aggregators, the same foundation-model-ceiling pattern the gastric benchmark shows. Because this subset is single-source, the per-site alignment is inactive by design, so this is an architecture-transfer check rather than a test of the alignment.
Calibration and efficiency
The headline model has a low top-label expected calibration error (ECE 0.053 0.014; Brier score 0.163 0.020), but its malignancy probabilities are systematically under-confident (mean positive-class reliability gap 0.108 0.028). The deviation is monotone, so a post-hoc temperature fitted on validation data could reduce it without changing AUC; we did not fit one. It has 12.29 M parameters (6.15 M per tower) and completes end-to-end aggregation on an H100 GPU at batch size 1 in 3.7 ms per slide (for a representative bag of 2,934 patches; the corpus median is 3,350), on par with TransMIL; feature extraction dominates the total cost (Supplementary Note 9).
Attention maps identify the evidence behind each prediction
Figure 4 overlays patch-level gated attention on representative malignant and normal WSIs. Beyond visual concentration, we tested faithfulness with comprehensiveness and sufficiency [35] on all 1,674 malignant slides across the five folds (inference only). Removing the top-attention patches lowers the malignancy probability by 0.104 on average, against 0.0006 for the same number of random patches (paired difference 0.103, 95% CI 0.097 to 0.110; larger for attention on 80% of slides; two-sided Wilcoxon signed-rank test, , ), and retaining only the top-attention patches recovers the full-slide prediction (sufficiency = ). The attended patches therefore carry the predictive evidence rather than merely looking plausible, which is the property a pathologist-facing audit trail requires (population statistics in Supplementary Note 6).

Figure 4. Patch-level attention on representative whole-slide images. The normalised gated-attention weight from the patch MIL head (GenBio-PathFM, mean-centred, 256 px) is rendered as a heatmap on the slide thumbnail for WSIs from Site A and Site E. Top row: malignant WSIs correctly classified as tumour; bottom row: normal WSIs correctly classified as non-tumour. Panel borders encode ground truth (red, tumour; blue, normal); ground-truth label, prediction, confidence and patch count are shown below each panel, with a 1 mm scale bar from each slide’s openslide.mpp-x. A check mark beside the prediction denotes agreement with the ground-truth label and a cross denotes disagreement.
Discussion
The central finding is that, with strong foundation-model features, aggregator complexity is not what drives discrimination on this binary task. Read recipe-for-recipe, when global max pooling is given the same first-moment alignment and px fusion as the headline model, it reaches an AUC of 0.8552 and a balanced accuracy of 0.7756, above CHIME-MIL on both (Table 3); the AUC difference is significant (, 95% CI to , , paired bootstrap against the three-seed headline) even though max pooling omits stratified validation, and under a matched recipe the hierarchical aggregator does not exceed ABMIL either (Results). A leakage-free decomposition shows that the fused prediction is not significantly different from its own patch (gated-ABMIL) branch on fold-mean AUC (, 95% CI to , , paired bootstrap) and is lower on pooled AUC (, ), with the three branches mutually correlated at 0.92–0.97 (Supplementary Note 10). Within CHIME-MIL, aggregator-side engineering (gating, graph topology, diversity penalties) recovers at most a few thousandths of AUC; a substantial gain would require intervening on the feature side. This ceiling agrees with recent multi-centre evidence that frozen foundation-model features, not aggregator design, increasingly determine downstream MIL accuracy [20]. The comparative advantage of a hierarchical aggregator is therefore not raw discrimination but the patch- and region-level attention that pooling cannot expose, together with label-free cross-site deployment.
The first-moment alignment is the deployable part of this result. It needs no class labels, only the scanner identifier that every deployment already records; it costs only 0.0019 AUC when the held-out hospital contributes nothing to the site mean; and a new hospital is onboarded from about ten unlabelled slides without retraining, which turns the recurring cost of a multi-site rollout into a one-time mean computation. Its accuracy effect, by contrast, is small and depends on the statistic: on hospital-averaged AUC it helped max pooling (; ) and, less clearly, ABMIL (; ), was not significant on CHIME-MIL () and absent on ACMIL, and on pooled AUC no aggregator gained (ABMIL lost 0.0077, ). The case for the alignment is therefore deployability (no labels, no retraining, negligible cost) rather than accuracy. Higher-order alignment removed more hospital signal but did not improve accuracy, so the residual covariance identifies the hospital without carrying task information.
The counterfactual region ablation loss should be read as an attention-concentration regulariser, not a structural causal model: zeroing top-attention nodes is a region ablation heuristic and performs no causal identification. It improved neither AUC nor attention concentration, and disabling it raised pooled AUC (Supplementary Note 7); we retain only to preserve the original specification and report it as a documented design choice. Its ablation count is not inert, however: in a single sweep, ablating regions gave a significantly higher AUC than the default (+0.016, , paired bootstrap; Supplementary Note 5). We did not adopt it, because choosing from these results would tune on the held-out hospitals.
The residual errors are morphological rather than distributional. First-moment centring corrects the dominant distributional shift, but a cell-level audit indicates that the residual false positives on Sites C and A track a stromal and architectural composition difference (normal tissue resembling tumour) rather than tumour-cell content or a removable scanner offset, and this replicates on a second held-out site (Supplementary Note 3). A direct anti-stroma attention penalty leaves discrimination intact but does not give a seed-robust reduction in these false positives (Supplementary Note 4), so they remain an open problem.
This study has limitations. The benchmark covers a single binary task (malignant versus normal) on gastric tissue from five Korean tertiary centres, so multi-class subtyping and intercontinental population variation are not represented. Patient sex and gender were not available in the de-identified metadata and were not analysed. All experiments are retrospective, and the decision-support framing rests on the premise, not yet tested in a reader study, that the surfaced attention is actionable for pathologists; the interpretability claim should be read as auditability of the surfaced evidence, not as validated diagnostic utility. The external CAMELYON16 result supports architecture transfer only, because its single-source data disables the per-site alignment by construction. A faithful external test of the alignment requires a public corpus that is both multi-institution and labelled for tumour versus normal; the natural candidates, multi-site CAMELYON17 (binary but breast lymph node) and organ-matched TCGA-STAD (gastric but tumour-heavy), each meet only part of this.
Future work includes adding the native scale and joint two-tower training, upgrading or site-invariantly fine-tuning the feature backbone, validating the alignment on public multi-site cohorts such as CAMELYON17 and TCGA/CPTAC, and extending from binary classification to multi-class gastric-cancer subtyping. In summary, on a five-hospital benchmark with strong foundation-model features, the hierarchical aggregator does not improve discrimination over simpler aggregators, global max pooling included, and its value lies in label-free onboarding, calibration checks and auditable per-slide evidence.
Methods
Cohort and ethics approval
The dataset comprises 5,036 H&E-stained gastric WSIs collected retrospectively from five tertiary care hospitals in the Republic of Korea (Sites A–E), spanning two scanner magnifications (, ) and distinct staining and processing protocols. Slides come from endoscopic biopsy and surgical resection specimens; the task is slide-level classification of gastric carcinoma (predominantly adenocarcinoma) versus non-tumour mucosa, with binary labels and no patch-level annotations. Table 1 gives the per-hospital composition: Site A is largest (2,636 slides, 52.3%), Site E smallest (198, 3.9%), and most sites are class-imbalanced (≈1:2 malignant:normal). Tumour slides have larger tissue areas than normal slides (median 3,657 versus 3,164 tissue patches of , i.e. 59.9 versus 51.8 ; two-sided Mann–Whitney , malignant and normal slides, , rank-biserial correlation 0.15; the difference has the same direction at every site).
The study was approved by the Institutional Review Boards of the participating institutions, Yonsei University Hospital, Dankook University Hospital, CHA Bundang Medical Center, Ewha Womans University Medical Center (Seoul and Mokdong hospitals) and Keimyung University Dongsan Medical Center (protocol codes SEUMC 2021-07-016, EUMC 2021-08-013, DKUH 2022-03-041, KUDH 2021-08-112, CHABH 2021-09-021-011 and YUMC 4-2021-0029). All methods were carried out in accordance with the relevant guidelines and regulations, including the Declaration of Helsinki. The requirement for informed consent was waived by these Institutional Review Boards because the study was retrospective and used only de-identified archival whole-slide images.
Problem formulation
Each WSI from site is a bag of patch features with normalised coordinates , carrying a single slide-level label (patch labels unavailable). Following the underlying label files, denotes the positive (malignant) class and the negative (normal) class; all polarity-dependent metrics use pos_label=0, so malignant is the positive class in the conventional clinical sense throughout. We learn under leave-one-site-out (LOSO) validation: at fold , all slides of hospital are held out and the rest train the model. The predicted malignancy probability is
Feature extraction and magnification normalisation
Patch features use the frozen GenBio-PathFM foundation model [19]. Each WSI is tiled at () into non-overlapping patches, each mapped to ; patches with foreground tissue are discarded. A second feature set at px (same magnification) provides a wider receptive field for multi-scale fusion. For scanner-magnification normalisation we work in physical micron space using the per-slide microns-per-pixel value from openslide.mpp-x, never the unreliable nominal objective power: each patch is read at a constant physical field of view ( at 256 px) and Lanczos-resampled, so slides are down-sampled to the grid. This removes the resolution component of scanner shift but leaves residual stain, illumination and sensor differences, which are the target of the inference-time alignment below. Features are cached once per magnification (no gradients through the extractor).
Hierarchical graph encoder
The encoder processes each bag through three levels before fusing the resulting slide embeddings (Figure 1).
Level 1: patch MIL head.
A gated attention mechanism [2] scores each patch:
with , , ; the patch embedding is .
Level 2: spatial grid region aggregator.
Each slide is partitioned into a fixed grid ( regions) over per-slide min–max-normalised coordinates, so the partition is invariant to scanner field of view and slide size by construction. A shared gated-attention head produces per-patch logits , softmax-normalised within each cell:
Empty cells take a learned embedding. A region-level attention head pools the region features into .
Level 3: spatial graph reasoning.
A -nearest-neighbour () graph over region coordinates is built; graph attention over edges is
with node states updated by a residual GRU cell over aggregated neighbour messages. A global attention readout pools nodes into :
Multi-level fusion.
The three embeddings are projected to a common 256-d space, weighted by a learned gate, and summed:
, with a linear classifier on and auxiliary classifiers per level. Headline results use this learned gate (the original specification); a decomposition (Discussion; Supplementary Note 10) shows the branches are highly correlated and a parameter-free uniform gate () is a marginally stronger, more seed-robust default.
Cross-site feature alignment
Feature distributions vary systematically across sites. A 19.2-million-patch feature-space audit finds that Site C normal tissue has the smallest class-separation cosine margin (Supplementary Note 2), i.e. it lies closest to the tumour cluster, and raw per-slide embeddings segregate by hospital (Figure 2A). We correct this by subtracting a per-site mean. The alignment uses only the deployment-time site identity (scanner or picture archiving and communication system metadata), never the class label . For each site we compute a patch-count-weighted mean over all of that site’s slides:
computed once and shared across folds. Because Equation (7) is a strict function of features and counts (no ), the held-out site contributes only unlabelled features, the standard unsupervised domain-adaptation setting [30, 36]. The relevant criterion is therefore deployment-mirror fidelity rather than the supervised prohibition on held-out data: a strict estimator using only training-site means costs just (Supplementary Table S4), and a new site is onboarded from 10 unlabelled slides (Figure 3). At training and inference every patch is centred by its site mean:
This is a first-moment correction in the lineage of AdaBN [37] and the first-moment component of CORAL [30]; we evaluate its second-moment extensions (full CORAL, per-site ZCA; Supplementary Table S3).
Counterfactual region ablation loss
A counterfactual region ablation (CRA) loss acts as an attention-concentration regulariser on the graph branch, enforcing that removing the top- attended regions perturbs the prediction more than removing random regions, via a hinge on Kullback–Leibler (KL) divergences from the unperturbed output :
with , . We use “counterfactual” in the sense of region ablation, not as a formal causal claim (Discussion). A controlled ablation (Supplementary Note 7) shows it improves neither AUC nor attention concentration; we report it as a documented design choice, not a load-bearing component.
Multi-scale patch fusion
Two CHIME-MIL models and are trained identically; their per-slide probabilities are averaged with equal weight:
A leave-one-fold-out weight search gives an optimum with a mean gain of only +0.0001 AUC over equal weighting, so flat 0.5/0.5 fusion is the practical late-fusion ceiling.
Training and inference
The total loss combines focal classification losses from all four heads with the CRA term:
with focal [38] and , . Optimisation uses AdamW (, weight decay ) with early stopping on validation AUC (patience 10, maximum 40 epochs). At inference, the precomputed is selected by the test slide’s site identifier and subtracted; both resolution models forward through the pipeline and their probabilities are averaged ((10)). The classification threshold is set at training time by maximising balanced accuracy on the hospital-stratified validation set and applied unchanged at test time.
Evaluation protocol and statistics
Generalisation is assessed by LOSO cross-validation: at each fold one hospital is held out for testing and the other four train the model, with no test-hospital data used in training or model selection. Early stopping and the decision threshold use a validation split drawn from the training hospitals. The headline configuration and the ablation rows marked SV use a hospital-stratified split (15% per hospital, label-stratified, capped at the median per-hospital count), so the largest site cannot dominate the best-epoch criterion; all other runs, including every baseline, use a label-stratified random 15% split of the pooled training slides. We report means.d. AUC, accuracy and balanced accuracy across the five held-out folds (per-site reporting adds sensitivity, specificity, and positive predictive value), with malignant as the positive class.
Repeated runs of one configuration with the same seed do not give identical results unless the validation split and the CUDA settings are locked. The component ablation therefore uses a locked deterministic seed-42 reference run, in which the single-scale configuration with mean-centring and stratified validation reaches 0.8341. Two unlocked seed-42 runs of that configuration reach 0.8273 (the seed-42 member of the three-seed sweep) and 0.8289 (the default setting of the CRA sweep in Supplementary Note 5). This run-to-run spread () is as large as the individual mean-centring and stratified-validation gains, so single-run component differences are reported with confidence intervals and are not treated as established. Analyses of the single-scale model (onboarding, attention concentration, the CRA toggle and the branch decomposition) use the 0.8273 run.
AUC differences are tested with a paired slide-level bootstrap (, seed 42, two-tailed, ), resampling the same slides for both models. The bootstrap is used because AUC differences between correlated classifiers have no convenient closed-form distribution under site-heterogeneous sampling, and it makes no normality assumption. Two statistics are tested: the pre-specified pooled-LOSO AUC ( slides) and, because the tables tabulate it, the five-fold-mean AUC (slides resampled within each held-out site; , 1,183, 334, 685 and 198 for Sites A–E). For the headline the statistic is the mean over its three training seeds, so that the test concerns the tabulated number. The Benjamini–Hochberg correction [39] is applied within two pre-specified families against the headline: (i) six conventional learned-attention and transformer baselines the headline is expected to beat (ABMIL, CLAM-SB, CLAM-MB, TransMIL, DSMIL, RoFormer), and (ii) three foundation-model-ceiling probes that may match or exceed it (MaxPool at 256/392 px, ACMIL). Ablation steps are tested with the same paired bootstrap and reported with 95% percentile confidence intervals and unadjusted values; they are exploratory component attributions, not a pre-specified family. With the smallest resolvable two-sided is ; where no replicate crossed zero we report (unadjusted: ). The values are standard deviations across the five held-out sites, except the headline’s , which is across its three training seeds, and the CAMELYON16 CHIME-MIL value, which is across its five training seeds.
Baselines
All baselines use the same LOSO folds, early-stopping rule (validation AUC, patience 10) and focal loss () as CHIME-MIL, with the label-stratified validation split described above, on the UNI [17] (1,024-d) and/or GenBio-PathFM (4,608-d) feature tracks, both extracted at under the same tiling. They are single-scale and, unless marked MC, unaligned, so comparisons with the headline compare recipes; recipe-matched comparisons are reported separately (Results). We compare against attention MIL (ABMIL [2]), CLAM-SB/MB [3], transformer MIL (TransMIL [4], RoFormer [5]), dual-stream DSMIL [8], pseudo-bag DTFD-MIL [9], and ACMIL [15] (the strongest attention-based baseline, evaluated with and without first-moment alignment to test transfer). A non-parametric global max pooling aggregator (element-wise maximum followed by a linear classifier, no learned attention) at 256 and 392 px serves as the foundation-model-ceiling reference.
Implementation: CHIME-MIL and all baselines are implemented in PyTorch 2.8.0 (UNI track on 4×RTX A5000 GPUs, GenBio headline on 4×H100 GPUs). Per-site means are a one-off CPU step. Hyperparameters are shared across variants and not tuned per fold (Supplementary Table S1).
Use of generative AI: No generative AI or large language model was used in the study design, the collection or annotation of the data, or the analysis or interpretation of the results; every GenBio-PathFM-track number reported in this paper is produced by the code listed under Data availability (the UNI-track baseline predictions were not retained). During manuscript preparation the authors used Anthropic Claude (a large language model) to draft and edit portions of the text and to assist with LaTeX formatting; the authors reviewed and edited the output and take full responsibility for the content.
Data availability: The whole-slide images analysed in this study are held privately by the authors’ laboratory under the institutional review board approvals of the participating hospitals and are not publicly available because they contain protected clinical material; access requests may be addressed to the corresponding author and are subject to approval by the participating institutions and a data-use agreement. The derived patch features are available from the corresponding author on reasonable request. The CHIME-MIL model, training and evaluation code, the patch-feature loader, the site-mean alignment script and the late multi-scale fusion script are publicly available under the MIT licence at https://github.com/VanchhayNheng/CHIME-MIL. Pretrained CHIME-MIL checkpoints for all five leave-one-site-out folds, the remaining analysis code (the paired slide-level bootstrap tests, the baseline trainers, the higher-order alignment and attention-faithfulness evaluations and the patch-feature extraction script), the per-fold result files (probabilities, labels and thresholds), the precomputed per-site mean vectors and the exact split manifest for all 5,036 slides will be deposited in a Zenodo archive with a DOI issued at acceptance. Patch features are produced with the publicly released GenBio-PathFM model (genbio-ai/genbio-pathfm).
References
Acknowledgements
The authors thank the Departments of Pathology of the participating institutions for curating and releasing the archival whole-slide image cohorts used in this study.
Author contributions
N.V. conceived the study, developed the methodology with B.H.C. and H.-K.C., wrote the software, performed the formal analysis, prepared the visualisations and wrote the original draft. A.H., K.Z., M.A.I.M. R.I.S., and B.H.C. validated the results. W.-A.L., M.-S.C., H.-C.S., Y.P., N.-H.C., H.A., H.Ka. and H.Ki. provided the clinical cohorts and took part in the investigation. N.V., A.H., K.Z., M.-J., M.A.I.M., W.-A.L., M.-S.C., H.-C.S., Y.P., N.-H.C., H.A., H.Ka. and H.Ki. curated the data. H.-K.C. and H.C.K. supervised the work; H.C.K. administered the project and acquired the funding. All authors reviewed and edited the manuscript and approved the final version. (H.Ka., Haeyoun Kang; H.Ki., Hyunki Kim.)
Funding
This work was supported by the Institute of Information & Communications Technology Planning & Evaluation (IITP)-Innovative Human Resource Development for Local Intellectualization program grant funded by the Korea government (MSIT)(IITP-2024-RS-2024-00436773).
Competing interests
The authors declare no competing interests.
Additional information
Supplementary Information accompanies this paper (Supplementary Notes 1–12, Supplementary Tables S1–S15 and Supplementary Figure S1). Correspondence and requests for materials should be addressed to H.C.K.
References
- [1]Campanella, G. et al. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat. Med. 25, 1301–1309 (2019).DOI
- [2]Ilse, M., Tomczak, J. M. & Welling, M. Attention-based deep multiple instance learning. Proc. 35th International Conference on Machine Learning (ICML) 2127–2136 (2018).
- [3]Lu, M. Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat. Biomed. Eng. 5, 555–570 (2021).DOI
- [4]Shao, Z. et al. TransMIL: transformer based correlated multiple instance learning for whole slide image classification. Adv. Neural Inf. Process. Syst. 34, 2136–2147 (2021).arxiv.org/abs/2106.00908
- [5]Pochet, E., Maroun, R. & Trullo, R. RoFormer for position aware multiple instance learning in whole slide image classification. Proc. Machine Learning in Medical Imaging (MLMI 2023), Lect. Notes Comput. Sci. 14349, 437–446 (2023).arxiv.org/abs/2310.01924
- [6]Shi, J. et al. Positional encoding-guided multiple instance learning for histopathology whole slide image classification. Comput. Methods Programs Biomed. 258, 108491 (2025).DOI
- [7]Wang, Z. et al. Surformer: an interpretable pattern-perceptive survival transformer for cancer survival prediction from histopathology whole slide images. Comput. Methods Programs Biomed. 241, 107733 (2023).DOI
- [8]Li, B., Li, Y. & Eliceiri, K. W. Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning. Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 14313–14323 (2021).DOI
- [9]Zhang, H. et al. DTFD-MIL: double-tier feature distillation multiple instance learning for histopathology whole slide image classification. Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 18780–18790 (2022).arxiv.org/abs/2203.12081
- [10]Chen, R. J. et al. Whole slide images are 2D point clouds: context-aware survival prediction using patch-based graph convolutional networks. Proc. Medical Image Computing and Computer Assisted Intervention (MICCAI) 339–349 (2021).arxiv.org/abs/2107.13048
- [11]Liang, M. et al. Interpretable classification of pathology whole-slide images using attention based context-aware graph convolutional neural network. Comput. Methods Programs Biomed. 229, 107268 (2023).DOI
- [12]Wang, S. et al. RMDL: recalibrated multi-instance deep learning for whole slide gastric image classification. Med. Image Anal. 58, 101549 (2019).DOI
- [13]Fu, B. et al. StoHisNet: a hybrid multi-classification model with CNN and transformer for gastric pathology images. Comput. Methods Programs Biomed. 221, 106924 (2022).DOI
- [14]Kang, H. et al. EBV status prediction in gastric carcinoma biopsy images using multiple bag instance learning and foundation model in multicenter data. J. Pathol. https://doi.org/10.1002/path.70105 (2026).
- [15]Zhang, Y. et al. Attention-challenging multiple instance learning for whole slide image classification. Proc. European Conference on Computer Vision (ECCV 2024), Lect. Notes Comput. Sci. 15111, 125–143 (2024).arxiv.org/abs/2311.07125
- [16]Chen, R. J. et al. Scaling vision transformers to gigapixel images via hierarchical self-supervised learning. Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 16123–16134 (2022).arxiv.org/abs/2206.02647
- [17]Chen, R. J. et al. Towards a general-purpose foundation model for computational pathology. Nat. Med. 30, 850–862 (2024).DOI
- [18]Vorontsov, E. et al. A foundation model for clinical-grade computational pathology and rare cancers detection. Nat. Med. 30, 2924–2935 (2024).DOI
- [19]Kapse, S. et al. GenBio-PathFM: a state-of-the-art foundation model for histopathology. Preprint at https://doi.org/10.64898/2026.03.17/712534 (2026).
- [20]Xu, H. et al. When multiple instance learning meets foundation models: advancing histological whole slide image analysis. Med. Image Anal. 101, 103456 (2025).
- [21]Stacke, K., Eilertsen, G., Unger, J. & Lundström, C. Measuring domain shift for deep learning in histopathology. IEEE J. Biomed. Health Inform. 25, 325–336 (2021).DOI
- [22]Tellez, D. et al. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. Med. Image Anal. 58, 101544 (2019).DOI
- [23]Faryna, K., van der Laak, J. & Litjens, G. Tailoring automated data augmentation to H&E-stained histopathology. Proc. Mach. Learn. Res. 143, 168–178 (2021). https://proceedings.mlr.press/v143/faryna21a.html.
- [24]Otálora, S., Atzori, M., Andrearczyk, V., Khan, A. & Müller, H. Staining invariant features for improving generalization of deep convolutional neural networks in computational pathology. Front. Bioeng. Biotechnol. 7, 198 (2019).DOI
- [25]Lafarge, M. W., Pluim, J. P. W., Eppenhof, K. A. J. & Veta, M. Learning domain-invariant representations of histological images. Front. Med. 6, 162 (2019).DOI
- [26]Ganin, Y. & Lempitsky, V. Unsupervised domain adaptation by backpropagation. Proc. 32nd International Conference on Machine Learning (ICML) 1180–1189 (2015).arxiv.org/abs/1409.7495
- [27]Reinhard, E., Adhikhmin, M., Gooch, B. & Shirley, P. Color transfer between images. IEEE Comput. Graph. Appl. 21, 34–41 (2001).DOI
- [28]Macenko, M. et al. A method for normalizing histology slides for quantitative analysis. Proc. IEEE International Symposium on Biomedical Imaging (ISBI) 1107–1110 (2009).DOI
- [29]Vahadane, A. et al. Structure-preserving color normalization and sparse stain separation for histological images. IEEE Trans. Med. Imaging 35, 1962–1971 (2016).DOI
- [30]Sun, B. & Saenko, K. Deep CORAL: correlation alignment for deep domain adaptation. Proc. Computer Vision – ECCV 2016 Workshops 443–450 (2016).arxiv.org/abs/1607.01719
- [31]Carretero, I., Meseguer, P., del Amor, R. & Naranjo, V. Enhancing whole slide image classification through supervised contrastive domain adaptation. Preprint at https://arxiv.org/abs/2412.04260 (2024).
- [32]Selvaraju, R. R. et al. Grad-CAM: visual explanations from deep networks via gradient-based localization. Proc. IEEE International Conference on Computer Vision (ICCV) 618–626 (2017).
- [33]Lambert, B., Forbes, F., Doyle, S., Dehaene, H. & Dojat, M. Trustworthy clinical AI solutions: a unified review of uncertainty quantification in deep learning models for medical image analysis. Artif. Intell. Med. 150, 102830 (2024).DOI
- [34]Ehteshami Bejnordi, B. et al. Diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women with breast cancer. JAMA 318, 2199–2210 (2017).DOI
- [35]DeYoung, J. et al. ERASER: a benchmark to evaluate rationalized NLP models. Proc. 58th Annual Meeting of the Association for Computational Linguistics (ACL) 4443–4458 (2020).arxiv.org/abs/1911.03429
- [36]Liang, J., Hu, D. & Feng, J. Do we really need to access the source data? Source hypothesis transfer for unsupervised domain adaptation. Proc. International Conference on Machine Learning (ICML) 6028–6039 (2020).arxiv.org/abs/2002.08546
- [37]Li, Y., Wang, N., Shi, J., Hou, X. & Liu, J. Adaptive batch normalization for practical domain adaptation. Pattern Recognit. 80, 109–117 (2018).DOI
- [38]Lin, T.-Y., Goyal, P., Girshick, R., He, K. & Dollár, P. Focal loss for dense object detection. Proc. IEEE International Conference on Computer Vision (ICCV) 2999–3007 (2017).
- [39]Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B (Methodol.) 57, 289–300 (1995).DOI