Opacus:PyTorch中的User-Friendly差分隐私库
Opacus: User-Friendly Differential Privacy Library in PyTorch
摘要:
我们介绍Opacus,这是一个免费的开源PyTorch库,用于训练具有差分隐私的深度学习模型(托管在opacus.ai)。Opacus旨在实现简单性、灵活性和速度。它提供了一个简单且用户友好的API,并使机器学习从业者能够通过在代码中添加两行代码来使训练管道私有化。它支持各种各样的层,包括多头注意力、卷积、LSTM、GRU(和通用RNN)和嵌入,开箱即用,并提供支持其他用户定义层的方法。Opacus计算每个样本的批量梯度,与传统的“微批量”方法相比,提供了更高的效率。在本文中,我们介绍了Opacus,详细介绍了推动其实现的原理和独特功能,并将其与其他具有差分隐私的训练模型框架以及标准PyTorch进行了比较。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。