MaskMedPaint: Masked Medical Image Inpainting with Diffusion Models for Mitigation of Spurious Correlations
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
Spurious features associated with class labels can lead image classifiers to rely on shortcuts that don't generalize well to new domains. This is especially problematic in medical settings, where biased models fail when applied to different hospitals or systems. In such cases, data-driven methods to reduce spurious correlations are preferred, as clinicians can directly validate the modified images. While Denoising Diffusion Probabilistic Models (Diffusion Models) show promise for natural images, they are impractical for medical use due to the difficulty of describing spurious medical features. To address this, we propose Masked Medical Image Inpainting (MaskMedPaint), which uses text-to-image diffusion models to augment training images by inpainting areas outside key classification regions to match the target domain. We demonstrate that MaskMedPaint enhances generalization to target domains across both natural (Waterbirds, iWildCam) and medical (ISIC 2018, Chest X-ray) datasets, given limited unlabeled target images.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 30 of its 45 references that are in the map. First posted on arXiv 16 Nov 2024.
Builds on
30 of 45 references.
References · 30
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructionscited by 2,591
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
18 more
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2017ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseasescited by 969
- 2021Resolution-robust Large Mask Inpainting with Fourier Convolutionscited by 730
- 2019Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)cited by 657
- 2019MIMIC-CXR-JPG, a large publicly available database of labeled chest radiographscited by 590
- 2022Paint by Example: Exemplar-based Image Editing with Diffusion Modelscited by 489
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 379
- 2018Confounding variables can degrade generalization performance of radiological deep learning modelscited by 374
- 2019Hidden Stratification Causes Clinically Meaningful Failures in Machine Learning for Medical Imagingcited by 215
- 2022Improving Out-of-Distribution Robustness via Selective Augmentationcited by 202
- 2017Controllable Invariance through Adversarial Feature Learningcited by 127
- 2023Diversify Your Vision Datasets with Automatic Diffusion-Based Augmentationcited by 100
- 2021Transparency of Deep Neural Networks for Medical Image Analysis: A Review of Interpretability Methodscited by 83
- 2022The ArtBench Dataset: Benchmarking Generative Models with Artworkscited by 64
- 2019Can we trust deep learning models diagnosis? The impact of domain shift in chest radiograph classificationcited by 57
- 2022UMIX: Improving Importance Weighting for Subpopulation Shift via Uncertainty-Aware Mixupcited by 34
- 2022Using Language to Extend to Unseen Domainscited by 34
- 2022Spuriosity Rankings: Sorting Data to Measure and Mitigate Biasescited by 13
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Diffusion Models in Medical Image Inpainting: Challenges, Solution Taxonomy, and Future Directions
- 2025Inpainting is All You Need: A Diffusion-based Augmentation Method for Semi-supervised Medical Image Segmentation
- 2026Reconstruction-Shift Discrimination via Mask-Guided Latent Diffusion for Medical Anomaly Detection
- 2023DiffMIC: Dual-Guidance Diffusion Network for Medical Image Classification
- 2024BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion
- 2025Conditional Diffusion Models are Medical Image Classifiers that Provide Explainability and Uncertainty for Free
- 2022Multitask Brain Tumor Inpainting with Diffusion Models: A Methodological Report
- 2026MedDiME: Efficient Latent Diffusion with Adaptive Masking for Medical Counterfactual Generation