Abstract
To develop deep learning-based models for automatic analysis of histopathology whole slide images (WSIs), the atomic entities to be directly processed are often the smaller patches cropped from WSIs as it is not always possible to feed a whole WSI to a model given its enormous size. However, a trained model tends to relate the slide-specific characteristics to diagnosis results because a large number of patches cropped from the same WSI will share common slide features and thus have strong correlations between them, resulting in deteriorated generalization capability of the trained model. Current approaches to alleviate this issue include data pre-processing (stain normalization or color augmentation) and adversarial learning, both of which introduce extra complications in computations. Alternatively, we propose to reduce the impact of this issue by introducing a new regularization term to the standard loss function to reduce the correlation of the patches from the same WSI. It is intuitive and easy-to-implement and introduces comparably smaller computation overhead compared to existing approaches. Experimental results prove that the proposed regularization term is able to enhance the generalization capability of learning models and consequently to achieve better performance. The code is available at: https://github.com/hrzhang1123/SlideCorrelationReduction
Introduction
In digital pathology, Whole Slide Images (WSIs) are massive, often exceeding 100,000 pixels in width. Due to GPU memory constraints, these images are typically divided into thousands of smaller patches for training deep learning models. However, this approach introduces a significant bias: patches from the same slide share identical staining conditions, tissue thickness, and scanning artifacts. Neural networks often "overfit" to these slide-specific characteristics—essentially a slide-level "fingerprint"—rather than learning the biological markers of disease. This leads to high training accuracy but poor generalization on unseen data.
Methods: Slide Correlation Reduction (SCR)
The authors propose Slide Correlation Reduction (SCR), a novel regularization term added to the standard loss function. Unlike existing solutions like stain normalization or adversarial training, SCR is a "plug-and-play" modification to the training objective:
- Feature Extraction: High-level feature vectors are extracted for each batch of patches.
- Similarity Penalty: A similarity score (via a Gramian matrix) is calculated for all patch pairs. If two patches originate from the same slide, the SCR term penalizes the model if their feature vectors are too similar.
- Adversarial Balance: This creates a competition between the classification loss (identifying disease) and the SCR term (ignoring slide-specific commonalities).
Experimental Results
The method was evaluated on two tasks: predicting nBAP1 expression in Uveal Melanoma and detecting metastases in the Camelyon16 dataset.
As shown in Figure 2, the SCR method significantly narrows the gap between training and validation performance. In the melanoma task, ResNet-50 performance improved from an AUC of 0.801 to 0.889. The highest performance was achieved by combining SCR with color jittering, reaching a peak AUC of 0.968.
Visualization using t-SNE plots confirms that without SCR, patches from the same slide cluster tightly in feature space. With SCR (Figure 6), these clusters disperse, proving the model has learned to ignore slide-specific artifacts in favor of more generalizable diagnostic features.
Conclusion
Slide Correlation Reduction provides a computationally efficient and architecturally simple way to improve the robustness of deep learning models in digital pathology. By penalizing intra-slide correlation at the feature level, the model is forced to focus on relevant biological signals, leading to superior performance on independent validation sets.
Summary updated