arXiv:2610.24023eess.IVOct 2026

Manuscript Offprint

arXiv:2610.24023

ProtoGTX: Prototype-Aligned Graph Transformer for Explainable Whole-Slide Image Analysis

Iori Azuma, Hiroyuki Kusuhara, Tadahaya Mizuno

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

Iori Azuma 1^{1}, Hiroyuki Kusunara 1^{1}, Tadahaya Mizuno 1,2,†^{1,2,\dagger}

1^{1} Laboratory of Molecular Pharmacokinetics, Graduate School of Pharmaceutical Sciences, The University of Tokyo, Tokyo, Japan

2^{2} The Institute of Statistical Mathematics, Research Organization of Information and Systems,

Tachikawa, Japan

tadahaya@gmail.com

† Corresponding author

Abstract. Deep learning has achieved strong performance in computational pathology, but explaining whole-slide image (WSI) predictions remains challenging. Existing explanation methods often highlight important regions without identifying their morphological patterns, leaving a gap between patch-level computational evidence and slide-level pathological interpretation. We propose ProtoGTX, a graph-based framework that combines spatial contextualization with a flexible morphological prototype vocabulary. ProtoGTX separates the reference prototypes used to define morphological concepts from the predictive model: the reference vocabulary can be generated from training data by unsupervised clustering or supplied externally, and remains fixed during classifier training. Patch features are first contextualized over a spatial graph, after which learnable prototypes representing morphological concepts are optimized through cross-attention. Their slide-level activation profile is aligned with the morphological composition induced by the fixed reference prototype bank. On the CPTAC and BRACS datasets, ProtoGTX outperforms the evaluated MIL, prototype-based, and graph-based baselines, with particularly pronounced improvements on BRACS. Qualitative analyses further show that spatial contextualization transforms fragmented patch-level prototype assignments into more coherent tissue regions. In BRACS, prototype maps also co-localize with pathologist annotations and regions relevant to slide-level prediction. These results demonstrate that ProtoGTX provides complementary semantic and spatial explanations while retaining a prototype vocabulary that can be defined independently of the predictive model. Code is available at https://github.com/mizuno-group/ProtoGTX.

Keywords: Graph Representation, Prototype Learning, Whole-Slide Image.

Introduction

Histopathology is the gold standard for cancer diagnosis. The digitization of tissue slides into Whole Slide Images (WSIs) has enabled deep learning models to achieve remarkable success in diagnostic tasks. However, the "black box" nature of these models can make their internal logic difficult to interpret in clinical research settings.

To support informed professional assessment, there is a growing need for transparent explanations that clarify the underlying rationale of AI-assisted outputs. Existing interpretability methods, such as attention scores, primarily highlight where the model focuses. They fail to explain what morphological features underlie the prediction. Bridging this gap requires models to provide insights based on biological concepts familiar to pathologists.

Pathological findings are often assessed at the whole-slide level, whereas computational models process WSIs as smaller patches for computational tractability. Multiple Instance Learning (MIL) is therefore widely used for WSI analysis, treating each slide as a bag of patches without requiring fine-grained annotations 1−6^{1-6}. To provide rationales for their predictions, conventional MIL models typically rely on intermediate attention scores to identify and highlight the most salient tissue regions. However, these purely spatial explanations are fundamentally limited and lack explicit biological meaning.

To address the lack of structural context, recent studies have increasingly turned to graph-based approaches to process WSIs 7−12{}^{7-12}. Zheng et al. 9{}^{9} integrated patch-level graph representations of WSIs into a Vision Transformer architecture. Hou et al. 10{}^{10} explicitly modeled multiscale spatial dependencies through resolution-aware heterogeneous graphs. Li et al. 12{}^{12} introduced a dynamic approach that conceptualizes the WSI as a structured knowledge graph. While these methods successfully incorporate spatial context, a major limitation remains. The features stored in graph nodes are still high-dimensional vectors that do not directly correspond to specific morphological patterns. Even with advanced graph structures, it is difficult to identify exactly which visual concepts the model is using for its prediction. This gap makes it hard for pathologists to verify the clinical basis of the results.

Prototype-based approaches provide an alternative route toward semantically structured WSI representations by summarizing patch features using representative morphological patterns 13−16{}^{13-16}. More recently, PTCMIL jointly learns slide-specific, task-aware prototype representations with downstream prediction through prompt-token clustering 17{}^{17}.

Recent studies have further integrated prototypes with task-aware aggregation or structured representations. StructMIL incorporates graph-derived tissue topology into prototype-based multiple-instance learning, with prototypes initialized by K-means and subsequently optimized for downstream prediction 18{}^{18}. ProtoSG-Net instead employs non-parametric dataset-level prototypes to guide representative patch selection and semantic graph construction 19{}^{19}. These studies show that combining prototypes with spatial or structural modeling is itself no longer sufficient to distinguish a new framework. A complementary question therefore remains: can the morphological vocabulary be defined independently of the predictive model, and can spatial context refine how local tissue regions are aligned to that fixed vocabulary?

To address this question, we propose ProtoGTX, a graph-based framework for spatially contextualized alignment to a morphological reference vocabulary. Our main contributions are threefold. (1) We decouple the morphological reference vocabulary from the predictive model. Reference prototypes can be obtained by unsupervised clustering of training embeddings or supplied from an external source, enabling the semantic vocabulary to be specified independently of classifier optimization. (2) We propose a Prototypical Cross-Attention module that reconstructs graph features as combinations of learnable, interpretable prototypes, whose activation profiles are aligned with the fixed reference prototype composition. (3) ProtoGTX provides complementary explanations of what morphological concepts are represented and where predictive evidence is localized, and we evaluate these properties on CPTAC and BRACS.