arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2105.04236cs.CRcs.LGcs.MS
收藏

SIRNN:一个用于安全RNN推理的数学库

SIRNN: A Math Library for Secure RNN Inference

Microsoft Research(微软研究院)

Deevashwer Rathee, Mayank Rathee, Rahul Kranti Kiran Goli, Divya Gupta, Rahul Sharma, Nishanth Chandran, Aseem Rastogi

摘要:

复杂的机器学习(ML)推理算法,如递归神经网络(RNN),使用来自数学库的标准函数,如幂运算、sigmoid、tanh和平方根倒数。尽管关于安全2方推理的先前工作提供了用于卷积神经网络(CNN)的专用协议,但是这些数学运算符的现有安全实现依赖于遭受高通信的通用2方计算(2 PC)协议。我们为数学函数提供了新的专用2 PC协议,这些数学函数主要依赖于查找表和混合位宽来解决此性能开销;我们的数学函数协议所传输的数据比以前的工作少423倍。我们的数学实现所使用的一些混合位宽操作是(零和有符号)扩展,不同形式的截断,混合位宽操作数的乘法和数字分解(位分解到更大数字的概括)。对于这些原始操作中的每一个,我们构建专门的2 PC协议,比通用的2 PC通信效率更高,并且可以是独立的兴趣。此外,我们的数学实现是数值精确的,这确保了安全实现保持明文的模型准确性。我们建立在我们的新协议之上,以构建SIRNN,这是一个端到端安全的2方DNN推理库,它提供了对时间序列传感器数据进行操作的RNN的第一个安全实现,对语音数据进行操作的RNN,以及结合CNN和RNN的最先进的ML架构,用于识别图像中存在的所有头部。我们的评估表明,SIRNN实现了高达三个数量级的性能提高相比,这些模型的推理使用现有的最先进的2 PC框架。

英文摘要:

Complex machine learning (ML) inference algorithms like recurrent neural networks (RNNs) use standard functions from math libraries like exponentiation, sigmoid, tanh, and reciprocal of square root. Although prior work on secure 2-party inference provides specialized protocols for convolutional neural networks (CNNs), existing secure implementations of these math operators rely on generic 2-party computation (2PC) protocols that suffer from high communication. We provide new specialized 2PC protocols for math functions that crucially rely on lookup-tables and mixed-bitwidths to address this performance overhead; our protocols for math functions communicate up to 423x less data than prior work. Some of the mixed bitwidth operations used by our math implementations are (zero and signed) extensions, different forms of truncations, multiplication of operands of mixed-bitwidths, and digit decomposition (a generalization of bit decomposition to larger digits). For each of these primitive operations, we construct specialized 2PC protocols that are more communication efficient than generic 2PC, and can be of independent interest. Furthermore, our math implementations are numerically precise, which ensures that the secure implementations preserve model accuracy of cleartext. We build on top of our novel protocols to build SIRNN, a library for end-to-end secure 2-party DNN inference, that provides the first secure implementations of an RNN operating on time series sensor data, an RNN operating on speech data, and a state-of-the-art ML architecture that combines CNNs and RNNs for identifying all heads present in images. Our evaluation shows that SIRNN achieves up to three orders of magnitude of performance improvement when compared to inference of these models using an existing state-of-the-art 2PC framework.

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

↑