Quantifying and Mitigating Privacy Risks of Contrastive Learning
Xinlei He, Yang Zhang
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 22 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Data Poisoning Attacks Against Multimodal Encoders 引用了 Membership Inference Attacks Against Machine Learning Models
- Data Poisoning Attacks Against Multimodal Encoders 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Model Stealing Attacks Against Inductive Graph Neural Networks 引用了 Membership Inference Attacks Against Machine Learning Models
- Model Stealing Attacks Against Inductive Graph Neural Networks 引用了 Towards Evaluating the Robustness of Neural Networks
- Model Stealing Attacks Against Inductive Graph Neural Networks 引用了 Extracting Training Data from Large Language Models
- Dataset Inference for Self-Supervised Models 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Dataset Inference for Self-Supervised Models 引用了 EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning
- EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning 引用了 Membership Inference Attacks Against Machine Learning Models
- EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning 引用了 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 引用了 EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning
- Graph Contrastive Learning with Augmentations 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Extracting Training Data from Large Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
引用它的顶会 Paper22
- Model Stealing Attacks Against Inductive Graph Neural NetworksYun Shen, Xinlei He, Yufei Han, Yang ZhangS&P 2022 · 88 次引用
- Data Poisoning Attacks Against Multimodal EncodersZiqing Yang, Xinlei He, Zheng Li, Michael Backes 等ICML 2023 · 74 次引用
- EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive LearningHongbin Liu, Jinyuan Jia, Wenjie Qu, Neil Zhenqiang GongCCS 2021 · 63 次引用
- 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 次引用
它引用的 Paper34
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
- Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 次引用
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen 等NeurIPS 2020 · 3,042 次引用
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
相关 Paper
- Learning Robust and Privacy-Preserving Representations via Information TheoryBinghui Zhang, Sayedeh Leila Noorbakhsh, Yun Dong, Yuan Hong 等AAAI 2025 · 4 次引用
- Privacy Risks of Securing Machine Learning Models against Adversarial ExamplesLiwei Song, Reza Shokri, Prateek MittalCCS 2019 · 293 次引用
- A Unified Membership Inference Method for Visual Self-supervised Encoder via Part-aware CapabilityJie Zhu, Jirong Zha, Ding Li, Leye WangCCS 2024 · 4 次引用
- RelaxLoss: Defending Membership Inference Attacks without Losing UtilityDingfan Chen, Ning Yu, Mario FritzICLR 2022 · 61 次引用
- Decoding Web Memorization: A Semantic Membership Inference Attack on LLMsZhiyao Wu, Zi Liang, Haibo HuWWW 2026
