Quantifying and Mitigating Privacy Risks of Contrastive Learning

被引:16
作者
He, Xinlei [1 ]
Zhang, Yang [1 ]
机构
[1] CISPA Helmholtz Ctr Informat Secur, Saarbrucken, Germany
来源
CCS '21: PROCEEDINGS OF THE 2021 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY | 2021年
关键词
contrastive learning; membership inference attacks; attribute inference attacks; privacy-preserving machine learning;
D O I
10.1145/3460120.3484571
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.(1)
引用
收藏
页码:845 / 863
页数:19
相关论文
共 67 条
  • [51] Information Leakage in Embedding Models
    Song, Congzheng
    Raghunathan, Ananth
    [J]. CCS '20: PROCEEDINGS OF THE 2020 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2020, : 377 - 390
  • [52] Auditing Data Provenance in Text-Generation Models
    Song, Congzheng
    Shmatikov, Vitaly
    [J]. KDD'19: PROCEEDINGS OF THE 25TH ACM SIGKDD INTERNATIONAL CONFERENCCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 2019, : 196 - 206
  • [53] Machine Learning Models that Remember Too Much
    Song, Congzheng
    Ristenpart, Thomas
    Shmatikov, Vitaly
    [J]. CCS'17: PROCEEDINGS OF THE 2017 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2017, : 587 - 601
  • [54] Song Congzheng, 2020, INT C LEARN REPR ICL
  • [55] Privacy Risks of Securing Machine Learning Models against Adversarial Examples
    Song, Liwei
    Shokri, Reza
    Mittal, Prateek
    [J]. PROCEEDINGS OF THE 2019 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY (CCS'19), 2019, : 241 - 257
  • [56] Song Liwei, 2021, USENIX SEC S USENIX
  • [57] Tramer F., 2017, INT C LEARN REPR ICL
  • [58] Tramèr F, 2016, PROCEEDINGS OF THE 25TH USENIX SECURITY SYMPOSIUM, P601
  • [59] van der Maaten L, 2008, J MACH LEARN RES, V9, P2579
  • [60] Stealing Hyperparameters in Machine Learning
    Wang, Binghui
    Gong, Neil Zhenqiang
    [J]. 2018 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP), 2018, : 36 - 52