CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularization
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Learning representations unaffected by superficial characteristics is important to ensure that shifts in these characteristics at test time do not compromise downstream prediction performance. For instance, in healthcare applications, we might like to learn features that contain information about pathology yet are unaffected by race, sex, and other sources of physiologic variability, thereby ensuring predictions are equitable and generalizable across all demographics. Here we propose Contrastive LEarning with Anti-contrastive Regularization (CLEAR), an intuitive and easy-to-implement framework that effectively separates essential (i.e., task-relevant) characteristics from superficial (i.e., task-irrelevant) characteristics during training, leading to better performance when superficial characteristics shift at test time. We begin by supposing that data representations can be semantically separated into task-relevant content features, which contain information relevant to downstream tasks, and task-irrelevant style features, which encompass superficial attributes that are irrelevant to these tasks, yet may degrade performance due to associations with content present in training data that do not generalize. We then prove that our anti-contrastive penalty, which we call Pair-Switching (PS), minimizes the Mutual Information between the style attributes and content labels. Finally, we instantiate CLEAR in the latent space of a Variational Auto-Encoder (VAE), then perform experiments to quantitatively and qualitatively evaluate the resulting CLEAR-VAE over several image datasets. Our results show that CLEAR-VAE allows us to: (a) swap and interpolate content and style between any pair of samples, and (b) improve downstream classification performance in the presence of previously unseen combinations of content and style. Our code will be made publicly available.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 25 of its 42 references that are in the map. First posted on arXiv 24 Jul 2025.
Builds on
25 of 42 references.
References · 25
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2020Supervised Contrastive Learningcited by 2,829
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2017Deeper, Broader and Artier Domain Generalizationcited by 986
- 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 941
- 2016Deep Variational Information Bottleneckcited by 930
- 2018Disentangling by Factorisingcited by 616
13 more
- 2019On Variational Bounds of Mutual Informationcited by 559
- 2018Understanding disentangling in β-VAEcited by 335
- 2020CLUB: A Contrastive Log-ratio Upper Bound of Mutual Informationcited by 235
- 2019MNIST-C: A Robustness Benchmark for Computer Visioncited by 138
- 2017Multi-Level Variational Autoencoder: Learning Disentangled Representations from Grouped Observationscited by 100
- 2019Analyzing and Improving Representations with the Soft Nearest Neighbor Losscited by 95
- 2016Disentangling factors of variation in deep representations using adversarial trainingcited by 87
- 2019Contrastive Variational Autoencoder Enhances Salient Featurescited by 28
- 2022From t-SNE to UMAP with contrastive learningcited by 28
- 2020A Commentary on the Unsupervised Learning of Disentangled Representationscited by 13
- 2018Rare Event Detection using Disentangled Representation Learningcited by 12
- 2023SepVAE: a contrastive VAE to separate pathological patterns from healthy onescited by 10
- 2023Consistency Regularization for Domain Generalization with Logit Attribution Matchingcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024Contrastive Unlearning: A Contrastive Approach to Machine Unlearning
- 2024MUC: Machine Unlearning for Contrastive Learning with Black-box Evaluation
- 2026Contrastive Representation Shaping for LLM Unlearning
- 2025Enhancing Biomedical Multi-modal Representation Learning with Multi-scale Pre-training and Perturbed Report Discrimination
- 2024mathbbX-Sample Contrastive Loss: Improving Contrastive Learning with Sample Similarity Graphs
- 2026Unsupervised Identification and Removal of Spurious Correlations During Fine-Tuning
- 2022Rethinking Prototypical Contrastive Learning through Alignment, Uniformity and Correlation
- 2025The "Law" of the Unconscious Contrastive Learner: Probabilistic Alignment of Unpaired Modalities