EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Given a set of unlabeled images or (image, text) pairs, contrastive learning aims to pre-train an image encoder that can be used as a feature extractor for many downstream tasks. In this work, we propose EncoderMI, the first membership inference method against image encoders pre-trained by contrastive learning. In particular, given an input and a black-box access to an image encoder, EncoderMI aims to infer whether the input is in the training dataset of the image encoder. EncoderMI can be used 1) by a data owner to audit whether its (public) data was used to pre-train an image encoder without its authorization or 2) by an attacker to compromise privacy of the training data when it is private/sensitive. Our EncoderMI exploits the overfitting of the image encoder towards its training data. In particular, an overfitted image encoder is more likely to output more (or less) similar feature vectors for two augmented versions of an input in (or not in) its training dataset. We evaluate EncoderMI on image encoders pre-trained on multiple datasets by ourselves as well as the Contrastive Language-Image Pre-training (CLIP) image encoder, which is pre-trained on 400 million (image, text) pairs collected from the Internet and released by OpenAI. Our results show that EncoderMI can achieve high accuracy, precision, and recall. We also explore a countermeasure against EncoderMI via preventing overfitting through early stopping. Our results show that it achieves trade-offs between accuracy of EncoderMI and utility of the image encoder, i.e., it can reduce the accuracy of EncoderMI, but it also incurs classification accuracy loss of the downstream classifiers built based on the image encoder.
Key facts. Cited by 68 papers in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 29 of its 51 references that are in the map. First posted on arXiv 25 Aug 2021.
Builds on
29 of 51 references.
Closest ancestors · 1
Same direction, newest first
Other references · 28
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2017Deep Setscited by 1,394
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
16 more
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2020Label-Only Membership Inference Attackscited by 371
- 2020Systematic Evaluation of Privacy Risks of Machine Learning Modelscited by 273
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 265
- 2020Information Leakage in Embedding Modelscited by 199
- 2021Adversary Instantiation: Lower Bounds for Differentially Private Machine Learningcited by 193
- 2019MemGuard: Defending against Black-Box Membership Inference Attacks via Adversarial Examplescited by 183
- 2018Machine Learning with Membership Privacy using Adversarial Regularizationcited by 177
- 2020Membership Leakage in Label-Only Exposurescited by 156
- 2019Privacy Risks of Securing Machine Learning Models against Adversarial Examplescited by 136
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learningcited by 120
- 2018Stealing Hyperparameters in Machine Learningcited by 115
- 2018AttriGuard: A Practical Defense Against Attribute Inference Attacks via Adversarial Machine Learningcited by 58
- 2021Quantifying and Mitigating Privacy Risks of Contrastive Learningcited by 35
- 2018Differentially Private Data Generative Modelscited by 33
- 2020TransMIA: Membership Inference Attacks Using Transfer Shadow Trainingcited by 8
Built on by
Citing papers per year: 2021: 2; 2022: 14; 2023: 13; 2024: 16; 2025: 15; 2026: 8.
68 papers.
Sort:
By area:
- 2022The Privacy Onion Effect: Memorization is Relativecited by 128
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2022SoK: Let the Privacy Games Begin! A Unified Treatment of Data Inference Privacy in Machine Learningcited by 47
- 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
- 2021Property Inference Attacks Against GANscited by 32
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2024Membership Inference Attacks against Large Vision-Language Modelscited by 31
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoderscited by 30
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2023Overconfidence is a Dangerous Thing: Mitigating Membership Inference Attacks by Enforcing Less Confident Predictioncited by 26
38 more
- 2022User-Level Membership Inference Attack against Metric Embedding Learningcited by 22
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learningcited by 21
- 2022Does CLIP Know My Face?cited by 19
- 2024Memorization in Self-Supervised Learning Improves Downstream Generalizationcited by 18
- 2022Membership Inference Attacks and Generalization: A Causal Perspectivecited by 17
- 2024A General Framework for Data-Use Auditing of ML Modelscited by 15
- 2023SLMIA-SR: Speaker-Level Membership Inference Attacks against Speaker Recognition Systemscited by 14
- 2023TMI! Finetuned Models Leak Private Information from their Pretraining Datacited by 13
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Trainingcited by 11
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learningcited by 10
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 9
- 2024Localizing Memorization in SSL Vision Encoderscited by 9
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Modelscited by 8
- 2022SecretGen: Privacy Recovery on Pre-Trained Models via Distribution Discriminationcited by 7
- 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
- 2022l-Leaks: Membership Inference Attacks with Logitscited by 5
- 2022On the Privacy Risks of Cell-Based NAS Architecturescited by 5
- 2024Mitigating Privacy Risk in Membership Inference by Convex-Concave Losscited by 5
- 2023Defending Our Privacy With Backdoorscited by 4
- 2024Safety and Performance, Why Not Both? Bi-Objective Optimized Model Compression against Heterogeneous Attacks Toward AI Software Deploymentcited by 4
- 2025GRID: Protecting Training Graph from Link Stealing Attacks on GNN Modelscited by 4
- 2025Captured by Captions: On Memorization and its Mitigation in CLIP Modelscited by 4
- 2025Instance-Level Data-Use Auditing of Visual ML Modelscited by 4
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmarkcited by 3
- 2024Membership Privacy Evaluation in Deep Spiking Neural Networkscited by 3
- 2025When Better Features Mean Greater Risks: The Performance-Privacy Trade-Off in Contrastive Learningcited by 3
- 2025Image Corruption-Inspired Membership Inference Attacks against Large Vision-Language Modelscited by 3
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probingcited by 3
- 2023A Comprehensive Study of Privacy Risks in Curriculum Learningcited by 2
- 2024Membership Inference Attack Against Masked Image Modelingcited by 2
- 2025Do Fairness Interventions Come at the Cost of Privacy: Evaluations for Binary Classifierscited by 2
- 2025How does Bayesian Sampling help Membership Inference Attacks?cited by 2
- 2025Measuring D'ej`a vu Memorization Efficientlycited by 2
- 2025BESA: Boosting Encoder Stealing Attack with Perturbation Recoverycited by 2
- 2024Machine Unlearning in Contrastive Learningcited by 1
50 most cited of 68 All 68 (JSON)
- 2026Quantifying Training Membership Information in the Hyperspherical Embedding Geometry of Face Recognition Models16 Jul 2026
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Training15 Jul 2026
- 2026Single-Sample Black-Box Membership Inference Attack against Vision-Language Models via Cross-modal Semantic Alignment17 May 2026
- 2026DistractMIA: Black-Box Membership Inference on Vision-Language Models via Semantic Distraction12 May 2026
- 2026Uncovering Memorization in Timeseries Imputation models: LBRM Membership Inference and its link to attribute Leakage25 Mar 2026
- 2026Informationally Compressive Anonymization: Non-Degrading Sensitive Input Protection for Privacy-Preserving Supervised Machine Learning16 Mar 2026
- 2026Turning Black Box into White Box: Dataset Distillation Leaks1 Mar 2026
- 2026DeepLeak: Privacy Enhancing Hardening of Model Explanations Against Membership Leakage6 Jan 2026
- 2025VICTOR: Dataset Copyright Auditing in Video Recognition Systems16 Dec 2025
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probing3 Nov 2025
- 2025Black-Box Privacy Attacks on Shared Representations in Multitask Learning19 Jun 2025
- 2025Image Corruption-Inspired Membership Inference Attacks against Large Vision-Language Models14 Jun 2025
38 more
- 2025When Better Features Mean Greater Risks: The Performance-Privacy Trade-Off in Contrastive Learning6 Jun 2025
- 2025BESA: Boosting Encoder Stealing Attack with Perturbation Recovery5 Jun 2025
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability15 May 2025
- 2025An Exploration of Default Images in Text-to-Image Generation14 May 2025
- 2025A new membership inference attack that spots memorization in generative and predictive models: Loss-Based with Reference Model algorithm (LBRM)6 May 2025
- 2025Measuring D'ej`a vu Memorization Efficiently8 Apr 2025
- 2025Instance-Level Data-Use Auditing of Visual ML Models28 Mar 2025
- 2025How does Bayesian Sampling help Membership Inference Attacks?10 Mar 2025
- 2025Do Fairness Interventions Come at the Cost of Privacy: Evaluations for Binary Classifiers8 Mar 2025
- 2025Captured by Captions: On Memorization and its Mitigation in CLIP Models11 Feb 2025
- 2025GRID: Protecting Training Graph from Link Stealing Attacks on GNN Models19 Jan 2025
- 2024Membership Inference Attacks against Large Vision-Language Models5 Nov 2024
- 2024Membership Privacy Evaluation in Deep Spiking Neural Networks28 Sep 2024
- 2024Localizing Memorization in SSL Vision Encoders27 Sep 2024
- 2024Membership Inference Attack Against Masked Image Modeling13 Aug 2024
- 2024Pre-trained Encoder Inference: Revealing Upstream Encoders In Downstream Machine Learning Services5 Aug 2024
- 2024A General Framework for Data-Use Auditing of ML Models21 Jul 2024
- 2024MUC: Machine Unlearning for Contrastive Learning with Black-box Evaluation5 Jun 2024
- 2024Better Membership Inference Privacy Measurement through Discrepancy24 May 2024
- 2024TUNI: A Textual Unimodal Detector for Identity Inference in CLIP Models23 May 2024
- 2024Machine Unlearning in Contrastive Learning12 May 2024
- 2024Evaluations of Machine Learning Privacy Defenses are Misleading26 Apr 2024
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability3 Apr 2024
- 2024DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training5 Mar 2024
- 2024Mitigating Privacy Risk in Membership Inference by Convex-Concave Loss8 Feb 2024
- 2024Memorization in Self-Supervised Learning Improves Downstream Generalization19 Jan 2024
- 2024Safety and Performance, Why Not Both? Bi-Objective Optimized Model Compression against Heterogeneous Attacks Toward AI Software Deployment2 Jan 2024
- 2023Refine, Discriminate and Align: Stealing Encoders via Sample-Wise Prototypes and Multi-Relational Extraction1 Dec 2023
- 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
- 2023Defending Our Privacy With Backdoors12 Oct 2023
- 2023Differentially Private Optimization for Non-Decomposable Objective Functions4 Oct 2023
- 2023SLMIA-SR: Speaker-Level Membership Inference Attacks against Speaker Recognition Systems14 Sep 2023
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning14 Aug 2023
- 2023Downstream-agnostic Adversarial Examples23 Jul 2023
- 2023SoK: Comparing Different Membership Inference Attacks with a Comprehensive Benchmark12 Jul 2023
- 2023Overconfidence is a Dangerous Thing: Mitigating Membership Inference Attacks by Enforcing Less Confident Prediction4 Jul 2023
50 newest of 68 All 68 (JSON)
- 2021Property Inference Attacks Against GANscited by 32
- 2022M^4I: Multi-modal Models Membership Inferencecited by 30
- 2023Overconfidence is a Dangerous Thing: Mitigating Membership Inference Attacks by Enforcing Less Confident Predictioncited by 26
- 2022User-Level Membership Inference Attack against Metric Embedding Learningcited by 22
- 2022Membership Inference Attacks and Generalization: A Causal Perspectivecited by 17
- 2023SLMIA-SR: Speaker-Level Membership Inference Attacks against Speaker Recognition Systemscited by 14
- 2023MIST: Defending Against Membership Inference Attacks Through Membership-Invariant Subspace Trainingcited by 11
- 2022Semi-Leak: Membership Inference Attacks Against Semi-supervised Learningcited by 10
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capabilitycited by 9
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
- 2022l-Leaks: Membership Inference Attacks with Logitscited by 5
- 2024Mitigating Privacy Risk in Membership Inference by Convex-Concave Losscited by 5
12 most cited of 24 All 24 (JSON)
- 2026Uncovering Memorization in Timeseries Imputation models: LBRM Membership Inference and its link to attribute Leakage25 Mar 2026
- 2025When Better Features Mean Greater Risks: The Performance-Privacy Trade-Off in Contrastive Learning6 Jun 2025
- 2025A Unified and Scalable Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability15 May 2025
- 2025A new membership inference attack that spots memorization in generative and predictive models: Loss-Based with Reference Model algorithm (LBRM)6 May 2025
- 2025Instance-Level Data-Use Auditing of Visual ML Models28 Mar 2025
- 2025How does Bayesian Sampling help Membership Inference Attacks?10 Mar 2025
- 2024Membership Inference Attack Against Masked Image Modeling13 Aug 2024
- 2024MUC: Machine Unlearning for Contrastive Learning with Black-box Evaluation5 Jun 2024
- 2024Better Membership Inference Privacy Measurement through Discrepancy24 May 2024
- 2024Machine Unlearning in Contrastive Learning12 May 2024
- 2024A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware Capability3 Apr 2024
- 2024Mitigating Privacy Risk in Membership Inference by Convex-Concave Loss8 Feb 2024
12 newest of 24 All 24 (JSON)
- 2024Membership Inference Attacks against Large Vision-Language Modelscited by 31
- 2025Image Corruption-Inspired Membership Inference Attacks against Large Vision-Language Modelscited by 3
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probingcited by 3
- 2026DistractMIA: Black-Box Membership Inference on Vision-Language Models via Semantic Distractioncited by 0
- 2026Single-Sample Black-Box Membership Inference Attack against Vision-Language Models via Cross-modal Semantic Alignmentcited by 0
- 2026Single-Sample Black-Box Membership Inference Attack against Vision-Language Models via Cross-modal Semantic Alignment17 May 2026
- 2026DistractMIA: Black-Box Membership Inference on Vision-Language Models via Semantic Distraction12 May 2026
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probing3 Nov 2025
- 2025Image Corruption-Inspired Membership Inference Attacks against Large Vision-Language Models14 Jun 2025
- 2024Membership Inference Attacks against Large Vision-Language Models5 Nov 2024
- 2022The Privacy Onion Effect: Memorization is Relativecited by 128
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2022SoK: Let the Privacy Games Begin! A Unified Treatment of Data Inference Privacy in Machine Learningcited by 47
- 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
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learningcited by 21
- 2022Does CLIP Know My Face?cited by 19
- 2024Memorization in Self-Supervised Learning Improves Downstream Generalizationcited by 18
- 2024A General Framework for Data-Use Auditing of ML Modelscited by 15
12 most cited of 39 All 39 (JSON)
- 2026Quantifying Training Membership Information in the Hyperspherical Embedding Geometry of Face Recognition Models16 Jul 2026
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Training15 Jul 2026
- 2026Informationally Compressive Anonymization: Non-Degrading Sensitive Input Protection for Privacy-Preserving Supervised Machine Learning16 Mar 2026
- 2026Turning Black Box into White Box: Dataset Distillation Leaks1 Mar 2026
- 2026DeepLeak: Privacy Enhancing Hardening of Model Explanations Against Membership Leakage6 Jan 2026
- 2025VICTOR: Dataset Copyright Auditing in Video Recognition Systems16 Dec 2025
- 2025Black-Box Privacy Attacks on Shared Representations in Multitask Learning19 Jun 2025
- 2025BESA: Boosting Encoder Stealing Attack with Perturbation Recovery5 Jun 2025
- 2025An Exploration of Default Images in Text-to-Image Generation14 May 2025
- 2025Measuring D'ej`a vu Memorization Efficiently8 Apr 2025
- 2025Do Fairness Interventions Come at the Cost of Privacy: Evaluations for Binary Classifiers8 Mar 2025
- 2025Captured by Captions: On Memorization and its Mitigation in CLIP Models11 Feb 2025
12 newest of 39 All 39 (JSON)