Stealing Machine Learning Models via Prediction APIs

Florian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter, Thomas Ristenpart
9/9/2016
2,296 citations
cs.CRcs.LGstat.ML

Official code: ftramer/Steal-ML (359 stars, Python, last commit 2020-11-22).

Abstract

Machine learning (ML) models may be deemed confidential due to their sensitive training data, commercial value, or use in security applications. Increasingly often, confidential ML models are being deployed with publicly accessible query interfaces.

Show full abstract

ML-as-a-service ("predictive analytics") systems are an example: Some allow users to train models on potentially sensitive data and charge others for access on a pay-per-query basis. The tension between model confidentiality and public access motivates our investigation of model extraction attacks. In such attacks, an adversary with black-box access, but no prior knowledge of an ML model's parameters or training data, aims to duplicate the functionality of (i.e., "steal") the model. Unlike in classical learning theory settings, ML-as-a-service offerings may accept partial feature vectors as inputs and include confidence values with predictions. Given these practices, we show simple, efficient attacks that extract target ML models with near-perfect fidelity for popular model classes including logistic regression, neural networks, and decision trees. We demonstrate these attacks against the online services of BigML and Amazon Machine Learning. We further show that the natural countermeasure of omitting confidence values from model outputs still admits potentially harmful model extraction attacks. Our results highlight the need for careful ML model deployment and new model extraction countermeasures.

View on arXivView PDF

Code Implementations(1)

ftramer/Steal-MLOfficial100%

Model extraction attacks on Machine-Learning-as-a-Service platforms.

35997Python, HTMLJun 27, 20166 years ago

Similar Papers

Cite this paper

@article{tramr2016stealing,
  title  = {Stealing Machine Learning Models via Prediction APIs},
  author = {Florian Tramèr and Fan Zhang and Ari Juels and Michael K. Reiter and Thomas Ristenpart},
  year   = {2016},
  eprint = {1609.02943},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1609.02943}
}

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/1609.02943.svg)](https://codeofpaper.com/paper/1609.02943)

Discussion