Secure Systems Group
Menu×

Wiki Home

Model extraction

Definition

Model extraction, also called model stealing, is the class of attacks that reproduce some asset of a machine-learning model from external access to it. The usual access is the query interface of a prediction API (Machine-Learning-as-a-Service): the adversary submits inputs and receives outputs, paying per query. What gets stolen varies. Some attacks recover the exact parameters or a functionally exact equation of simple models (Tramèr et al., 2016); others recover hyperparameters (Wang and Gong, 2018) or the architecture (Oh et al., 2018); others recover the model’s functionality, a substitute that matches task accuracy without matching the internals.

Extraction results are usually placed on two axes. Fidelity measures how closely the stolen model reproduces the victim’s input-output behavior, prediction for prediction, including its mistakes. Accuracy measures how well the stolen model performs the underlying task, judged against ground truth. The two diverge: a high-accuracy substitute can disagree with the victim on individual inputs, and a high-fidelity copy inherits the victim’s errors. Extraction threatens the intellectual property and the query revenue of a deployed model, and a faithful copy can also be a stepping stone to other attacks, for example crafting transferable adversarial examples against the substitute and replaying them at the victim (Papernot et al., 2017).

Papers that use this concept

See also

References

  • Oh, S.J., Augustin, M., Schiele, B., and Fritz, M. “Towards Reverse-Engineering Black-Box Neural Networks.” International Conference on Learning Representations (ICLR), 2018.
  • Papernot, N., McDaniel, P., Goodfellow, I., Jha, S., Celik, Z.B., and Swami, A. “Practical Black-Box Attacks against Machine Learning.” ACM Asia Conference on Computer and Communications Security (AsiaCCS), 2017.
  • Tramèr, F., Zhang, F., Juels, A., Reiter, M.K., and Ristenpart, T. “Stealing Machine Learning Models via Prediction APIs.” USENIX Security Symposium, 2016.
  • Wang, B. and Gong, N.Z. “Stealing Hyperparameters in Machine Learning.” IEEE Symposium on Security and Privacy (S&P), 2018.