arXiv:2610.25904cs.CVOct 2026

Manuscript Offprint

arXiv:2610.25904

Multi-scale Fusion of Fast Vision Mamba and Foundation Model Features for Patch-Level Gleason Grading in Computational Pathology

Zihe Zhang, Weimiao Yu, Piumi Don Simonge

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

Zihe Zhang 1^{1} ID^{ID}, Weimiao Yu 2^{2} ID^{ID}, and Piumi Don Simonge 2^{2} ID^{ID} ✉^{✉}

1^{1} Nanyang Technological University, Singapore

ZH0013HE@e.ntu.edu.sg

2^{2} Bioinformatics institute, Agency for Science Technology and Research, Singapore

yu_weimiao@a-star.edu.sg, piumi_simonge@a-star.edu.sg

Abstract. Automated Gleason grading of prostate whole slide images (WSIs) enables faster and more consistent cancer risk stratification. However, it remains a challenging task due to the subtle morphological differences between grades, the severe class imbalance arising from rare patterns, and the diagnostic features that span multiple spatial scales. Pathology foundation models (FMs) extract strong patch representations but often operate at a single-scale, which limits spatial context and disproportionately affects classes that depend on broader context. The challenge of fusing multiple scales and complementary models, with minimal data and computational resources, remains unresolved. We propose a multi-scale classifier built on state-space models. Our method combines two complementary feature sources: a frozen foundation model, and a lightweight FastVim, pre-trained on ImageNet and distilled from the foundation model, that reads the raw image crops. At each scale, a Mamba model encodes the features from both sources with linear-time spatial context, and a jointly trained head fuses the encoded representations into one prediction. On the PANDA dataset, our method reaches macro F1 of 0.894 and Gleason 5 F1 of 0.802 under 5-fold cross-validation, a 12% and 21% relative improvement over the best single-scale model. A controlled study over 5 foundation models, 5 base classifiers and 3 scales confirms that the gain holds across encoders, with larger improvements observed at smaller scales.

Keywords: Computational pathology · State-space models · Gleason grading · Foundation models · Multi-scale fusion

1 Introduction

Prostate cancer is the second most commonly diagnosed cancer in men worldwide [17]. Gleason grading of biopsy tissue provides essential prognostic information that guides treatment decisions [4], but it is labour intensive and shows considerable inter-observer variability [10]. Gleason grading assigns prostate cancer tissue into 3 main architectural patterns: Gleason pattern 3, 4, and 5, where

Z. Zhang et al.

higher patterns correspond to progressively poorer glandular differentiation, accompanied by more pronounced cellular atypia [4]. Reliable and reproducible automation of this assessment is therefore clinically valuable.

Deep learning is the standard tool for histopathology image analysis [10], and pathology foundation models (FMs) have become its dominant approach. Pre-trained with heavy self-supervision on large datasets, FMs produce rich patch representations that transfer across downstream tasks. UNI [2] pre-trains a ViT-L/16 with DINOv2 [16] on over 100,000 whole slide images (WSIs), and its successor UNI2 scales further. Virchow [19] scales to a 632M parameter ViT-H/14 trained on 1.5M slides, Virchow2 [21] adds mixed magnification training, and CONCH [13] adds vision-language pre-training.

State-of-the-art FMs are trained at a pre-determined patch size and lose accuracy at substantially different scales [14]. However, Gleason grading is intrinsically multi-scale, relying on cues from cellular detail to glandular and tissue architecture. Since WSIs contain hundreds of thousands of patches, modelling spatial context with attention is quadratic and quickly becomes computationally prohibitive. State-space models (SSMs) such as Mamba [5] process long token sequences in linear time. The vision counterpart of Mamba, Vision Mamba (ViM) [20], extends this architecture to natural image understanding, while pathology-specific variant Vim4Path [15] adapts this architecture for computational pathology. FastVim [8] improves on ViM, maintaining accuracy while achieving up to 72.5% faster inference even at high resolution (2048 × 2048). Beyond efficient context modelling, the remaining question is how to combine scales. Prior multi-scale analysis examines several patch sizes but typically combines the single-scale predictions by ensembling or averaging [3,9], which treats the scales independently and discards their joint structure. Multi-scale fusion of histopathology images in an end-to-end model still remains an open challenge.

To close this gap, we formulate multi-scale patch classification as a single, jointly trained network. Our method draws features from two complementary sources: a frozen FM, and a lightweight FastVim, pre-trained on ImageNet and distilled from the FM, that reads the raw image crops the pooled FM features miss. At each scale, a Mamba encoder adds spatial context, and a jointly trained head fuses the representations from both sources into one prediction, rather than averaging or voting on single-scale outputs. Full details are given in Sec. 2.

We validate our method on the PANDA dataset [1], a large-scale public prostate cohort with pixel-level masks, on a 5-class tissue classification task (see Sec. 3.1). Under 5-fold cross-validation, our method increases macro F1 from 0.796 for the best single-scale model to 0.894, a 12% relative gain, and Gleason 5 F1 from 0.661 to 0.802, a 21% relative gain (Table 1). With minimal resources, our FastVim branch reaches higher throughput than a same-size vision transformer at these input sizes (Table 2), and it is trained on the target cohort alone.

Figure

Fig. 1. Overview of the proposed method. Since Virchow2 accepts only its native 256 px input, the 512 px and 1024 px scale representations are formed by averaging the embeddings of the 2×22 \times 2 and 4×44 \times 4 constituent tiles, respectively. In contrast, the FastVim branch encodes native crops at all three scales directly. The representations from both branches are each encoded by a Mamba encoder and fused into one patch-level prediction, and a per-scale classification head supplies an auxiliary training signal (deep supervision). Only the Mamba encoders, the per-scale classification heads and the fusion head are trained, and the two feature encoders are kept frozen.

References (21)