Rethinking Transformer for Long Contextual Histopathology Whole Slide Image Analysis
Not on the map. Why?
Abstract (arXiv)
Histopathology Whole Slide Image (WSI) analysis serves as the gold standard for clinical cancer diagnosis in the daily routines of doctors. To develop computer-aided diagnosis model for WSIs, previous methods typically employ Multi-Instance Learning to enable slide-level prediction given only slide-level labels. Among these models, vanilla attention mechanisms without pairwise interactions have traditionally been employed but are unable to model contextual information. More recently, self-attention models have been utilized to address this issue. To alleviate the computational complexity of long sequences in large WSIs, methods like HIPT use region-slicing, and TransMIL employs approximation of full self-attention. Both approaches suffer from suboptimal performance due to the loss of key information. Moreover, their use of absolute positional embedding struggles to effectively handle long contextual dependencies in shape-varying WSIs. In this paper, we first analyze how the low-rank nature of the long-sequence attention matrix constrains the representation ability of WSI modelling. Then, we demonstrate that the rank of attention matrix can be improved by focusing on local interactions via a local attention mask. Our analysis shows that the local mask aligns with the attention patterns in the lower layers of the Transformer. Furthermore, the local attention mask can be implemented during chunked attention calculation, reducing the quadratic computational complexity to linear with a small local bandwidth. Building on this, we propose a local-global hybrid Transformer for both computational acceleration and local-global information interactions modelling. Our method, Long-contextual MIL (LongMIL), is evaluated through extensive experiments on various WSI tasks to validate its superiority. Our code will be available at github.com/invoker-LL/Long-MIL.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 71 of its 94 references that are in the map. First posted on arXiv 18 Oct 2024.
Builds on
71 of 94 references.
References · 71
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
38 more
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Reformer: The Efficient Transformercited by 1,668
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2018Attention-based Deep Multiple Instance Learningcited by 1,095
- 2024VMamba: Visual State Space Modelcited by 969
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2020Data Efficient and Weakly Supervised Computational Pathology on Whole Slide Imagescited by 745
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 645
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2021TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classificationcited by 555
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2020Dual-stream Multiple Instance Learning Network for Whole Slide Image Classification with Self-supervised Contrastive Learningcited by 478
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2018Stacked Cross Attention for Image-Text Matchingcited by 416
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 359
- 2022DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology Whole Slide Image Classificationcited by 256
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 207
- 2020Whole Slide Images based Cancer Survival Prediction using Attention Guided Deep Multiple Instance Learning Networkscited by 178
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
- 2019Blockwise Self-Attention for Long Document Understandingcited by 159
- 2021Self-attention Does Not Need O(n2) Memorycited by 154
- 2022Benchmarking Self-Supervised Learning on Diverse Pathology Datasetscited by 150
- 2021BRACS: A Dataset for BReAst Carcinoma Subtyping in H&E Histology Imagescited by 132
50 most cited of 71 All 71 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 5.
12 papers.
- 2024Multimodal Alignment and Fusion: A Surveycited by 74
- 2026Multimodal Model for Computational Pathology:Representation Learning and Image Compressioncited by 6
- 2025PathVQ: Reforming Computational Pathology Foundation Model for Whole Slide Image Analysis via Vector Quantizationcited by 3
- 2025PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classificationcited by 2
- 2025Adaptive Diagnostic Reasoning Framework for Pathology with Multimodal Large Language Modelscited by 2
- 2026Beyond Attention Heatmaps: How to Get Better Explanations for Multiple Instance Learning Models in Histopathologycited by 2
- 2025Hypergraph Mamba for Efficient Whole Slide Image Understandingcited by 1
- 2026BreastGPT: A Multimodal Large Language Model for the Full Spectrum of Breast Cancer Clinical Routinecited by 1
- 2025SAC-MIL: Spatial-Aware Correlated Multiple Instance Learning for Histopathology Whole Slide Image Classificationcited by 0
- 2025Revisiting Data Challenges of Computational Pathology: A Pack-based Multiple Instance Learning Training Frameworkcited by 0
- 2026PA-MIL: Phenotype-Aware Multiple Instance Learning Guided by Language Prompting and Genotype-to-Phenotype Relationshipscited by 0
- 2026Cellular-Communication-Level Interpretability for Pathology Foundation Models via Graph Distillation on Microenvironmentcited by 0
- 2026Cellular-Communication-Level Interpretability for Pathology Foundation Models via Graph Distillation on Microenvironment2 Aug 2026
- 2026BreastGPT: A Multimodal Large Language Model for the Full Spectrum of Breast Cancer Clinical Routine3 Jun 2026
- 2026Multimodal Model for Computational Pathology:Representation Learning and Image Compression19 Mar 2026
- 2026Beyond Attention Heatmaps: How to Get Better Explanations for Multiple Instance Learning Models in Histopathology9 Mar 2026
- 2026PA-MIL: Phenotype-Aware Multiple Instance Learning Guided by Language Prompting and Genotype-to-Phenotype Relationships30 Jan 2026
- 2025Adaptive Diagnostic Reasoning Framework for Pathology with Multimodal Large Language Models15 Nov 2025
- 2025Revisiting Data Challenges of Computational Pathology: A Pack-based Multiple Instance Learning Training Framework25 Sep 2025
- 2025SAC-MIL: Spatial-Aware Correlated Multiple Instance Learning for Histopathology Whole Slide Image Classification4 Sep 2025
- 2025Hypergraph Mamba for Efficient Whole Slide Image Understanding23 May 2025
- 2025PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classification20 Mar 2025
- 2025PathVQ: Reforming Computational Pathology Foundation Model for Whole Slide Image Analysis via Vector Quantization9 Mar 2025
- 2024Multimodal Alignment and Fusion: A Survey26 Nov 2024