Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Classification for Improved Histopathology Image Analysis

Keunho Byeon, Jinsol Song|arXiv (Cornell University)|Feb 28, 2026
AI in cancer detectionComputer Science0 citations
TL;DR

HiClass introduces a hierarchical, bidirectional feature integration framework with tailored loss functions to jointly optimize coarse-grained and fine-grained whole-slide image classification in histopathology. It outperforms flat MIL and other baselines on a gastric biopsy dataset.

ABSTRACT

Whole-slide image analysis is essential for diagnostic tasks in pathology, yet existing deep learning methods primarily rely on flat classification, ignoring hierarchical relationships among class labels. In this study, we propose HiClass, a hierarchical classification framework for improved histopathology image analysis, that enhances both coarse-grained and fine-grained WSI classification. Built based upon a multiple instance learning approach, HiClass extends it by introducing bidirectional feature integration that facilitates information exchange between coarse-grained and fine-grained feature representations, effectively learning hierarchical features. Moreover, we introduce tailored loss functions, including hierarchical consistency loss, intra- and inter-class distance loss, and group-wise cross-entropy loss, to further optimize hierarchical learning. We assess the performance of HiClass on a gastric biopsy dataset with 4 coarse-grained and 14 fine-grained classes, achieving superior classification performance for both coarse-grained classification and fine-grained classification. These results demonstrate the effectiveness of HiClass in improving WSI classification by capturing coarse-grained and fine-grained histopathological characteristics.

Motivation & Objective

  • Motivate leveraging the natural hierarchy of histopathology labels (coarse-grained vs fine-grained) to improve WSI classification.
  • Develop a hierarchical MIL-based framework with bidirectional feature exchange between hierarchy levels.
  • Propose hierarchy-aware loss terms to enforce consistency, within-group discrimination, and constrained intra-group/out-group separation.
  • Demonstrate improved performance on a gastric endoscopic biopsy dataset across both coarse- and fine-grained tasks.

Proposed method

  • Patch-level encoder extracts 1024-dim features for 512x512 patches using a self-supervised pre-trained UNI model.
  • Attention-based MIL-style feature aggregation produces a single slide-level representation.
  • Bidirectional feature integration splits the slide feature into coarse-grained (256-d) and fine-grained (256-d) vectors and exchanges information via a gradient-controlled mechanism.
  • Each branch passes augmented features through a projection head and a classification head to produce coarse- and fine-grained logits.
  • Four hierarchy-aware losses are used: cross-entropy loss (L_CE) for both levels; hierarchical consistency loss (L_Con) using Jensen-Shannon Divergence; intra- and inter-class distance loss (L_Int) with KL divergence; and group-wise cross-entropy loss (L_GCE) restricting fine-grained predictions to the same coarse category.
Figure 1 : Overview of HiClass. $N_{p}$ , $N_{c}$ , and $N_{f}$ represent the number of patches, coarse-grained classes, and fine-grained classes, respectively.
Figure 1 : Overview of HiClass. $N_{p}$ , $N_{c}$ , and $N_{f}$ represent the number of patches, coarse-grained classes, and fine-grained classes, respectively.

Experimental results

Research questions

  • RQ1Can a hierarchy-aware framework improve both coarse-grained and fine-grained WSI classification compared to flat approaches?
  • RQ2Does bidirectional feature integration better preserve hierarchical semantics than uni-directional or no integration?
  • RQ3Do specialized loss terms collaboratively enhance hierarchical learning and discriminability within and across coarse/fine levels?
  • RQ4How does HiClass perform on a real gastric biopsy dataset with 4 coarse-grained and 14 fine-grained classes?

Key findings

  • HiClass achieves 85.10% accuracy and 0.8610 F1-macro for coarse-grained classification on the gastric biopsy dataset.
  • HiClass achieves 68.68% accuracy and 0.5220 F1-macro for fine-grained classification.
  • HiClass outperforms all compared MIL and hierarchical models on both coarse- and fine-grained tasks across multiple baselines.
  • Bidirectional feature integration consistently improves performance over uni-directional or no integration.
  • The combination of L_Con, L_Int, and L_GCE with L_CE yields the best hierarchical performance, highlighting the importance of joint losses.
Figure 2 : Illustration of proposed hierarchy-aware loss functions. (a) Standard cross-entropy loss is applied independently to coarse- and fine-level predictions. (b) Hierarchical consistency loss ( $L_{Con}$ ) aligns the most confident coarse- and fine-level features using Jensen-Shannon divergenc
Figure 2 : Illustration of proposed hierarchy-aware loss functions. (a) Standard cross-entropy loss is applied independently to coarse- and fine-level predictions. (b) Hierarchical consistency loss ( $L_{Con}$ ) aligns the most confident coarse- and fine-level features using Jensen-Shannon divergenc

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.