Timezone: »
We introduce Opacus, a free, open-source PyTorch library for training deep learning models with differential privacy (hosted at https://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, and embedding, right out of the box, and it also provides the means for supporting other user-defined layers. Opacus computes batched per-sample gradients, providing better 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 compare its performance against other frameworks for differential privacy in ML.
Author Information
Ashkan Yousefpour (Meta AI)
Igor Shilov (Meta AI)
Alexandre Sablayrolles (Meta AI)
Karthik Prasad (Facebook AI)
Mani Malek Esmaeili (Facebook)
John Nguyen (Facebook)
Sayan Ghosh (Facebook)
Akash Bharadwaj (Facebook)
Jessica Zhao (Facebook)
Graham Cormode (Meta AI)
Ilya Mironov (Meta (Responsible AI))
More from the Same Authors
-
2021 : Label Private Deep Learning Training based on Secure Multiparty Computation and Differential Privacy »
Sen Yuan · Milan Shen · Ilya Mironov · Anderson Nascimento -
2021 : Sample-and-threshold differential privacy: Histograms and applications »
Graham Cormode -
2022 : Where to Begin? On the Impact of Pre-Training and Initialization in Federated Learning »
John Nguyen · Jianyu Wang · Kshitiz Malik · Maziar Sanjabi · Mike Rabbat -
2022 : Reconciling Security and Communication Efficiency in Federated Learning »
Karthik Prasad · Sayan Ghosh · Graham Cormode · Ilya Mironov · Ashkan Yousefpour · Pierre STOCK -
2022 : Panel on Privacy and Security in Machine Learning Systems »
Graham Cormode · Borja Balle · Yu-Xiang Wang · Alejandro Saucedo · Neil Lawrence -
2022 : Taking federated analytics from theory to practice »
Graham Cormode · Alessandra Tosi -
2022 : Taking federated analytics from theory to practice »
Graham Cormode -
2021 Poster: Antipodes of Label Differential Privacy: PATE and ALIBI »
Mani Malek Esmaeili · Ilya Mironov · Karthik Prasad · Igor Shilov · Florian Tramer -
2019 Poster: Large Memory Layers with Product Keys »
Guillaume Lample · Alexandre Sablayrolles · Marc'Aurelio Ranzato · Ludovic Denoyer · Herve Jegou -
2019 Spotlight: Large Memory Layers with Product Keys »
Guillaume Lample · Alexandre Sablayrolles · Marc'Aurelio Ranzato · Ludovic Denoyer · Herve Jegou