GALA:用于隐私保护神经网络中线性代数的贪婪ComputAtion
GALA: Greedy ComputAtion for Linear Algebra in Privacy-Preserved Neural Networks
摘要:
机器学习即服务(MLaaS)正在终端设备上实现广泛的智能应用。然而,保护隐私的计算仍然昂贵。我们的调查发现,基于HE的线性计算中最耗时的部分是一系列Permutation(Perm)操作,这些操作对于隐私保护的MLaaS中的点积和卷积是必不可少的。为此,我们提出了GALA:Greedy ComputAtion for Linear Algebra in Privacy-Preserved神经网络,它将基于HE的线性计算看作一系列同态加法、乘法和Perm运算,并在每个线性计算步骤中选择代价最小的运算来降低总代价. GALA的主要贡献在于:(1)引入了行加权矩阵编码,并结合了基于GC的非线性计算所需的份额生成,减少了点积的Perm运算;(2)设计了一种先加后Perm的方法(称为核分组),减少了卷积的Perm运算。因此,GALA有效地降低了基于HE的线性计算的成本,这是几乎所有最近的隐私保护神经网络框架中的关键构建块,包括GAZELLE(Usenix Security'18),DELPHI(Usenix Security'20)和CrypTFlow 2(CCS'20)。凭借其对基于HE的线性计算的深度优化,GALA可以成为集成到这些系统中的即插即用模块,以进一步提高其效率。我们的实验表明,它实现了显着的加速高达700倍的点积和14倍的卷积计算在不同的数据维数。与此同时,GALA在AlexNet、VGG、ResNet-18、ResNet-50、ResNet-101和ResNet-152上的运行时间分别比GAZELLE提高了2.5倍、2.7倍、3.2倍、8.3倍、7.7倍和7.5倍,比CrypTFlow 2提高了6.5倍、6倍、5.7倍、4.5倍、4.2倍和4.1倍。
英文摘要:
Machine Learning as a Service (MLaaS) is enabling a wide range of smart applications on end devices. However, privacy-preserved computation is still expensive. Our investigation has found that the most time-consuming component of the HE-based linear computation is a series of Permutation (Perm) operations that are imperative for dot product and convolution in privacy-preserved MLaaS. To this end, we propose GALA: Greedy computAtion for Linear Algebra in privacy-preserved neural networks, which views the HE-based linear computation as a series of Homomorphic Add, Mult and Perm operations and chooses the least expensive operation in each linear computation step to reduce the overall cost. GALA makes the following contributions: (1) It introduces a row-wise weight matrix encoding and combines the share generation that is needed for the GC-based nonlinear computation, to reduce the Perm operations for the dot product; (2) It designs a first-Add-second-Perm approach (named kernel grouping) to reduce Perm operations for convolution. As such, GALA efficiently reduces the cost for the HE-based linear computation, which is a critical building block in almost all of the recent frameworks for privacy-preserved neural networks, including GAZELLE (Usenix Security'18), DELPHI (Usenix Security'20), and CrypTFlow2 (CCS'20). With its deep optimization of the HE-based linear computation, GALA can be a plug-and-play module integrated into these systems to further boost their efficiency. Our experiments show that it achieves a significant speedup up to 700x for the dot product and 14x for the convolution computation under different data dimensions. Meanwhile, GALA demonstrates an encouraging runtime boost by 2.5x, 2.7x, 3.2x, 8.3x, 7.7x, and 7.5x over GAZELLE and 6.5x, 6x, 5.7x, 4.5x, 4.2x, and 4.1x over CrypTFlow2, on AlexNet, VGG, ResNet-18, ResNet-50, ResNet-101, and ResNet-152, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。