arXiv:2610.41328eess.IVOct 2026

Manuscript Offprint

arXiv:2610.41328

With foundation-model features, aggregator complexity does not improve cross-hospital discrimination in gastric whole-slide image classification

Nheng Vanchhay, Ali Hussain, Khan Ziaullah, Moon-Il Joo, Md Ariful Islam Mozumder, Rashedul Islam Sumon, Won-Ae Lee, Min-Sun Cho, Hyeong-Chan Shin, Yujun Park, Baek Hwan Cho, Nam-Hoon Cho, Heejung An, Heung-Kook Choi, Haeyoun Kang, Hyunki Kim, Hee Cheol Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nheng Vanchhay 1^{1}, Ali Hussain 1^{1}, Khan Ziaullah 1^{1}, Moon-Il Joo 1^{1}, Md Ariful Islam Mozumder 1^{1}, Rashedul Islam Sumon 1^{1}, Won-Ae Lee 2^{2}, Min-Sun Cho 3^{3}, Hyeong-Chan Shin 4^{4}, Yujun Park 5^{5}, Baek Hwan Cho 6^{6}, Nam-Hoon Cho 7^{7}, Heejung An 5^{5}, Heung-Kook Choi 8^{8}, Haeyoun Kang 5^{5}, Hyunki Kim 9^{9}, Hee Cheol Kim 1∗^{1*}

1^{1}College of AI Convergence, Institute of Digital Anti-Aging Healthcare, u-AHRC, Inje University, 197 Inje-ro, Gimhae, 50834, Gyeongsangnam-do, Republic of Korea.

2^{2}Department of Pathology, Dankook University Hospital, 201 Manghyang-ro, Dongnam-gu, Cheonan, 31116, Chungcheongnam-do, Republic of Korea.

3^{3}Department of Pathology, Ewha Womans University Seoul Hospital, 260 Gonghang-daero, Gangseo-gu, Seoul, 07804, Republic of Korea.

4^{4}Department of Pathology, Keimyung University Dongsan Medical Center, 1035 Dalgubeol-daero, Dalseo-gu, Daegu, 42601, Republic of Korea.

5^{5}Department of Pathology, CHA Bundang Medical Center, CHA University, 59 Yatap-ro, Bundang-gu, Seongnam-si, 13496, Gyeonggi-do, Republic of Korea.

6^{6}Department of Biomedical Informatics, CHA University School of Medicine, CHA University, 335 Pangyo-ro, Bundang-gu, Seongnam-si, 13488, Gyeonggi-do, Republic of Korea.

7^{7}MTS Company Co., Ltd., 8F, 434 Samseong-ro, Gangnam-gu, Seoul, 06178, Republic of Korea.

8^{8}Department of Computer Engineering, Inje University, 197 Inje-ro, Gimhae, 50834, Gyeongsangnam-do, Republic of Korea.

9^{9}Department of Pathology, Yonsei University College of Medicine, 50-1 Yonsei-ro, Seodaemun-gu, Seoul, 03722, Republic of Korea.

∗^{*}Corresponding author. E-mail: heeki@inje.ac.kr

Contributing authors: nhengvanchhay@live.inje.ac.kr; alihussain4541@live.inje.ac.kr; Ziakhan@live.inje.ac.kr; joomi@inje.ac.kr; arifulimdream@live.inje.ac.kr; walee@dankook.ac.kr; mcho1124@ewha.ac.kr; chan@dsmc.or.kr; yjpark7202@chamc.co.kr; baekhwan.cho@cha.ac.kr; cho1988@mtsco.co.kr; hjahn@cha.ac.kr; cschk@inje.ac.kr; hykang@cha.ac.kr; KIMHYUNKI@yuhs.ac.

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 20×20\times and 40×40\times, 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.

Keywords: computational pathology, multiple instance learning, whole-slide image, domain alignment, calibration, clinical decision support

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 10910^{9} 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–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 20×20\times and 40×40\times scanners coexist. Training-time remedies include stain normalisation and augmentation [22, 23] and domain-adversarial training [24–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–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 20× and 40×, 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 (P = 0.0002), so the value of an aggregator lies in label-free onboarding, calibration checks and auditable evidence rather than in accuracy.

References (38)