SLICEChat: Progressive In-Encoder Token Pruning for Whole-Slide Pathology Language Models

Ali Kerem Bozkurt, Baris Cem Bakay, Ibrahim Kulac, Cigdem Gunduz-Demir, Erkut Erdem, Aykut ErdemarXiv 2026

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:

  1. 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.
  2. 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.
  3. 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.
Figure 1. Overview of SLICEChat. Patch embeddings of the WSI are created by encoding the tiles with the CONCH v1.5 patch encoder. These patch embeddings are then transformed and pruned in the hybrid state-space slide encoder. The pruner uses learned queries to score and progressively select informative slide tokens. We use a LLaVA-style multimodal fusion to pass the pruned slide tokens to the MLLM.

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.
Figure 4. Overview of the slide encoder training stages. Blue arrows denote Stage 1 pretraining, while red arrows indicate Stage 2. In Stage 1, randomly masked tiles are processed by the hybrid encoder without pruning, and a lightweight MAE decoder reconstructs the masked tokens. In Stage 2, masking and the decoder are removed and the pruner is trained using CLIP-based text-slide alignment objectives.

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.
Figure 2. Spatial support of pruning windows under raster and Hilbert indexing. A contiguous window in column-major order may span spatially separated strips because irregular tissue bound- aries interrupt the raster traversal. Hilbert indexing keeps nearby patches close in the temporary pruning sequence, producing com- pact, block-like candidate regions with more regular boundaries. Hilbert indexing is used only to select removal regions; retained tokens continue through the encoder in row-major order.

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.
Figure 3. Region-aware progressive pruning across encoder stages. A slide with 4,785 patch tokens is reduced to 957 tokens over five pruning stages. Tokens removed at the current stage are shown in orange, and tokens removed at earlier stages are shown in dark blue. The selected regions remain spatially compact across stages, while retained tokens preserve their original row-major or- der for subsequent encoding.

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

BibTeX
@misc{bozkurt2026slicechat,
  author = {Ali Kerem Bozkurt and Baris Cem Bakay and Ibrahim Kulac and Cigdem Gunduz-Demir and Erkut Erdem and Aykut Erdem},
  title = {{SLICEChat: Progressive In-Encoder Token Pruning for Whole-Slide Pathology Language Models}},
  year = {2026},
  eprint = {2609.24894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.24894},
}
Figure