Abstract
Whole Slide Image (WSI) classification in digital pathology typically relies on Multiple Instance Learning (MIL) using feature encoders pre-trained on natural images. However, these encoders often fail to capture domain-specific histological nuances. We present Heuristic Clustering-driven Feature Fine-tuning (HC-FT), a novel framework that improves WSI classification by fine-tuning the feature encoder through a two-stage heuristic clustering strategy. By purifying positive samples and mining "hard negatives," HC-FT bridges the gap between general-purpose features and pathology-specific requirements, achieving state-of-the-art results on major benchmarks like CAMELYON16 and BRACS.
Introduction
In computational pathology, Whole Slide Images (WSIs) are gigapixel-scale images that exceed the memory capacity of standard deep learning architectures. To address this, researchers employ Multiple Instance Learning (MIL), where a WSI is treated as a "bag" of small patches. A feature encoder transforms these patches into low-dimensional vectors, which are then aggregated to produce a slide-level diagnosis.
The primary bottleneck in this pipeline is the feature encoder. Most existing methods utilize encoders pre-trained on natural image datasets like ImageNet. These features often lack the discriminative power required for the subtle textures of human tissue. While fine-tuning the encoder for specific pathology tasks is desirable, it is hindered by the absence of patch-level labels. Naive fine-tuning using only global slide labels often leads to overfitting on noisy data or neglecting "hard negatives"—non-cancerous patches that closely resemble malignant ones.
Methodology: HC-FT Framework
The proposed HC-FT framework introduces a task-oriented fine-tuning approach that leverages a well-trained MIL model to "self-label" patches via a two-stage heuristic clustering process.
The process consists of four main stages:
- Pseudo Label Initialization: A baseline MIL model evaluates all patches, ranking them by a "confidence score" derived from attention weights and predicted probabilities.
- Potential Negative Sample Mining: High-confidence patches are clustered using K-Means. Cluster centers are then used to identify patches in the low-confidence set that are distant from positive clusters, marking them as potential negatives.
- Pseudo Label Refinement: A second clustering round on the combined set "cleans" positive samples by removing outliers and identifies "hard negatives"—patches the model is likely to confuse with positive tissue.
- Encoder Fine-tuning: The feature encoder is fine-tuned using this purified, patch-level dataset.
This heuristic approach uses the internal logic of the clustering distribution to select reliable training samples, moving beyond simple reliance on initial model predictions.
Experimental Results
The HC-FT method was evaluated on two prominent public datasets: CAMELYON16 (breast cancer metastasis detection) and BRACS (breast carcinoma subtyping).
Performance Gains
HC-FT consistently outperformed state-of-the-art methods. On CAMELYON16, it achieved an AUC of 97.13%, significantly higher than BCL (94.34%) and WSI-FT (90.99%). On the more complex BRACS dataset, it reached an AUC of 85.85%.
Key Insights
- Feature Quality over Aggregator Complexity: A significant finding is that improving embedding quality is often more impactful than increasing aggregator complexity. Even simple MIL models see massive performance gains when paired with HC-FT features.
- Importance of Hard Negatives: By explicitly mining hard negatives, HC-FT forces the encoder to learn more discriminative, subtle features that distinguish between similar-looking benign and malignant tissues.
- Dynamic Adaptation: The use of a dynamic adjustment scheme for patch selection allows the model to adapt to varying slide sizes and ensures increasing data purity throughout training iterations.
Conclusion and Future Work
HC-FT demonstrates that heuristic clustering can effectively bridge the gap between slide-level labels and patch-level feature learning. While the method shows great promise, its performance remains somewhat dependent on the quality of the initial "warm-up" MIL model. Future research could explore incorporating self-supervised pretext tasks to further enhance encoder generalizability and investigating the transferability of fine-tuned features across different organs and pathologies.
Summary updated