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

描述和优化端到端系统以实现私有推理

Characterizing and Optimizing End-to-End Systems for Private Inference

Karthik Garimella, Zahra Ghodsi, Nandan Kumar Jha, Siddharth Garg, Brandon Reagen

摘要:

在两方机器学习预测服务中,客户端的目标是查询远程服务器训练的机器学习模型,以执行某个应用领域的神经网络推理。然而,客户端或服务器在此过程中可能会获取敏感信息,从而导致潜在的收集、未经授权的二次使用和对个人信息的不当访问。这些安全问题导致了私有推理(PI),其中客户端的个人数据和服务器的训练模型都是保密的。最先进的PI协议由预处理或离线阶段和在线阶段组成,在线阶段结合了几个密码原语:同态加密(HE),秘密共享(SS),乱码电路(GC)和不经意传输(OT)。尽管需要和最近的性能改进,PI今天仍然很大程度上是《双城之战》,并且对于实际使用来说太慢了。本文讨论了PI的缺点,详细描述了一个标准的高性能协议,以建立系统社区的基础知识和直觉。我们的描述精确地指出了所有低效率的来源--计算、通信和存储。与以前的工作相比,我们考虑推理请求到达率,而不是孤立地研究单个推理,我们发现预处理阶段不能被忽略,并且经常在线发生,因为没有足够的停机时间来隐藏预计算延迟。最后,我们利用我们的特性的见解,并提出了三个优化,以解决存储(客户端Garbler),计算(层并行HE)和通信(无线时隙分配)的开销。与最先进的PI协议相比,这些优化提供了1.8 $\times$的总PI加速比,能够支持高达2.24 $\times$的推理请求。

英文摘要:

In two-party machine learning prediction services, the client's goal is to query a remote server's trained machine learning model to perform neural network inference in some application domain. However, sensitive information can be obtained during this process by either the client or the server, leading to potential collection, unauthorized secondary use, and inappropriate access to personal information. These security concerns have given rise to Private Inference (PI), in which both the client's personal data and the server's trained model are kept confidential. State-of-the-art PI protocols consist of a pre-processing or offline phase and an online phase that combine several cryptographic primitives: Homomorphic Encryption (HE), Secret Sharing (SS), Garbled Circuits (GC), and Oblivious Transfer (OT). Despite the need and recent performance improvements, PI remains largely arcane today and is too slow for practical use. This paper addresses PI's shortcomings with a detailed characterization of a standard high-performance protocol to build foundational knowledge and intuition in the systems community. Our characterization pinpoints all sources of inefficiency -- compute, communication, and storage. In contrast to prior work, we consider inference request arrival rates rather than studying individual inferences in isolation and we find that the pre-processing phase cannot be ignored and is often incurred online as there is insufficient downtime to hide pre-compute latency. Finally, we leverage insights from our characterization and propose three optimizations to address the storage (Client-Garbler), computation (layer-parallel HE), and communication (wireless slot allocation) overheads. Compared to the state-of-the-art PI protocol, these optimizations provide a total PI speedup of 1.8$\times$ with the ability to sustain inference requests up to a 2.24$\times$ greater rate.

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

↑