EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning
Hongbin Liu, Jinyuan Jia, Wenjie Qu, Neil Zhenqiang Gong
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 34 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- The Privacy Onion Effect: Memorization is Relative 引用了 Membership Inference Attacks Against Machine Learning Models
- The Privacy Onion Effect: Memorization is Relative 引用了 Deep Learning with Differential Privacy
- Membership Inference Attacks Against Machine Learning Models 引用了 Stealing Machine Learning Models via Prediction APIs
- Membership Inference Attacks Against Machine Learning Models 引用了 Deep Learning with Differential Privacy
- Dataset Inference for Self-Supervised Models 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Dataset Inference for Self-Supervised Models 引用了 Stealing Machine Learning Models via Prediction APIs
- Dataset Inference for Self-Supervised Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning 引用了 Downstream-agnostic Adversarial Examples
- Downstream-agnostic Adversarial Examples 引用了 AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning
- Learning Transferable Visual Models From Natural Language Supervision 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Please Tell Me More: Privacy Impact of Explainability through the Lens of Membership Inference Attack 引用了 Membership Inference Attacks Against Machine Learning Models
- Please Tell Me More: Privacy Impact of Explainability through the Lens of Membership Inference Attack 引用了 Deep Learning with Differential Privacy
- Downstream-agnostic Adversarial Examples 引用了 A Simple Framework for Contrastive Learning of Visual Representations
引用它的顶会 Paper34
- The Privacy Onion Effect: Memorization is RelativeNicholas Carlini, Matthew Jagielski, Chiyuan Zhang, Nicolas Papernot 等NeurIPS 2022 · 175 次引用
- AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive LearningZiqi Zhou, Shengshan Hu, Minghui Li, Hangtao Zhang 等ACM MM 2023 · 62 次引用
- Dataset Inference for Self-Supervised ModelsAdam Dziedzic, Haonan Duan, Muhammad Ahmad Kaleem, Nikita Dhawan 等NeurIPS 2022 · 59 次引用
- Please Tell Me More: Privacy Impact of Explainability through the Lens of Membership Inference AttackHan Liu, Yuhao Wu, Zhiyuan Yu, Ning ZhangS&P 2024 · 52 次引用
- Downstream-agnostic Adversarial ExamplesZiqi Zhou, Shengshan Hu, Ruizhi Zhao, Qian Wang 等ICCV 2023 · 45 次引用
它引用的 Paper23
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
- Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan 等CCS 2016 · 7,620 次引用
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
- Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter 等USENIX Security 2016 · 2,088 次引用
相关 Paper
- StolenEncoder: Stealing Pre-trained Encoders in Self-supervised LearningYupei Liu, Jinyuan Jia, Hongbin Liu, Neil Zhenqiang GongCCS 2022 · 23 次引用
- BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised LearningJinyuan Jia, Yupei Liu, Neil Zhenqiang GongS&P 2022 · 200 次引用
- Detecting Backdoor Samples in Contrastive Language Image PretrainingHanxun Huang, Sarah Monazam Erfani, Yige Li, Xingjun Ma 等ICLR 2025
- Practical Membership Inference Attacks Against Large-Scale Multi-Modal Models: A Pilot StudyMyeongseob Ko, Ming Jin, Chenguang Wang, Ruoxi JiaICCV 2023 · 51 次引用
- Rethinking Membership Inference Attacks for CLIPLluís GómezAAAI 2026
