Bi-directional Weakly Supervised Knowledge Distillation for Whole Slide Image Classification

Linhao Qu, Xiaoyuan Luo, Manning Wang, Zhijian Song

Introduction

In digital pathology, Whole Slide Images (WSIs) present a unique "needle in a haystack" challenge. These images are gargantuan, often exceeding 100,000 x 100,000 pixels, making them impossible to process directly on modern GPUs. The standard solution is to tile these images into thousands of small patches and apply Weakly Supervised Multiple Instance Learning (MIL). In this framework, a label is provided for the entire slide (the "bag"), but the specific patches (the "instances") containing the disease are unknown.

Existing MIL methods typically fall into two categories, both of which have significant drawbacks. Instance-based methods attempt to predict labels for individual patches, but their pseudo-labels are often incredibly noisy. Bag-based methods use attention mechanisms to weight the importance of patches, but these models tend to be "lazy." Once a model identifies a few obvious cancerous patches to justify a positive slide label, it stops searching for others, leading to poor localization of subtle or smaller diseased regions.

The WENO Framework

To address these limitations, the authors introduce WENO (WEakly supervised kNOwledge distillation), an end-to-end framework that integrates a bag-level "Teacher" and an instance-level "Student" in a bi-directional learning loop.

Bi-directional Knowledge Transfer

The Teacher (Bag Classifier) is trained on the ground-truth slide labels using an attention mechanism. The Student (Instance Classifier) then learns from the Teacher, but instead of using binary "yes/no" labels, it uses the Teacher’s normalized attention scores as "soft" pseudo-labels. This allows the Student to learn the relative importance and uncertainty of different patches. Crucially, the two networks share a feature extractor; as the Student learns more about specific patches, the shared features improve, which in turn enhances the Teacher’s ability to aggregate information.

Hard Positive Instance Mining (HPM)

The most innovative component of WENO is the Hard Positive Instance Mining strategy. To prevent the model from becoming "lazy" and over-relying on the most obvious features, HPM identifies "easy" patches—those the Student is already highly confident about—and temporarily masks them from the Teacher's view. This forces the Teacher to "keep mining" the slide for harder, more subtle positive instances that it would otherwise ignore. This results in a much more robust representation of the disease across the entire slide.

Experimental Evaluation

The researchers evaluated WENO across five diverse datasets, ranging from synthetic benchmarks to large-scale clinical data:

  • Synthetic Benchmarks: CIFAR-10-MIL and CRC-MIL (colorectal cancer) were used to test performance in scenarios with extremely low "Positive Instance Ratios" (where the needle is very small relative to the haystack).
  • Public Datasets: The well-known Camelyon16 (breast cancer) and TCGA (lung cancer) datasets.
  • Clinical Cervical Dataset: An in-house dataset for cervical cancer metastasis, representing a high-difficulty real-world clinical task.

Key Results

WENO achieved state-of-the-art (SOTA) results in both classification and localization:

  • Instance Localization: On Camelyon16, WENO improved the instance-level AUC from 0.8480 (using standard ABMIL) to 0.9271.
  • Slide Diagnosis: On the difficult Clinical Cervical dataset, the slide-level AUC increased from 0.6446 to 0.8222, a significant leap for clinical utility.
  • Robustness: WENO significantly outperformed traditional MIL methods in tests where only 1% of patches were positive, proving its effectiveness in detecting sparse features.

Discussion and Future Work

WENO demonstrates that the Student can actually outperform the Teacher because it benefits from seeing "clean" negative patches from negative slides directly. By using attention as a soft label and employing HPM to combat model laziness, WENO provides a more comprehensive analysis of pathology slides than previous attention-based models.

One limitation noted by the authors is that the HPM strategy requires hyperparameter tuning to define the threshold for "easy" patches, which currently requires a grid search. Future research may focus on making this threshold adaptive or extending the bi-directional distillation framework to other MIL domains, such as video analysis or anomaly detection.

Summary updated

BibTeX
@inproceedings{qu2022bi,
  author = {Linhao Qu and Xiaoyuan Luo and Manning Wang and Zhijian Song},
  title = {{Bi-directional Weakly Supervised Knowledge Distillation for Whole Slide Image Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure