WSI-VQA: Interpreting Whole Slide Images by Generative Visual Question Answering
Pingyi Chen, Chenglu Zhu, Sunyi Zheng, Honglin Li, Lin Yang
TL;DR
The paper tackles the challenge of interpreting gigapixel whole-slide images (WSIs) by reframing slide-level pathology tasks as generative visual question answering. It introduces the Wsi2Text Transformer (W2T), a multimodal model that aligns patch-level visual embeddings with word-level question embeddings via co-attention to generate free-form answers, and it curates the first WSI-VQA dataset with 977 WSIs and 8672 QA pairs (close-ended and open-ended). The results show W2T competitive performance across histological subtyping, biomarker prediction, and survival tasks while offering interpretable co-attention heatmaps that highlight clinically relevant regions. This work advances computational pathology by providing a scalable, unified framework and a public dataset that can underpin future multimodal large language models in the domain, with potential for clinical impact and broader applicability to large-resolution modalities.
Abstract
Whole slide imaging is routinely adopted for carcinoma diagnosis and prognosis. Abundant experience is required for pathologists to achieve accurate and reliable diagnostic results of whole slide images (WSI). The huge size and heterogeneous features of WSIs make the workflow of pathological reading extremely time-consuming. In this paper, we propose a novel framework (WSI-VQA) to interpret WSIs by generative visual question answering. WSI-VQA shows universality by reframing various kinds of slide-level tasks in a question-answering pattern, in which pathologists can achieve immunohistochemical grading, survival prediction, and tumor subtyping following human-machine interaction. Furthermore, we establish a WSI-VQA dataset which contains 8672 slide-level question-answering pairs with 977 WSIs. Besides the ability to deal with different slide-level tasks, our generative model which is named Wsi2Text Transformer (W2T) outperforms existing discriminative models in medical correctness, which reveals the potential of our model to be applied in the clinical scenario. Additionally, we also visualize the co-attention mapping between word embeddings and WSIs as an intuitive explanation for diagnostic results. The dataset and related code are available at https://github.com/cpystan/WSI-VQA.
