Counterfactual contrastive learning: robust representations via causal image synthesis
Preprint
Abstract
Contrastive pretraining is well-known to improve downstream task performance and model generalisation, especially in limited label settings. However, it is sensitive to the choice of augmentation pipeline. Positive pairs should preserve semantic information while destroying domain-specific information. Standard augmentation pipelines emulate domain-specific changes with pre-defined photometric transformations, but what if we could simulate realistic domain changes instead? In this work, we show how to utilise recent progress in counterfactual image generation to this effect. We propose CF-SimCLR, a counterfactual contrastive learning approach which leverages approximate counterfactual inference for positive pair creation. Comprehensive evaluation across five datasets, on chest radiography and mammography, demonstrates that CF-SimCLR substantially improves robustness to acquisition shift with higher downstream performance on both in- and out-of-distribution data, particularly for domains which are under-represented during training.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Diffusion Models for Counterfactual Generation and Anomaly Detection in Brain ImagesIEEE Transactions on Medical Imaging, 2024
- Robust and data-efficient generalization of self-supervised machine learning for diagnostic imagingNature Biomedical Engineering, 2023
- High-resolution synthesis of high-density breast mammograms: Application to improved fairness in deep learning based mass detectionFrontiers in Oncology, 2023
- Adversarial counterfactual augmentation: application in Alzheimer’s disease classificationFrontiers in Radiology, 2022
- Counterfactual Explanation of Brain Activity Classifiers Using Image-To-Image Transfer by Generative Adversarial NetworkFrontiers in Neuroinformatics, 2022
- PadChest: A large chest x-ray image dataset with multi-label annotated reportsMedical Image Analysis, 2020