On the Difficulty of Defending Self-Supervised Learning against Model Extraction

Adam Dziedzic, Nikita Dhawan, Muhammad Ahmad Kaleem, Jonas Guan, Nicolas Papernot
5/16/2022
cs.LGcs.AIcs.CR
contrastive-ssl

Official code: cleverhans-lab/ssl-attacks-defenses (5 stars, Python, MIT, last commit 2022-06-27).

Abstract

Self-Supervised Learning (SSL) is an increasingly popular ML paradigm that trains models to transform complex inputs into representations without relying on explicit labels. These representations encode similarity structures that enable efficient learning of multiple downstream tasks.

Show full abstract

Recently, ML-as-a-Service providers have commenced offering trained SSL models over inference APIs, which transform user inputs into useful representations for a fee. However, the high cost involved to train these models and their exposure over APIs both make black-box extraction a realistic security threat. We thus explore model stealing attacks against SSL. Unlike traditional model extraction on classifiers that output labels, the victim models here output representations; these representations are of significantly higher dimensionality compared to the low-dimensional prediction scores output by classifiers. We construct several novel attacks and find that approaches that train directly on a victim's stolen representations are query efficient and enable high accuracy for downstream models. We then show that existing defenses against model extraction are inadequate and not easily retrofitted to the specificities of SSL.

View on arXivView PDF

Code Implementations(1)

MIT

On the Difficulty of Defending Self-Supervised Learning against Model Extraction

50PythonJun 27, 20224 years agoMIT

Similar Papers

Cite this paper

@article{dziedzic2022difficulty,
  title  = {On the Difficulty of Defending Self-Supervised Learning against Model Extraction},
  author = {Adam Dziedzic and Nikita Dhawan and Muhammad Ahmad Kaleem and Jonas Guan and Nicolas Papernot},
  year   = {2022},
  eprint = {2205.07890},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.07890}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.07890.svg)](https://codeofpaper.com/paper/2205.07890)

Discussion