Act Like a Pathologist: Tissue-Aware Whole Slide Image Reasoning

Wentao Huang, Weimin Lyu, Peiliang Lou, Qingqiao Hu, Xiaoling Hu, Shahira Abousamra, Wenchao Han, Ruifeng Guo, Jiawei Zhou, Chao Chen, Chen Wang

TL;DR

HistoSelect is a hierarchical, question-guided framework for pathology Visual Question Answering (VQA) that mimics how human pathologists analyze gigapixel Whole Slide Images (WSIs). By filtering out irrelevant tissue regions and patches using an Information Bottleneck approach, it reduces visual token usage by 70% while simultaneously improving diagnostic accuracy and model explainability.

What Problem Does This Paper Address?

When pathologists examine a gigapixel Whole Slide Image (WSI) to answer a clinical question, they don't look at every cell under high magnification. Instead, they scan the slide broadly to identify relevant tissue types (like tumor regions) and then zoom in selectively on key visual evidence.

In contrast, current Multimodal Large Language Models (MLLMs) struggle with the sheer scale of WSIs, which can contain tens of thousands of image patches. Existing methods typically rely on uniform patch sampling or broad attention maps, treating all patches equally. This introduces massive information redundancy, overwhelms the downstream LLM's strict token limits with question-irrelevant noise, and creates a "black box" where clinicians cannot verify which patches drove the model's final answer.

Figure 1. Illustration of our HistoSelect framework. (a) The base- line method feeds a large number of patches indiscriminately into the VLM, leading to high redundancy and question-irrelevance. (b) Our question-guided tissue-aware selection method. The ques- tion guides the model to select a relevant and sparse subset of in- formative patches, which are then fed to the VLM for reasoning.

Methods

The authors introduce HistoSelect, a coarse-to-fine patch selection framework grounded in the Information Bottleneck (IB) principle. The pipeline operates in two primary stages:

  1. Tissue Segmentation (Coarse-Grained): Using pathologist-designed text prompts (e.g., "tumor," "stroma," "lymphocyte") and a pretrained vision-language foundation model (CONCH), the framework partitions the WSI into semantically coherent tissue groups based on cosine similarity.
  2. Hierarchical Selector (Fine-Grained):
  3. Group Sampler: Evaluates how relevant each coarse tissue group is to the specific input question and dynamically allocates a patch sampling rate to each group.
  4. Patch Selector: Ranks individual patches within the active groups by question relevance and extracts the top $K$ most informative patch tokens.

To train the model end-to-end despite the non-differentiable nature of discrete patch selection, the authors utilize a Straight-Through Estimator (STE) alongside a dual-level compression loss that penalizes the model for selecting redundant or question-irrelevant tokens.

Figure 3. Overview of HistoSelect. The framework operates in two stages: Tissue Segmentation partitions the WSI into M tissue types (e.g., tumor, stromal, lymphocyte) using pathologist-designed prompts. The Hierarchical Selector then uses the question feature to dynam- ically select the top K most relevant patch tokens, which are subsequently passed to the LLM for multi-modal answer generation.

Datasets

The framework was evaluated on over 356,000 question-answer pairs across three distinct benchmarks:

  • SlideBench-VQA: A public benchmark containing 4,560 WSIs and 176K VQA pairs spanning 31 cancer types, focusing on microscopy, diagnosis, and clinical scenarios.
  • WSI-Bench: A public dataset consisting of 9,850 WSIs and 180K VQA pairs covering morphological analysis, diagnosis, and treatment planning.
  • Private Ovarian Dataset: An in-house independent test set consisting of 375 WSIs and 375 pathologist-annotated VQA pairs, used to evaluate clinical robustness and generalizability.

Key Insights and Ideas

  • Question-Guided vs. Question-Agnostic: Traditional unsupervised selection strategies (like diversity sampling or random sampling) fail to capture the specific visual evidence required for nuanced clinical questions. Guiding the selection mechanism directly with the question text drastically improves the retrieval of relevant patches.
  • The Token Budget Sweet Spot: More data isn't always better. The authors found that model performance peaks at a budget of 5,000 tokens. Increasing the budget to 10,000 tokens actually degraded performance slightly due to the reintroduction of redundant visual noise.
  • Synergistic Architecture: Ablation studies revealed that omitting either the Group Sampler or the Patch Selector significantly harms performance. Coarse group-level filtering effectively narrows the global search space, allowing the fine-grained patch selector to work more accurately.
Figure 2. Visualization and quantitative pre-analysis of patch relevance for a VQA sample (from TCGA-BRCA). (a) Reference WSI. (b) Tissue segmentation, with tumor region shown in red. (c) Patch-level relevance heatmap based on question-patch similarity. High-relevance regions (light region) align with the tumor region from (b). (d) F1 score comparison for retrieving tumor patches using different sampling methods. The question-guided (red) sampling strategy vastly outperforms question-agnostic methods like diversity sampling [2] (blue) and random sampling (gray), demonstrating the limited efficacy of non-guided selection.

Key Results

  • State-of-the-Art Accuracy: HistoSelect achieved the highest accuracy across all tested categories on the close-ended VQA benchmarks, reaching an overall average score of 83.80% and outperforming strong baselines like SlideChat and Quilt-LLaVA.
  • 70% Efficiency Gain: The model achieved its optimal accuracy using only 30% of the total patches in a WSI, representing a 70% reduction in visual token computation.
  • Pathologist Validation: In a blind evaluation survey, practicing pathologists rated HistoSelect's tissue segmentation accuracy at 4.17/5 and its patch selection relevance at 4.80/5, confirming that the model's attention aligns closely with human clinical intuition.

Limitations and Future Work

While HistoSelect significantly bridges the gap between automated WSI analysis and clinical workflows, the authors note a few areas for improvement:

  • Predefined Tissue Categories: The initial tissue segmentation relies on a fixed set of pathologist-defined prompts. Future iterations could explore dynamic or open-vocabulary prompt generation to capture rarer histological structures.
  • Inference Latency vs. Agentic Models: While HistoSelect avoids the high latency of iterative, agent-based sequential navigation models, optimizing the initial full-slide embedding step remains crucial for real-time clinical deployment.

Summary updated

BibTeX
@inproceedings{huang2026act,
  author = {Wentao Huang and Weimin Lyu and Peiliang Lou and Qingqiao Hu and Xiaoling Hu and Shahira Abousamra and Wenchao Han and Ruifeng Guo and Jiawei Zhou and Chao Chen and Chen Wang},
  title = {{Act Like a Pathologist: Tissue-Aware Whole Slide Image Reasoning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=y3vz2PNq2X},
}
Figure