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

CoPriv:面向通信高效隐私推理的网络/协议协同优化

CoPriv: Network/Protocol Co-Optimization for Communication-Efficient Private Inference

Wenxuan Zeng, Meng Li, Haichuan Yang, Wen-jie Lu, Runsheng Wang, Ru Huang

AI总结:

本文提出 CoPriv,通过协同设计基于 Winograd 的 2PC 卷积协议与感知 2PC 的网络优化算法,同时削减线性和非线性操作通信,在 CIFAR-100 上显著优于 CrypTFlow2、SNL 和 MetaPruning。

摘要:

基于安全两方计算(2PC)的深度神经网络(DNN)推理能够提供密码学安全的隐私保护,但由于通信量巨大,会产生数量级的延迟开销。以往工作严重依赖 ReLU 数量这一代理指标来近似通信开销,并专注于减少 ReLU 以提升通信效率。然而,我们观察到,由于忽视了其他线性和非线性操作,这些工作在最先进(SOTA)2PC 协议上实现的通信减少有限;如今这些操作已贡献大部分通信。在本文中,我们提出 CoPriv,这是一个联合优化 2PC 推理协议与 DNN 架构的框架。CoPriv 的特点是采用基于 Winograd 变换的新型卷积 2PC 协议,并开发了感知 DNN 的优化,以显著降低推理通信。CoPriv 进一步开发了感知 2PC 的网络优化算法,该算法与所提出的协议兼容,并同时减少所有线性和非线性操作的通信。我们将 CoPriv 与 SOTA 2PC 协议 CrypTFlow2 进行比较,证明在 CIFAR-100 上,ResNet-18 和 ResNet-32 均实现 2.1 倍通信减少。我们还将 CoPriv 与包括 SNL、MetaPruning 等在内的 SOTA 网络优化方法进行比较。与 SNL 相比,CoPriv 在准确率更高的情况下,分别实现 9.98 倍和 3.88 倍的在线与总通信减少。与 MetaPruning 相比,CoPriv 还实现 3.87 倍在线通信减少,同时准确率高出 3% 以上。

英文摘要:

Deep neural network (DNN) inference based on secure 2-party computation (2PC) can offer cryptographically-secure privacy protection but suffers from orders of magnitude latency overhead due to enormous communication. Previous works heavily rely on a proxy metric of ReLU counts to approximate the communication overhead and focus on reducing the ReLUs to improve the communication efficiency. However, we observe these works achieve limited communication reduction for state-of-the-art (SOTA) 2PC protocols due to the ignorance of other linear and non-linear operations, which now contribute to the majority of communication. In this work, we present CoPriv, a framework that jointly optimizes the 2PC inference protocol and the DNN architecture. CoPriv features a new 2PC protocol for convolution based on Winograd transformation and develops DNN-aware optimization to significantly reduce the inference communication. CoPriv further develops a 2PC-aware network optimization algorithm that is compatible with the proposed protocol and simultaneously reduces the communication for all the linear and non-linear operations. We compare CoPriv with the SOTA 2PC protocol, CrypTFlow2, and demonstrate 2.1x communication reduction for both ResNet-18 and ResNet-32 on CIFAR-100. We also compare CoPriv with SOTA network optimization methods, including SNL, MetaPruning, etc. CoPriv achieves 9.98x and 3.88x online and total communication reduction with a higher accuracy compare to SNL, respectively. CoPriv also achieves 3.87x online communication reduction with more than 3% higher accuracy compared to MetaPruning.

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

↑