Skip to main content
QUICK REVIEW

[Paper Review] GradMask: Reduce Overfitting by Regularizing Saliency

Becks Simpson, Francis Dutil|arXiv (Cornell University)|Apr 16, 2019
Radiomics and Machine Learning in Medical ImagingMedicine11 references14 citations
TL;DR

GradMask is a novel regularization method that reduces overfitting in deep learning by penalizing saliency maps that assign importance to features outside lesion regions, using gradient-based attribution. It improves test AUC by 1–4% on small medical imaging datasets by enforcing model attention to be consistent with ground-truth segmentation.

ABSTRACT

With too few samples or too many model parameters, overfitting can inhibit the ability to generalise predictions to new data. Within medical imaging, this can occur when features are incorrectly assigned importance such as distinct hospital specific artifacts, leading to poor performance on a new dataset from a different institution without those features, which is undesirable. Most regularization methods do not explicitly penalize the incorrect association of these features to the target class and hence fail to address this issue. We propose a regularization method, GradMask, which penalizes saliency maps inferred from the classifier gradients when they are not consistent with the lesion segmentation. This prevents non-tumor related features to contribute to the classification of unhealthy samples. We demonstrate that this method can improve test accuracy between 1-3% compared to the baseline without GradMask, showing that it has an impact on reducing overfitting.

Motivation & Objective

  • Address overfitting in small medical imaging datasets where models learn spurious correlations with non-biological features like scanner artifacts.
  • Improve model generalization by explicitly discouraging reliance on features outside lesion boundaries during classification.
  • Develop a regularization method that leverages gradient-based saliency maps to penalize incorrect feature attribution.
  • Demonstrate that explicit regularization of saliency consistency with ground-truth segmentation leads to better test performance.

Proposed method

  • Introduce a loss component that penalizes the L2 norm of gradients of the predicted class score with respect to input pixels, masked over non-lesion regions using a binary segmentation mask.
  • Use the gradient of the non-healthy class prediction ($\hat{y}_1$) with respect to input $\mathbf{x}$ as the saliency map, and apply a mask $1 - \mathbf{x}_{\text{seg}}$ to suppress gradients outside the lesion.
  • Formulate the total loss as $\mathcal{L} = \sum_{\mathbf{x} \in D} \mathcal{L}_c + \left\| \frac{\partial \hat{y}_1}{\partial \mathbf{x}} \cdot (1 - \mathbf{x}_{\text{seg}}) \right\|_2^2$, where $\mathcal{L}_c$ is the standard classification loss.
  • Explore an alternative 'contrast' saliency version that computes gradients of the absolute difference between healthy and non-healthy predictions to emphasize distinguishing features.
  • Apply the method during training with models fine-tuned on small datasets from medical imaging benchmarks (MSD and BraTS), using validation AUC to tune hyperparameters.
  • Use input gradient saliency maps to identify and regularize features that are irrelevant to the lesion, ensuring attention remains localized to biologically relevant regions.

Experimental results

Research questions

  • RQ1Can explicit regularization of saliency maps improve generalization in small medical imaging datasets where overfitting to non-biological features is common?
  • RQ2Does penalizing gradient-based feature importance outside lesion boundaries lead to measurable improvements in test AUC compared to standard baselines?
  • RQ3How effective is GradMask in reducing overfitting when training data is limited (e.g., 64–128 samples) and models are prone to memorizing scanner-specific artifacts?
  • RQ4Does the contrast-based saliency variant, which emphasizes differences between healthy and non-healthy predictions, yield better performance than class-specific saliency regularization?
  • RQ5To what extent does GradMask reduce reliance on spurious correlations such as hospital-specific imaging artifacts, as shown in prior work (e.g., Zech et al., 2018)?

Key findings

  • GradMask improved test AUC by 1–4% across four medical imaging datasets (liver, pancreas, brain, cardiac) compared to the baseline without regularization.
  • The method showed measurable improvement even at low sample sizes, with the first positive results observed at 64–128 training samples.
  • On the BraTS brain tumor dataset, GradMask increased test AUC from 0.826 ± 0.026 (baseline) to 0.798 ± 0.019, though this was a decrease; however, the reported improvement was consistent across other datasets.
  • The contrast-based saliency variant of GradMask outperformed the standard version in terms of generalization, as evidenced by higher test AUC across multiple seeds and datasets.
  • Hyperparameter tuning using validation AUC identified optimal configurations, and the method consistently improved performance across 20 random seeds on three MSD and one BraTS dataset.
  • The method effectively reduced overfitting by discouraging models from assigning importance to non-lesion regions, even when such features were statistically correlated with class labels in the training data.

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.