Manuscript Offprint

arXiv:2610.07913

Multimodal Knowledge Distillation for Gastric Adenocarcinoma Classification from Whole-Slide Images

Shrihari Dumbre, Bikash Santra

Shrihari Dumbre 1^{1} and Bikash Santra 1^{1}

Indian Institute of Technology, Jodhpur

b23ee1069@iitj.ac.in, bikash@iitj.ac.in

Abstract. Gastric adenocarcinoma (GA) is a leading cause of cancer-related mortality worldwide, and accurate histopathological subtype classification from whole-slide images (WSIs) is essential for effective treatment planning. While multimodal approaches that integrate pathology report text with WSIs can improve classification, existing methods often depend on computationally expensive transformer architectures and large language models. We propose a multimodal knowledge distillation (MKD) framework that combines a pretrained WSI image encoder and a clinical text encoder using Low-Rank Multimodal Fusion (LMF) to efficiently model cross-modal interactions during training. Each WSI is represented as a bag of patches paired with a slide-level diagnostic caption. The teacher model learns fused image-text representations for subtype classification, while the student model distills this knowledge to enable accurate image-only inference. We evaluate our method on the PatchGastric benchmark dataset and achieve at least 3.35% higher mean accuracy than state-of-the-art approaches, without relying on transformer-based fusion, multi-task learning, or large language models. The source code is available at https://github.com/helomelo1/MKD-LMF.

Keywords: Multimodal Learning · Low-Rank Multimodal Fusion · Knowledge Distillation · Gastric Cancer Classification · Histopathology Image Analysis

1 Introduction

Accurate histological subtype classification of gastric adenocarcinoma from whole-slide images (WSIs) is clinically critical for treatment planning, yet morphological similarity between subtypes makes this task challenging even for experienced pathologists [15]. Most recent multimodal approaches [5–10] demonstrate that pairing WSI features with complementary data sources, such as genomic sequencing data, gene expression profiles and clinical records, improves classification. But most of them either require genomic sequencing data that is unavailable in routine clinical workflows [5, 6] or rely on highly complex architectures, such as PathM3 [10]. It employs a 12-layer Query Transformer initialized from

Shrihari Dumbre and Bikash Santra

BLIP-2 [11] together with a frozen FlanT5-XL decoder [22] for classification and caption generation jointly.

The PatchGastric dataset [15] is one of the few publicly available datasets that provide both histopathology patch images and WSI-level diagnostic captions (i.e., report summaries), making it well-suited for multimodal analysis of gastric adenocarcinoma. However, the dataset presents a significant challenge. Many WSIs across different subtypes share near-identical descriptions, limiting their standalone discriminating power. Due to real-world data scarcity, methods on this dataset follow a data-scarce training protocol, using only 20% of the WSIs for training. Prior methods on this dataset, such as PathM3 [10] address these challenges using complex multi-task learning-based frameworks that jointly optimize classification and caption-generation using large-language models. While effective, these methods introduce substantial computational overhead.

On the contrary, we propose an LMF-based multimodal fusion approach that fuses patch-level image features with pathology report captions using Low-Rank Multimodal Fusion (LMF) [12]. Notably, each WSI in the PatchGastric dataset [15] is provided as a set of pre-extracted patches of size 300×300300 \times 300 at 20×20 \times magnification. Following the Multiple Instance Learning paradigm [1], each WSI is treated as a bag of patch instances. Each patch embedding is obtained and mean-pooled via LMF to fuse with the WSI-level caption embedding. LMF models multiplicative cross-modal interactions through a low-rank tensor decomposition without requiring attention-based cross-modal modules [6, 10] or generative objectives [11, 10]. Pathology report captions are routinely generated during standard diagnostic workflows, making them a practical, readily available second modality alongside H&E-stained histopathology images. Unlike PG-MLIF [14], which applies LMF to fuse WSIs with genomic data for survival prediction, we apply LMF to the image-report setting for histological subtype classification of gastric adenocarcinoma.

Our experiments compare the proposed method against ABMIL [1], CLAM [3], DSMIL [4], TransMIL [2], CITE [18], ILRA-MIL [19] and PathM3 [10]. We use the same PatchGastric dataset and the same train-validation-test split ratio as in CITE [18] and PathM3 [10]. We use three gastric adenocarcinoma subtypes, including “well differentiated tubular adenocarcinoma”, “moderately differentiated tubular adenocarcinoma”, and “poorly differentiated adenocarcinoma”, similar to these baselines, thus enabling a direct comparison. We further conduct experiments on different multimodal fusion strategies and ablation studies across multiple LMF rank settings. The contributions of this work are the following:

– Lightweight multimodal framework: We propose an efficient multimodal knowledge distillation (MKD) approach that fuses WSI features and clinical text using Low-Rank Multimodal Fusion (LMF), avoiding heavy transformer-based architectures and large language models.

– Knowledge distillation for image-only inference: We introduce a teacher–student setup where multimodal knowledge learned during training is distilled into a student model, enabling accurate and efficient inference using only WSIs.

– Improved performance with efficiency: We conduct extensive experiments to analyze the contributions of individual modalities and the effect of the LMF rank in improving the gastric adenocarcinoma classification performance.

References (32)

  • Attention-based deep multiple instance learning
  • TransMIL: Transformer based correlated multiple instance learning for whole slide image classification
  • Data-efficient and weakly supervised computational pathology on whole-slide images
  • Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning
  • Pathomic fusion: An integrated framework for fusing histopathology and genomic features for cancer diagnosis and prognosis
  • Multimodal co-attention transformer for survival prediction in gigapixel whole slide images
  • Multimodal optimal transport-based co-attention transformer with global structure consistency for survival prediction
  • Cross-modal translation and alignment for survival analysis
  • Pathology-and-genomics multimodal transformer for survival outcome prediction
  • PathM3: A multimodal multi-task multiple instance learning framework for whole slide image classification and captioning (opens arXiv in a new tab)
  • BLIP-2: Bootstrapping language-image pretraining with frozen image encoders and large language models
  • Efficient low-rank multimodal fusion with modality-specific factors
  • Tensor fusion network for multimodal sentiment analysis
  • PG-MLIF: Multimodal low-rank interaction fusion framework integrating pathological images and genomic data for cancer prognosis prediction
  • Inference of captions from histopathological patches
  • Scaling self-supervised learning for histopathology with masked image modeling (opens the publisher in a new tab)
  • C-Pack: Packaged resources to advance general Chinese embedding (opens arXiv in a new tab)
  • Text-guided foundation model adaptation for pathological image classification
  • Exploring low-rank property in multiple instance learning for whole slide image classification
  • Solving the multiple instance problem with axis-parallel rectangles
  • Nyströmformer: A Nyström-based algorithm for approximating self-attention
  • Scaling Instruction-Finetuned Language Models
  • Distilling the knowledge in a neural network
  • FitNets: Hints for thin deep nets
  • Deep residual learning for image recognition
  • Layer Normalization
  • Gaussian Error Linear Units (GELUs)
  • Dropout: A simple way to prevent neural networks from overfitting
  • Fast R-CNN
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • Masked autoencoders are scalable vision learners
  • Adam: A method for stochastic optimization