Opacus: User-Friendly Differential Privacy Library in PyTorch

By Ashkan Yousefpour, I. Shilov, Alexandre Sablayrolles, Davide Testuggine, Karthik Prasad, Mani Malek, John Nguyen, Sayan Gosh, Akash Bharadwaj, Jessica Zhao and 2 more. arXiv.org, 2021

551 citations recorded by the source corpus.

We introduce Opacus, a free, open-source PyTorch library for training deep learning models with differential privacy (hosted at opacus.ai). Opacus is designed for simplicity, flexibility, and speed. It provides a simple and user-friendly API, and enables machine learning practitioners to make a training pipeline private by adding as little as two lines to their code. It supports a wide variety of layers, including multi-head attention, convolution, LSTM, GRU (and generic RNN), and embedding, right out of the box and provides the means for supporting other user-defined layers. Opacus computes batched per-sample gradients, providing higher efficiency compared to the traditional"micro batch"approach. In this paper we present Opacus, detail the principles that drove its implementation and unique features, and benchmark it against other frameworks for training models with differential privacy as well as standard PyTorch.

Subfields: Artificial Intelligence, Computer Science Applications

View Paper: https://www.semanticscholar.org/paper/bea1187a1f8a68f1a93f0c2fa10d31f93a30f84e

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Florian Tramèr
  2. Nicholas Carlini
  3. Percy Liang
  4. Nicolas Papernot
  5. Chuan Guo
  6. Abhradeep Thakurta
  7. Vitaly Feldman
  8. Zheng Xu

In Computer Science Applications

  1. Vitaly Feldman
  2. Florian Tramèr
  3. Abhradeep Thakurta
  4. Chuan Guo
  5. H. Brendan McMahan
  6. Percy Liang
  7. Graham Cormode
  8. Shruti Tople

Citations in the corpus