Causally Guided Gaussian Perturbations for Out-Of-Distribution Generalization in Medical Imaging
Haoran Pei, Yuguang Yang, Kexin Liu, Baochang Zhang
TL;DR
The paper tackles the challenge of out-of-distribution generalization in medical imaging by introducing Causally-Guided Gaussian Perturbations (CGP), a lightweight, plug-in framework that uses Vision Transformer–derived soft causal masks to apply spatially varying Gaussian noise. By perturbing background regions more than foreground areas and weighting adversarial loss by model confidence, CGP acts as a causal intervention encouraging models to rely on invariant, causally relevant features. Evaluated on Camelyon17 (WILDS), CGP yields consistent OOD improvements over strong baselines with only a small trade-off in in-domain accuracy, and qualitative analyses show the masks focus on diagnostically meaningful regions. The approach suggests that simple, causally informed perturbations can enhance robustness and interpretability in medical imaging without heavy generative modeling or adversarial training, with potential for broader domain adoption and future refinement of mask fidelity.
Abstract
Out-of-distribution (OOD) generalization remains a central challenge in deploying deep learning models to real-world scenarios, particularly in domains such as biomedical images, where distribution shifts are both subtle and pervasive. While existing methods often pursue domain invariance through complex generative models or adversarial training, these approaches may overlook the underlying causal mechanisms of generalization.In this work, we propose Causally-Guided Gaussian Perturbations (CGP)-a lightweight framework that enhances OOD generalization by injecting spatially varying noise into input images, guided by soft causal masks derived from Vision Transformers. By applying stronger perturbations to background regions and weaker ones to foreground areas, CGP encourages the model to rely on causally relevant features rather than spurious correlations.Experimental results on the challenging WILDS benchmark Camelyon17 demonstrate consistent performance gains over state-of-the-art OOD baselines, highlighting the potential of causal perturbation as a tool for reliable and interpretable generalization.
