GALA: Greedy ComputAtion for Linear Algebra in Privacy-Preserved Neural Networks
GALA: жадные вычисления для линейной алгебры в нейронных сетях с сохранением конфиденциальности
2021-01-01
SCID: 54.1/xp44turz
Discuss with AI
garbled circuitshomomorphic encryptionlinear algebra computationpermutation operationsprivacy-preserved neural networks
Figures from the paper
Abstract (AI)
Machine Learning as a Service (MLaaS) is enabling a wide range of smart applications on end devices.However, privacy still remains a fundamental challenge.The schemes that exploit Homomorphic Encryption (HE)-based linear computations and Garbled Circuit (GC)-based nonlinear computations have demonstrated superior performance to enable privacypreserved MLaaS.Nevertheless, there is still a significant gap in the computation speed.Our investigation has found that the HE-based linear computation dominates the total computation time for state-of-the-art deep neural networks.Furthermore, 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.This work focuses on a deep optimization of the HEbased linear computations to minimize the Perm operations, thus substantially reducing the overall computation time.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 700× for the dot product and 14× for the convolution computation under different data dimensions.Meanwhile, GALA demonstrates an encouraging runtime boost by 2.5×, 2.7×, 3.2×, 8.3×, 7.7×, and 7.5× over GAZELLE and 6.5×, 6×, 5.7×, 4.5×, 4.2×, and 4.1× over CrypTFlow2, on AlexNet, VGG, ResNet-18,
Key Findings
1
GALA is designed as a plug-and-play optimization module for HE-based linear computation in frameworks including GAZELLE, DELPHI, and CrypTFlow2.
2
GALA models homomorphic linear computation as Add, Mult, and Perm operations, greedily selecting the least expensive operation at each step to reduce overall cost.
3
HE-based linear computation dominates total runtime in state-of-the-art privacy-preserved deep neural networks, with Permutation operations being the main bottleneck.
4
Row-wise weight-matrix encoding combined with GC share generation reduces Permutation operations required for dot products.
5
The first-Add-second-Perm kernel-grouping strategy reduces Permutation operations for convolutions.
Research Object
HE-based linear computation in privacy-preserved neural networks for MLaaS, including dot-product and convolution operations
Research Subject
Computation cost and Permutation-operation reduction in homomorphic linear algebra
Publication Details
Publication Date
2021-01-01
Journal
Publisher
ISSN
Open access PDF
Access Type
Author Information
Download PDF
Subscribe to digest