HMIL: Hierarchical Multi-Instance Learning for Fine-Grained Whole Slide Image Classification
Cheng Jin, Luyang Luo, Huangjing Lin, Jun Hou, Hao Chen
TL;DR
The paper tackles fine-grained WSI classification by introducing HMIL, a hierarchical multi-instance learning framework that leverages coarse-to-fine label structure through class-wise attention and hierarchical alignment at both instance and bag levels. It combines offline and online feature extraction, supervised contrastive learning, and a curriculum-based dynamic weighting strategy to learn discriminative embeddings without heavy instance-level annotations. HMIL achieves state-of-the-art results on BRACS, PANDA, and CCC datasets, demonstrating improved accuracy, specificity, and AUC for both fine- and coarse-grained tasks, and shows robustness across histology and cytology modalities. The work advances WSI analysis by enforcing semantic consistency across label hierarchies and reducing annotation burdens, with potential for integration with pathology foundation models and domain adaptation strategies.
Abstract
Fine-grained classification of whole slide images (WSIs) is essential in precision oncology, enabling precise cancer diagnosis and personalized treatment strategies. The core of this task involves distinguishing subtle morphological variations within the same broad category of gigapixel-resolution images, which presents a significant challenge. While the multi-instance learning (MIL) paradigm alleviates the computational burden of WSIs, existing MIL methods often overlook hierarchical label correlations, treating fine-grained classification as a flat multi-class classification task. To overcome these limitations, we introduce a novel hierarchical multi-instance learning (HMIL) framework. By facilitating on the hierarchical alignment of inherent relationships between different hierarchy of labels at instance and bag level, our approach provides a more structured and informative learning process. Specifically, HMIL incorporates a class-wise attention mechanism that aligns hierarchical information at both the instance and bag levels. Furthermore, we introduce supervised contrastive learning to enhance the discriminative capability for fine-grained classification and a curriculum-based dynamic weighting module to adaptively balance the hierarchical feature during training. Extensive experiments on our large-scale cytology cervical cancer (CCC) dataset and two public histology datasets, BRACS and PANDA, demonstrate the state-of-the-art class-wise and overall performance of our HMIL framework. Our source code is available at https://github.com/ChengJin-git/HMIL.
