arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.04637cs.CR
收藏

SIMC 2.0:改进的针对恶意客户端的安全ML推断

SIMC 2.0: Improved Secure ML Inference Against Malicious Clients

Guowen Xu, Xingshuo Han, Tianwei Zhang, Shengmin Xu, Jianting Ning, Xinyi Huang, Hongwei Li, Robert H. Deng

摘要:

在本文中,我们研究了针对恶意客户端和半可信服务器的安全ML推理问题,使得客户端只学习推理输出,而服务器什么也不知道。这个问题首先由Lehmkuhl \textit{et al.}用一种解决方案(MUSE,Usenix Security'21)来阐述,其性能随后由Rehran等人大大改进。的工作(SIMC,USENIX Security'22)。然而,这些努力在走向实用性方面仍然存在着不小的差距,全面降低开销和安全推理加速的挑战。我们提出了SIMC 2.0,它符合SIMC的底层结构,但显着优化模型的线性和非线性层。具体而言,(1)设计了一种新的矩阵与向量同态并行计算的编码方法。它是通过洞察SIMC中密码原语之间的互补性而定制的。因此,它可以最小化在计算过程中引起的旋转操作的数量,这与其他同态操作相比在计算上非常昂贵,加法、乘法)。(2)我们减小了乱码电路(GC)(用于计算非线性激活函数,例如,ReLU)在SIMC中约占三分之二。然后,我们设计了一个替代的轻量级协议来执行原来分配给昂贵的GC的任务。实验结果表明,与SIMC相比,SIMC 2.0在线性层计算方面实现了最高达$17.4\times $的显著加速,在不同数据维度下实现非线性层的计算和通信开销至少减少了$1.3\times$.与此同时,SIMC 2.0在不同的最先进的ML模型上展示了$2.3\sim 4.3\times$对SIMC的令人鼓舞的运行时提升。

英文摘要:

In this paper, we study the problem of secure ML inference against a malicious client and a semi-trusted server such that the client only learns the inference output while the server learns nothing. This problem is first formulated by Lehmkuhl \textit{et al.} with a solution (MUSE, Usenix Security'21), whose performance is then substantially improved by Chandran et al.'s work (SIMC, USENIX Security'22). However, there still exists a nontrivial gap in these efforts towards practicality, giving the challenges of overhead reduction and secure inference acceleration in an all-round way. We propose SIMC 2.0, which complies with the underlying structure of SIMC, but significantly optimizes both the linear and non-linear layers of the model. Specifically, (1) we design a new coding method for homomorphic parallel computation between matrices and vectors. It is custom-built through the insight into the complementarity between cryptographic primitives in SIMC. As a result, it can minimize the number of rotation operations incurred in the calculation process, which is very computationally expensive compared to other homomorphic operations e.g., addition, multiplication). (2) We reduce the size of the garbled circuit (GC) (used to calculate nonlinear activation functions, e.g., ReLU) in SIMC by about two thirds. Then, we design an alternative lightweight protocol to perform tasks that are originally allocated to the expensive GCs. Compared with SIMC, our experiments show that SIMC 2.0 achieves a significant speedup by up to $17.4\times $ for linear layer computation, and at least $1.3\times$ reduction of both the computation and communication overheads in the implementation of non-linear layers under different data dimensions. Meanwhile, SIMC 2.0 demonstrates an encouraging runtime boost by $2.3\sim 4.3\times$ over SIMC on different state-of-the-art ML models.

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

↑