arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.01637cs.CR
收藏

基于函数的线性和非线性联合计算的高效隐私保护神经网络推理

Joint Linear and Nonlinear Computation across Functions for Efficient Privacy-Preserving Neural Network Inference

Qiao Zhang, Tao Xiang, Chunsheng Xin, Biwen Chen, Hongyi Wu

摘要:

虽然最近在隐私保护机器学习即服务(MLaaS)方面的发展令人鼓舞,但在现实世界的应用程序中部署它仍然存在显着的性能差距。我们观察到,最先进的框架对每个函数输出都遵循计算和共享原则,其中线性函数中的求和是函数输出的两个步骤中的最后一个步骤,涉及所有旋转(这是最昂贵的HE操作),而非线性函数中的复用也是函数输出的两个步骤中的最后一个步骤,引入了明显的通信回合。因此,我们挑战传统的计算和共享逻辑,并引入了第一个跨函数的联合线性和非线性计算,其特征在于:1)用于计算非线性函数的PHE三元组,利用该三元组消除了复用; 2)用于计算线性函数的矩阵编码,利用该矩阵编码消除了用于求和的所有旋转; 3)网络自适应,重组模型结构,尽可能利用联合计算模块。通过数值复杂度验证了提高的效率,实验表明,对于最先进的模型中使用的各种函数,加速比高达13倍,并且比主流神经网络加速比高达5倍。

英文摘要:

While it is encouraging to witness the recent development in privacy-preserving Machine Learning as a Service (MLaaS), there still exists a significant performance gap for its deployment in real-world applications. We observe the state-of-the-art frameworks follow a compute-and-share principle for every function output where the summing in linear functions, which is the last of two steps for function output, involves all rotations (which is the most expensive HE operation), and the multiplexing in nonlinear functions, which is also the last of two steps for function output, introduces noticeable communication rounds. Therefore, we challenge the conventional compute-and-share logic and introduce the first joint linear and nonlinear computation across functions that features by 1) the PHE triplet for computing the nonlinear function, with which the multiplexing is eliminated; 2) the matrix encoding to calculate the linear function, with which all rotations for summing is removed; and 3) the network adaptation to reassemble the model structure, with which the joint computation module is utilized as much as possible. The boosted efficiency is verified by the numerical complexity, and the experiments demonstrate up to 13x speedup for various functions used in the state-of-the-art models and up to 5x speedup over mainstream neural networks.

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

↑