Organizations: National Engineering Laboratory for Brain-inspired Intelligence Technology and Application, MoE Key Laboratory of Brain-inspired Intelligent Perception and Cognition, University of Science and Technology of China, Hefei, 230026, China · Anhui Province Key Laboratory of Biomedical Imaging and Intelligent Processing, Institute of Artificial Intelligence, Hefei Comprehensive National Science Center, Hefei, 230088, China · School of Software Technology, Zhejiang University, Ningbo, 315048, China · Department of Biomedical Informatics, Harvard Medical School, Boston, MA, 02115, USA · Present address: Nanyang Technological University, Singapore.
Whole slide image (WSI) analysis enables computational diagnosis and prognosis, but gigapixel images and limited annotations make slide-level learning challenging. Multiple instance learning addresses this task by aggregating patch representations from frozen pretrained encoders. Recently, Mamba has enabled efficient modeling of long patch sequences. However, task supervision alone does not explicitly constrain information recovery during feature adaptation, while Mamba couples local processing with long-range propagation rather than retaining separate representations for fusion. Motivated by these challenges, we introduce LEAF-Mamba, a framework that jointly addresses latent evidence adaptation and fusion for frozen-feature WSI analysis. A reconstruction-regularized adapter learns compact, task-specific representations while reconstructing the input features. Parallel Mamba and convolutional streams then capture long-range dependencies and sequence-local interactions, with an input-dependent gate modulating their joint representation before slide-level pooling. Experiments across feature extractors demonstrate improved average performance over strong MIL baselines in both diagnostic classification and survival prediction. Component analyses further support the contributions of adaptation and fusion. These findings highlight the value of jointly designing feature transformation and contextual aggregation to translate pretrained representations into effective slide-level predictions.
Figures & tables
Figure 1: Conceptual visualization of Mamba-guided evidence fusion.
Figure 2: Overview of LEAF-Mamba. Frozen features undergo reconstruction-regularized latent evidence adaptation and Mamba-guided fusion of long-range sequence context, short-range token interactions, and content-dependent gating for slide-level prediction.
Figure 3: Effect of LEA on BRACS features.
Figure 4: Diagnostic classification and TCGA survival prediction results across frozen feature extractors. The vertical axis shows the score difference from the best baseline using the same feature extractor, on a nonlinear scale.
(c) Average Method AUC ACC F1 MeanMIL 82.5 59.7 52.1 MaxMIL 83.4 59.7 54.9 CLAM 86.6 61.6 55.0 ABMIL 86.9 62.0 56.4 MHIM-ABMIL 87.3 62.4 57.2 DSMIL 86.0 59.7 54.1 DTFD-MIL 88.1 61.6 56.6 TransMIL 84.5 57.5 49.9 MHIM-TransMIL 85.4 58.8 51.6 S4MIL 85.8 59.2 53.4 RRTMIL 87.4 59.7 53.9 MambaMIL 87.2 59.7 53.4 CAMIL 86.8 60.6 55.2 RPMIL 88.2 62.0 58.0 ACMIL 88.0 61.8 57.2 Jigsaw 88.4 62.2 58.4 LEAF-Mamba 89.4 64.0 59.6 Best scores in each column are in bold. Average summarizes the four diagnostic settings.
Table 3: Diagnostic classification results with CONCH v1.5 features. All scores are percentages; higher is better.
Five-cohort average Method ResNet-50 PLIP CONCH v1.5 CLAM 58.8 59.0 64.4 ABMIL 59.1 60.9 62.5 TransMIL 65.5 64.9 63.9 S4MIL 65.1 63.0 64.7 RRTMIL 66.0 63.7 65.2 MambaMIL 66.7 66.0 65.5 CAMIL 65.7 65.2 64.6 RPMIL 66.1 66.2 65.6 ACMIL 66.0 65.7 65.0 Jigsaw 66.9 67.1 67.0 LEAF-Mamba 67.0 67.3 67.3 Best scores in each column are in bold.
Table 4: Survival prediction results averaged over five TCGA cohorts. Values are C-index ×100 ; higher is better.
Branch and fusion ablation ID LEA Branches Fusion AUC ACC F1 F1 Yes Local only – 75.7 35.3 27.4 F2 Yes Global only – 76.8 36.4 29.2 F3 Yes Global + local Concat 77.2 37.0 30.4 F4 Yes Global + local Add 77.0 36.9 31.0 F5 Yes Global + local Mean 77.1 36.8 30.8 F6 Yes Global + local Equal gate 77.5 37.6 31.4 F7 Yes Global + local Static gate 77.8 37.9 31.3 F8 Yes Global + local Gated 78.6 40.0 32.7 F9 – Global + local Concat 76.7 37.0 29.8 LEA denotes latent evidence adaptation. F8 is the complete model. Best scores in each metric are in bold.
Table 5: Branch and fusion comparisons on BRACS official with CONCH v1.5 features. Values are percentages; higher is better.
Adapter performance and parameter counts Parameters (K) Adapter Train Infer. AUC ACC F1 No adapter (frozen PCA bridge) 0.0 0.0 75.1 34.4 27.4 Linear projection 196.9 196.9 75.5 36.4 27.9 Two-layer MLP 721.9 721.9 76.8 36.1 28.3 Residual bottleneck adapter 722.4 722.4 76.4 35.7 28.5 LEA without reconstruction 723.5 723.5 75.8 35.8 28.1 Full LEA 1250.0 723.5 76.8 36.4 29.2 K denotes 1,000 parameters; counts are rounded to one decimal place. Training includes the reconstruction decoder; inference excludes it. Best performance scores are in bold.
Table 6: Adapter comparisons on BRACS official with CONCH v1.5 features under global-only aggregation. Performance values are percentages.
(a) BRACS official / CONCH v1.5 ID LEA Aggregation AUC ACC F1 C1 – Global only 76.6 35.3 27.7 C2 Yes Global only 76.8 36.4 29.2 C3 – Global + local ∗ 77.2 37.4 31.6 C4 Yes Global + local ∗ 78.6 40.0 32.7
(b) BRACS official / PLIP ID LEA Aggregation AUC ACC F1 C1 – Global only 76.9 35.9 26.5 C2 Yes Global only 75.5 34.4 27.6 C3 – Global + local ∗ 77.2 29.6 29.3 C4 Yes Global + local ∗ 77.8 36.0 29.8
(c) Camelyon16 / CONCH v1.5 ID LEA Aggregation AUC ACC F1 C1 – Global only 97.2 92.2 89.9 C2 Yes Global only 97.8 92.7 89.7 C3 – Global + local ∗ 97.5 93.8 92.7 C4 Yes Global + local ∗ 97.9 94.2 92.5
(d) TCGA-BRCA / CONCH v1.5 ID LEA Aggregation C-index C1 – Global only 67.2 C2 Yes Global only 68.1 C3 – Global + local ∗ 66.0 C4 Yes Global + local ∗ 68.0 ∗ denotes gated global–local fusion. C4 is the complete model. Best scores in each setting are in bold.
Table 7: Cross-setting component comparisons. Classification values are percentages; survival values are C-index ×100 . Higher is better.
Figure 5: Qualitative attention comparison on a BRACS malignant carcinoma case. The displayed top- k patches differ between the models, and LEAF-Mamba predicts the correct malignant carcinoma label in this example.
Whole slide image analysis is commonly formulated as multiple instance learning (MIL), where instance features are contextually updated and aggregated into a slide representation, a process we term slide encoding dynamics. Recently, selective state-space models (SSM) have emerged as promising MIL architectures due to their long-sequence modeling capability and linear complexity. However, existing SSM-based MIL methods rely solely on visual features during MIL. Meanwhile, in large-scale WSIs, where sparse diagnostically decisive regions are surrounded by abundant irrelevant information, such purely vision-driven selective dynamics can misallocate state updates and readouts, causing the evolving SSM state to accumulate task-irrelevant evidence and dilute critical diagnostic cues over long scan trajectories. In this work, we propose the Knowledge-Aware Hidden-State Modulation architecture (KHiM-Mamba), which innovatively regulates Mamba's core selective state-space mechanism with explicit knowledge priors, steering slide encoding dynamics toward diagnostically meaningful evidence accumulation. Specifically, we redesign the original SSM layer to perform knowledge modulation operations during the evolution of hidden states, thereby guiding what visual evidence is accumulated and retrieved from the hidden state at each encoding step. Furthermore, we additionally introduce a local-adaptive vocabulary retrieval module that uses large language models to assign each patch fine-grained, tissue-specific semantic descriptions, enabling precise modulation across diverse tasks. Experiments on 11 public benchmarks across 4 tasks show that KHiM-Mamba consistently achieves state-of-the-art performance.
Qixiang Zhang, Yi Li, Tianqi Xiang +4
Department of Electronic and Computer Engineering, The Hong Kong University of Science and Technology, Hong Kong, China · Center for Intelligent Oncology, Chongqing University Cancer Hospital and Chongqing University School of Medicine, and Chongqing Key Laboratory of Intelligent Oncology for Breast Cancer, Chongqing, 400030, China
Whole Slide Image (WSI) analysis is pivotal in computational pathology, enabling cancer diagnosis by integrating morphological and architectural cues across magnifications. Multiple Instance Learning (MIL) serves as the standard framework for WSI analysis. Recently, Mamba has become a promising backbone for MIL, overtaking Transformers due to its efficiency and global context modeling capabilities originating from Natural Language Processing (NLP). However, existing Mamba-based MIL approaches face three critical challenges: (1) disruption of 2D spatial locality during 1D sequence flattening; (2) sub-optimal modeling of fine-grained local cellular structures; and (3) high memory peaks during inference on resource-constrained edge devices. Studies like MambaOut reveal that Mamba's SSM component is redundant for local feature extraction, where Gated CNNs suffice. Recognizing that WSI analysis demands both fine-grained local feature extraction akin to natural images, and global context modeling akin to NLP, we propose MambaBack, a novel hybrid architecture that harmonizes the strengths of Mamba and MambaOut. First, we propose the Hilbert sampling strategy to preserve the 2D spatial locality of tiles within 1D sequences, enhancing the model's spatial perception. Second, we design a hierarchical structure comprising a 1D Gated CNN block based on MambaOut to capture local cellular features, and a BiMamba2 block to aggregate global context, jointly enhancing multi-scale representation. Finally, we implement an asymmetric chunking design, allowing parallel processing during training and chunking-streaming accumulation during inference, minimizing peak memory usage for deployment. Experimental results on five datasets demonstrate that MambaBack outperforms seven state-of-the-art methods. Source code and datasets are publicly available.
Sicheng Chen, Chad Wong, Tianyi Zhang +3
Nhu Department of Electrical Engineering and Computer Science, University of California, Irvine · Department of Electrical & Computer Engineering, National University of Singapore · PuzzleLogic Pte Ltd, Singapore 229594, Singapore
Whole slide image (WSI) analysis heavily relies on multiple instance learning (MIL). While recent methods benefit from large-scale foundation models and advanced sequence modeling to capture long-range dependencies, they still struggle with two critical issues. First, directly applying frozen, task-agnostic features often leads to suboptimal separability due to the domain gap with specific histological tasks. Second, relying solely on global aggregators can cause over-smoothing, where sparse but critical diagnostic signals are overshadowed by the dominant background context. In this paper, we present ReconMIL, a novel framework designed to bridge this domain gap and balance global-local feature aggregation. Our approach introduces a Latent Space Reconstruction module that adaptively projects generic features into a compact, task-specific manifold, improving boundary delineation. To prevent information dilution, we develop a bi-stream architecture combining a Mamba-based global stream for contextual priors and a CNN-based local stream to preserve subtle morphological anomalies. A scale-adaptive selection mechanism dynamically fuses these two streams, determining when to rely on overall architecture versus local saliency. Evaluations across multiple diagnostic and survival prediction benchmarks show that ReconMIL consistently outperforms current state-of-the-art methods, effectively localizing fine-grained diagnostic regions while suppressing background noise. Visualization results confirm the models superior ability to localize diagnostic regions by effectively balancing global structure and local granularity.
Lubin Gan, Jing Zhang, Heng Zhang +4
USTC, Anhui, China · Anhui Province Key Laboratory of Biomedical Imaging and Intelligent Processing, Institute of Artificial Intelligence, Hefei Comprehensive National Science Center, Anhui, China · SCNU, Guangdong, China +2