HackerPapers

arXiv:1609.02943cs.CR

Stealing Machine Learning Models via Prediction APIs

Florian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter, Thomas Ristenpart

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. 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.

arXiv comments
19 pages, 7 figures, Proceedings of USENIX Security 2016
Journal reference
DOI
Subjects
cs.CRCryptography and Security cs.LGMachine Learning stat.MLMachine Learning (Statistics)

On Hacker News

Linked by 7 identifiable commenters in 7 comments across 7 threads, from Dec 2016 to Jun 2018. Found in 3 HN submissions from Sep 2016 to Jan 2019. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments7 threads

    • It is referring to https://arxiv.org/abs/1609.02943 What you are referring to is possible, but is not "copying" per se, just trying to infer what the system is doing (inverse RL), and then exploit that/make it do mistakes. If you are not HFT it is very difficult to distinguish…

      taurineView on HNParent context

    • The author of this story clearly does not know what "reverse engineer" means. This is reverse engineering AI companies: https://arxiv.org/abs/1609.02943

      red_dinosaurView on HNParent context

  1. Cloud Video Intelligence API 1 comment
    • How long until someone runs an attack like https://arxiv.org/abs/1609.02943 and provides the model for free?

      JachView on HNParent context

  2. Amazon AI 1 comment
    • I'm not sure if open sourcing the data is absolutely necessary to reproduce the results given access to the prediction API. "Stealing Machine Learning Models via Prediction APIs" (https://arxiv.org/abs/1609.02943) examines techniques in this space. The API might also be used in…

      __coaxialcabalView on HNParent context

    • Odd, isn't it? Maybe a copy/paste error? There's a paper from Oct 2016 on arXiv with this title: https://arxiv.org/abs/1609.02943

      grzmView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.