arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.10949cs.CRcs.LG
收藏

CryptGPU:在GPU上进行快速隐私保护机器学习

CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU

University of Virginia(弗吉尼亚大学);Facebook AI Research(Facebook AI研究院)

Sijun Tan, Brian Knott, Yuan Tian, David J. Wu

摘要:

我们介绍CryptGPU,这是一个用于隐私保护的机器学习系统,它在GPU(图形处理单元)上实现所有操作。正如GPU在现代深度学习的成功中发挥了关键作用一样,它们对于实现可扩展的隐私保护深度学习也至关重要。在这项工作中,我们首先引入了一个新的接口,以将秘密共享值(在离散域中)上的加密操作有损嵌入到浮点运算中,这些运算可以由高度优化的CUDA线性代数内核处理。然后,我们确定了一系列的“GPU友好”的加密协议,使隐私保护评估的线性和非线性运算的GPU。我们的微基准测试表明,我们基于GPU的私有卷积协议比类似的基于CPU的协议快150倍以上;对于ReLU激活函数等非线性操作,我们基于GPU的协议比其CPU模拟快10倍左右。借助CryptGPU,我们支持在具有超过6000万个参数的卷积神经网络上进行私有推理和私有训练,并处理ImageNet等大型数据集。与以前的最先进技术相比,当考虑大型模型和数据集时,我们的协议在私有推理方面实现了2倍至8倍的改进,在私有训练方面实现了6倍至36倍的改进。我们的工作不仅展示了完全在GPU上执行安全多方计算(MPC)以实现快速隐私保护机器学习的可行性,而且还强调了设计可以充分利用GPU计算能力的新MPC原语的重要性。

英文摘要:

We introduce CryptGPU, a system for privacy-preserving machine learning that implements all operations on the GPU (graphics processing unit). Just as GPUs played a pivotal role in the success of modern deep learning, they are also essential for realizing scalable privacy-preserving deep learning. In this work, we start by introducing a new interface to losslessly embed cryptographic operations over secret-shared values (in a discrete domain) into floating-point operations that can be processed by highly-optimized CUDA kernels for linear algebra. We then identify a sequence of "GPU-friendly" cryptographic protocols to enable privacy-preserving evaluation of both linear and non-linear operations on the GPU. Our microbenchmarks indicate that our private GPU-based convolution protocol is over 150x faster than the analogous CPU-based protocol; for non-linear operations like the ReLU activation function, our GPU-based protocol is around 10x faster than its CPU analog. With CryptGPU, we support private inference and private training on convolutional neural networks with over 60 million parameters as well as handle large datasets like ImageNet. Compared to the previous state-of-the-art, when considering large models and datasets, our protocols achieve a 2x to 8x improvement in private inference and a 6x to 36x improvement for private training. Our work not only showcases the viability of performing secure multiparty computation (MPC) entirely on the GPU to enable fast privacy-preserving machine learning, but also highlights the importance of designing new MPC primitives that can take full advantage of the GPU's computing capabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑