Comprehensive Privacy Analysis of Deep Learning: Passive and Active White-box Inference Attacks against Centralized and Federated Learning

Milad Nasr, Reza Shokri, Amir Houmansadr
12/3/2018
343 citations
stat.MLcs.CRcs.LG
federated

Official code: privacytrustlab/ml_privacy_meter (728 stars, Jupyter Notebook, MIT, last commit 2025-04-26).

Abstract

Deep neural networks are susceptible to various inference attacks as they remember information about their training data. We design white-box inference attacks to perform a comprehensive privacy analysis of deep learning models.

Show full abstract

We measure the privacy leakage through parameters of fully trained models as well as the parameter updates of models during training. We design inference algorithms for both centralized and federated learning, with respect to passive and active inference attackers, and assuming different adversary prior knowledge. We evaluate our novel white-box membership inference attacks against deep learning algorithms to trace their training data records. We show that a straightforward extension of the known black-box attacks to the white-box setting (through analyzing the outputs of activation functions) is ineffective. We therefore design new algorithms tailored to the white-box setting by exploiting the privacy vulnerabilities of the stochastic gradient descent algorithm, which is the algorithm used to train deep neural networks. We investigate the reasons why deep learning models may leak information about their training data. We then show that even well-generalized models are significantly susceptible to white-box membership inference attacks, by analyzing state-of-the-art pre-trained and publicly available models for the CIFAR dataset. We also show how adversarial participants, in the federated learning setting, can successfully run active membership inference attacks against other participants, even when the global model achieves high prediction accuracies.

View on arXivView PDF

Code Implementations(1)

MIT

Privacy Meter: An open-source library to audit data privacy in statistical and machine learning algorithms.

728154Jupyter Notebook, PythonApr 8, 20201 years agoMIT
data-privacydata-protectiondata-protection-impact-assessmentexplainable-aigdpr+6 more

Similar Papers

Cite this paper

@article{nasr2018comprehensive,
  title  = {Comprehensive Privacy Analysis of Deep Learning: Passive and Active White-box Inference Attacks against Centralized and Federated Learning},
  author = {Milad Nasr and Reza Shokri and Amir Houmansadr},
  year   = {2018},
  eprint = {1812.00910},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.00910}
}

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

Discussion