PathM3: A Multimodal Multi-Task Multiple Instance Learning Framework for Whole Slide Image Classification and Captioning
Qifeng Zhou, Wenliang Zhong, Yuzhi Guo, Michael Xiao, Hehuan Ma, Junzhou Huang
TL;DR
PathM3 tackles the challenge of aligning gigapixel WSIs with scarce WSI-level captions by proposing a multimodal MIL framework that uses a frozen image encoder, a correlation module with Nyström attention to aggregate patch features, and a query-based transformer to fuse WSI visuals with captions. The model jointly optimizes classification and captioning via a multi-task objective, $L_{overall} = \alpha L_C + (1-\alpha) L_G$, leveraging limited captions through shared multimodal learning and a frozen LLM for generation. Empirical results on PatchGastric show state-of-the-art performance for both WSI classification (86.40% accuracy with image+text) and captioning metrics (BLEU@4 0.520, METEOR 0.394, SPICE 0.591), with ablations confirming the critical role of the correlation module and multi-task learning. These findings demonstrate data-efficient, interpretable multimodal histopathology analysis that better leverages WSI context and expert captions for diagnostic support.
Abstract
In the field of computational histopathology, both whole slide images (WSIs) and diagnostic captions provide valuable insights for making diagnostic decisions. However, aligning WSIs with diagnostic captions presents a significant challenge. This difficulty arises from two main factors: 1) Gigapixel WSIs are unsuitable for direct input into deep learning models, and the redundancy and correlation among the patches demand more attention; and 2) Authentic WSI diagnostic captions are extremely limited, making it difficult to train an effective model. To overcome these obstacles, we present PathM3, a multimodal, multi-task, multiple instance learning (MIL) framework for WSI classification and captioning. PathM3 adapts a query-based transformer to effectively align WSIs with diagnostic captions. Given that histopathology visual patterns are redundantly distributed across WSIs, we aggregate each patch feature with MIL method that considers the correlations among instances. Furthermore, our PathM3 overcomes data scarcity in WSI-level captions by leveraging limited WSI diagnostic caption data in the manner of multi-task joint learning. Extensive experiments with improved classification accuracy and caption generation demonstrate the effectiveness of our method on both WSI classification and captioning task.
