Quantifying and Mitigating Privacy Risks of Contrastive Learning
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Data is the key factor to drive the development of machine learning (ML) during the past decade. However, high-quality data, in particular labeled data, is often hard and expensive to collect. To leverage large-scale unlabeled data, self-supervised learning, represented by contrastive learning, is introduced. The objective of contrastive learning is to map different views derived from a training sample (e.g., through data augmentation) closer in their representation space, while different views derived from different samples more distant. In this way, a contrastive model learns to generate informative representations for data samples, which are then used to perform downstream ML tasks. Recent research has shown that machine learning models are vulnerable to various privacy attacks. However, most of the current efforts concentrate on models trained with supervised learning. Meanwhile, data samples' informative representations learned with contrastive learning may cause severe privacy risks as well. In this paper, we perform the first privacy analysis of contrastive learning through the lens of membership inference and attribute inference. Our experimental results show that contrastive models trained on image datasets are less vulnerable to membership inference attacks but more vulnerable to attribute inference attacks compared to supervised models. The former is due to the fact that contrastive models are less prone to overfitting, while the latter is caused by contrastive models' capability of representing data samples expressively. To remedy this situation, we propose the first privacy-preserving contrastive learning mechanism, Talos, relying on adversarial training. Empirical results show that Talos can successfully mitigate attribute inference risks for contrastive models while maintaining their membership privacy and model utility.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 54 of its 69 references that are in the map. First posted on arXiv 8 Feb 2021.
Builds on
54 of 69 references.
References · 54
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
38 more
- 2018Learning deep representations by mutual information estimation and maximizationcited by 1,265
- 2020Graph Contrastive Learning with Augmentationscited by 1,203
- 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
- 2020Self-supervised Learning: Generative or Contrastivecited by 693
- 2017Evasion Attacks against Machine Learning at Test Timecited by 686
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2018Exploiting Unintended Feature Leakage in Collaborative Learningcited by 509
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2017Age Progression/Regression by Conditional Adversarial Autoencodercited by 426
- 2020Label-Only Membership Inference Attackscited by 371
- 2018Knockoff Nets: Stealing Functionality of Black-Box Modelscited by 285
- 2020Systematic Evaluation of Privacy Risks of Machine Learning Modelscited by 273
- 2018Scalable Private Learning with PATEcited by 266
- 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
- 2018Manipulating Machine Learning: Poisoning Attacks and Countermeasures for Regression Learningcited by 219
- 2019High Accuracy and High Fidelity Extraction of Neural Networkscited by 208
- 2020Information Leakage in Embedding Modelscited by 199
- 2021Adversary Instantiation: Lower Bounds for Differentially Private Machine Learningcited by 193
- 2015Censoring Representations with an Adversarycited by 191
- 2019MemGuard: Defending against Black-Box Membership Inference Attacks via Adversarial Examplescited by 183
- 2020When Machine Unlearning Jeopardizes Privacycited by 181
- 2018Machine Learning with Membership Privacy using Adversarial Regularizationcited by 177
- 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
- 2018Adversarial Removal of Demographic Attributes from Text Datacited by 166
- 2017Machine Learning Models that Remember Too Muchcited by 165
- 2020Membership Leakage in Label-Only Exposurescited by 156
- 2019Privacy Risks of Securing Machine Learning Models against Adversarial Examplescited by 136
- 2019Thieves on Sesame Street! Model Extraction of BERT-based APIscited by 136
- 2017Controllable Invariance through Adversarial Feature Learningcited by 127
- 2019Updates-Leak: Data Set Inference and Reconstruction Attacks in Online Learningcited by 117
- 2018Stealing Hyperparameters in Machine Learningcited by 115
- 2020Stealing Links from Graph Neural Networkscited by 114
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
- 2020Sub-graph Contrast for Scalable Self-Supervised Graph Representation Learningcited by 90
- 2016Towards the Science of Security and Privacy in Machine Learningcited by 89
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2019Overlearning Reveals Sensitive Attributescited by 74
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2021: 5; 2022: 13; 2023: 9; 2024: 6; 2025: 1; 2026: 1.
35 papers.
Sort:
By area:
- 2021EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learningcited by 68
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practicecited by 55
- 2021Model Stealing Attacks Against Inductive Graph Neural Networkscited by 50
- 2022SSLGuard: A Watermarking Scheme for Self-supervised Learning Pre-trained Encoderscited by 43
- 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
- 2022Dataset Inference for Self-Supervised Modelscited by 36
- 2024Evaluations of Machine Learning Privacy Defenses are Misleadingcited by 35
- 2021Property Inference Attacks Against GANscited by 32
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoderscited by 30
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2022Auditing Membership Leakages of Multi-Exit Networkscited by 26
23 more
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learningcited by 21
- 2021Membership Inference Attacks Against Self-supervised Speech Modelscited by 16
- 2022Membership-Doctor: Comprehensive Assessment of Membership Inference Against Machine Learning Modelscited by 16
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Trainingcited by 11
- 2024Self-supervised visual learning in the low-data regime: a comparative evaluationcited by 11
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learningcited by 10
- 2023It Is All About Data: A Survey on the Effects of Data on Adversarial Robustnesscited by 9
- 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformerscited by 8
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Modelscited by 8
- 2023Safeguarding Data in Multimodal AI: A Differentially Private Approach to CLIP Trainingcited by 7
- 2024DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-trainingcited by 7
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 202110 Security and Privacy Problems in Large Foundation Modelscited by 5
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmarkcited by 3
- 2024Membership Privacy Evaluation in Deep Spiking Neural Networkscited by 3
- 2026Revisiting the LiRA Membership Inference Attack Under Realistic Assumptionscited by 3
- 2023A Comprehensive Study of Privacy Risks in Curriculum Learningcited by 2
- 2025Measuring D'ej`a vu Memorization Efficientlycited by 2
- 2023Membership Inference Attack for Beluga Whales Discriminationcited by 1
- 2022Additive Logistic Mechanism for Privacy-Preserving Self-Supervised Learningcited by 0
- 2022A Novel Membership Inference Attack against Dynamic Neural Networks by Utilizing Policy Networks Informationcited by 0
- 2023Differentially Private Optimization for Non-Decomposable Objective Functionscited by 0
- 2024Better Membership Inference Privacy Measurement through Discrepancycited by 0
- 2026Revisiting the LiRA Membership Inference Attack Under Realistic Assumptions8 Mar 2026
- 2025Measuring D'ej`a vu Memorization Efficiently8 Apr 2025
- 2024Membership Privacy Evaluation in Deep Spiking Neural Networks28 Sep 2024
- 2024Better Membership Inference Privacy Measurement through Discrepancy24 May 2024
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Models23 May 2024
- 2024Evaluations of Machine Learning Privacy Defenses are Misleading26 Apr 2024
- 2024Self-supervised visual learning in the low-data regime: a comparative evaluation26 Apr 2024
- 2024DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training5 Mar 2024
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Training2 Nov 2023
- 2023A Comprehensive Study of Privacy Risks in Curriculum Learning16 Oct 2023
- 2023Differentially Private Optimization for Non-Decomposable Objective Functions4 Oct 2023
23 more
- 2023Downstream-agnostic Adversarial Examples23 Jul 2023
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmark12 Jul 2023
- 2023Safeguarding Data in Multimodal AI: A Differentially Private Approach to CLIP Training13 Jun 2023
- 2023It Is All About Data: A Survey on the Effects of Data on Adversarial Robustness17 Mar 2023
- 2023Membership Inference Attack for Beluga Whales Discrimination28 Feb 2023
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practice29 Dec 2022
- 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformers20 Oct 2022
- 2022A Novel Membership Inference Attack against Dynamic Neural Networks by Utilizing Policy Networks Information17 Oct 2022
- 2022Data Poisoning Attacks Against Multimodal Encoders30 Sep 2022
- 2022Dataset Inference for Self-Supervised Models16 Sep 2022
- 2022M^4I: Multi-modal Models Membership Inference15 Sep 2022
- 2022Auditing Membership Leakages of Multi-Exit Networks23 Aug 2022
- 2022Membership-Doctor: Comprehensive Assessment of Membership Inference Against Machine Learning Models22 Aug 2022
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learning25 Jul 2022
- 2022Additive Logistic Mechanism for Privacy-Preserving Self-Supervised Learning25 May 2022
- 2022SSLGuard: A Watermarking Scheme for Self-supervised Learning Pre-trained Encoders27 Jan 2022
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoders19 Jan 2022
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learning15 Jan 2022
- 2021Model Stealing Attacks Against Inductive Graph Neural Networks15 Dec 2021
- 2021Property Inference Attacks Against GANs15 Nov 2021
- 2021Membership Inference Attacks Against Self-supervised Speech Models9 Nov 2021
- 202110 Security and Privacy Problems in Large Foundation Models28 Oct 2021
- 2021EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning25 Aug 2021
- 2021EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learningcited by 68
- 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
- 2021Property Inference Attacks Against GANscited by 32
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2021Membership Inference Attacks Against Self-supervised Speech Modelscited by 16
- 2022Membership-Doctor: Comprehensive Assessment of Membership Inference Against Machine Learning Modelscited by 16
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Trainingcited by 11
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learningcited by 10
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmarkcited by 3
- 2026Revisiting the LiRA Membership Inference Attack Under Realistic Assumptionscited by 3
- 2023Membership Inference Attack for Beluga Whales Discriminationcited by 1
12 most cited of 14 All 14 (JSON)
- 2026Revisiting the LiRA Membership Inference Attack Under Realistic Assumptions8 Mar 2026
- 2024Better Membership Inference Privacy Measurement through Discrepancy24 May 2024
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Training2 Nov 2023
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmark12 Jul 2023
- 2023Membership Inference Attack for Beluga Whales Discrimination28 Feb 2023
- 2022A Novel Membership Inference Attack against Dynamic Neural Networks by Utilizing Policy Networks Information17 Oct 2022
- 2022Data Poisoning Attacks Against Multimodal Encoders30 Sep 2022
- 2022M^4I: Multi-modal Models Membership Inference15 Sep 2022
- 2022Membership-Doctor: Comprehensive Assessment of Membership Inference Against Machine Learning Models22 Aug 2022
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learning25 Jul 2022
- 2021Property Inference Attacks Against GANs15 Nov 2021
12 newest of 14 All 14 (JSON)
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practicecited by 55
- 2021Model Stealing Attacks Against Inductive Graph Neural Networkscited by 50
- 2022SSLGuard: A Watermarking Scheme for Self-supervised Learning Pre-trained Encoderscited by 43
- 2022Dataset Inference for Self-Supervised Modelscited by 36
- 2024Evaluations of Machine Learning Privacy Defenses are Misleadingcited by 35
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoderscited by 30
- 2022Auditing Membership Leakages of Multi-Exit Networkscited by 26
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learningcited by 21
- 2024Self-supervised visual learning in the low-data regime: a comparative evaluationcited by 11
- 2023It Is All About Data: A Survey on the Effects of Data on Adversarial Robustnesscited by 9
- 2022How Does a Deep Learning Model Architecture Impact Its Privacy? A Comprehensive Study of Privacy Attacks on CNNs and Transformerscited by 8
12 most cited of 21 All 21 (JSON)
- 2025Measuring D'ej`a vu Memorization Efficiently8 Apr 2025
- 2024Membership Privacy Evaluation in Deep Spiking Neural Networks28 Sep 2024
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Models23 May 2024
- 2024Evaluations of Machine Learning Privacy Defenses are Misleading26 Apr 2024
- 2024Self-supervised visual learning in the low-data regime: a comparative evaluation26 Apr 2024
- 2024DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training5 Mar 2024
- 2023A Comprehensive Study of Privacy Risks in Curriculum Learning16 Oct 2023
- 2023Differentially Private Optimization for Non-Decomposable Objective Functions4 Oct 2023
- 2023Downstream-agnostic Adversarial Examples23 Jul 2023
- 2023Safeguarding Data in Multimodal AI: A Differentially Private Approach to CLIP Training13 Jun 2023
- 2023It Is All About Data: A Survey on the Effects of Data on Adversarial Robustness17 Mar 2023
- 2022"Real Attackers Don't Compute Gradients": Bridging the Gap Between Adversarial ML Research and Practice29 Dec 2022
12 newest of 21 All 21 (JSON)