TL;DR
SLICEChat introduces a novel slide-level multimodal large language model (MLLM) designed to handle gigapixel whole-slide pathology images efficiently. By interleaving a hybrid Mamba–Transformer encoder with language-supervised, region-aware token pruning, it drastically reduces visual token counts while achieving state-of-the-art diagnostic accuracy and low inference latency.
What Problem Does This Paper Address?
Whole-slide images (WSIs) in digital pathology are massive, often spanning gigapixels and containing billions of pixels. When these images are tiled into patches for multimodal large language models (MLLMs) to perform visual question answering (VQA), they generate tens of thousands of visual tokens.
Standard transformer architectures suffer from quadratic computational complexity relative to sequence length, making direct processing of these ultra-long sequences computationally prohibitive. While existing methods attempt to compress tokens, they typically do so after full slide encoding. This leaves the initial encoding phase incredibly expensive and decouples representation learning from the downstream multimodal constraints.
Methods
SLICEChat addresses this bottleneck by integrating progressive token reduction directly into the encoding process using a three-pronged approach:
- Hybrid Mamba–Transformer Backbone: The slide encoder combines the strengths of State-Space Models (SSMs) and attention layers. Early stages utilize Vision Mamba blocks to achieve linear-time sequence processing over ultra-long patch sequences, while later stages leverage Transformer blocks for rich global interactions once the sequence has been shortened.
- Progressive Semantic Pruning: Lightweight router modules are inserted between successive encoder stages. These modules use cross-attention with learned queries to score the semantic importance of tokens dynamically as their representations are refined.
- Region-Aware Selection via Hilbert Curves: Independent token removal often creates fragmented, scattered deletions. To preserve spatial coherence, SLICEChat maps 2D patch coordinates to a 1D sequence using a Hilbert space-filling curve. This keeps neighboring patches close together, allowing the model to prune contiguous, block-like tissue regions of low utility.
Training Strategy
The model is trained in three distinct stages:
- Stage 1 (Self-Supervised): Pretraining the hybrid backbone using a masked autoencoder (MAE) objective on unlabeled slides.
- Stage 2 (Language-Supervised Pruning): Training the pruner modules using a CLIP-style contrastive loss that aligns retained visual tokens with medical report text embeddings from PubMedBERT.
- Stage 3 (Multimodal Alignment): Jointly fine-tuning the projection layer and the base language model (Qwen2.5-VL-7B) on VQA and captioning datasets.
Datasets
The authors utilized several large-scale histopathology datasets:
- SlideInstruct: 4,181 WSIs paired with slide-level captions and 175,734 VQA pairs (derived from The Cancer Genome Atlas, or TCGA).
- WSI-Bench: 9,836 WSIs, 9,748 captions, and 167,425 VQA pairs.
- SlideBench VQA: Used for evaluation, featuring a TCGA cohort (1,494 pairs) and a Breast Cancer Core-Needle Biopsy (BCNB) cohort (7,274 pairs).
- Unlabeled TCGA Data: 11,410 WSIs reserved exclusively for self-supervised pretraining.
Key Insights and Ideas
- Pruning as an Inductive Bias: Surprisingly, aggressive pruning (setting a keep rate of 0.2, or retaining just 20% of tokens) actually outperformed keeping 100% of the tokens. This indicates that removing diagnostically uninformative background tissue acts as a powerful inductive bias, filtering out noise so the language model can focus on high-utility regions.
- The Power of Hilbert Curves: Standard column-major or raster scanning can break up continuous tissue boundaries when mapping 2D space to a 1D sequence. Hilbert curves preserve local neighborhoods, ensuring that pruned tokens form clean, spatially coherent blocks rather than a scattered mosaic of deleted patches.
Key Results
- SlideBench VQA: SLICEChat achieved state-of-the-art accuracy of 79.84% on TCGA and 59.09% on BCNB, outperforming prior slide-level pathology MLLMs like SlideChat and HistoSelect.
- WSI-Bench: The model set new records across open-ended reasoning tasks, achieving the highest overall metrics (0.607 WSI-Precision and 0.776 WSI-Relevance).
- Computational Efficiency: On an NVIDIA A100 GPU, SLICEChat demonstrated a highly competitive inference latency of 2001 ms and a peak memory footprint of 15.054 GiB, making it significantly faster than models that do not utilize progressive pruning.
Limitations and Future Work
- Text Dependency: The language-supervised pruning stage relies heavily on the quality and granularity of paired text reports to learn what constitutes "informative" tissue.
- Fixed Keep-Rates: The model currently utilizes a fixed, geometric keep-rate schedule across its pruning modules. The authors note that exploring dynamic, image-dependent pruning rates—where simpler slides are pruned more aggressively than highly complex ones—remains a promising direction for future research.
Summary updated