cs.CVMar 1, 2026

TC-SSA: Token Compression via Semantic Slot Aggregation for Gigapixel Pathology Reasoning

Authors: Zhuo Chen, Shawn Young, Lijian Xu

Organizations: Shenzhen University of Advanced Technology Shenzhen, Guangdong, China · University of Nottingham NingBo China NingBo, ZheJiang, China FoSE, Department of Mathematics with Applied Mathematics

Abstract

The application of large vision-language models to computational pathology holds great promise for diagnostic assistants but faces a critical computational bottleneck: the gigapixel scale of Whole Slide Images (WSIs). A single WSI typically contains over 105 patches, creating sequence lengths that exceed the constraints of standard Transformer architectures. Existing solutions often resort to spatial sampling, which risks discarding diagnostically critical evidence. To address this, we propose TC-SSA (Token Compression via Semantic Slot Aggregation), a learnable token compression framework that aggregates patch features into a fixed number of semantic slots. A gated routing module assigns patches to slots using sparse Top-2 routing, followed by weighted aggregation, enabling global slide coverage under a strict token budget. The resulting representation retains diagnostically relevant information while reducing the number of visual tokens to 1.7% of the original sequence. On the SlideBench(TCGA), our model achieves 78.34% overall accuracy and 77.14% on the diagnosis subset, outperforming sampling-based baselines under comparable token budgets. The method also generalizes to MIL classification, reaching AUC of 95.83% on TCGA-BRCA, 98.27% on TCGA-NSCLC and 79.80% on PANDA. These results suggest that learnable semantic aggregation provides an effective trade-off between efficiency and diagnostic performance for gigapixel pathology reasoning.

Figures & tables

Explore similar work

CardsList
  1. Learnable Token Sparsification for Efficient Gigapixel Whole Slide Image Reasoning

    Jun 7, 2026Jingzhi Chen, Landi He, Zhuo Chen +2Efficient VLM InferenceMedical VLMs

  2. PathSelect: Sequential Token Selection for Whole Slide Pathology

    Jul 26, 2026Jingzhi Chen, Landi He, Zehong Chen +2Efficient VLM InferenceMedical VLMs

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

    Sep 21, 2026Ali Kerem Bozkurt, Baris Cem Bakay, Ibrahim Kulac +3Efficient Multimodal InferenceMultimodal Large Language Models