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

在缩减环上近似ReLU以实现高效的基于MPC的隐私推理

Approximating ReLU on a Reduced Ring for Efficient MPC-based Private Inference

Pennsylvania State University(宾夕法尼亚州立大学);Meta AI;Cornell University(康奈尔大学)

Kiwan Maeng, G. Edward Suh

AI总结:

本文提出MPC框架HummingBird,通过在缩减环上仅使用部分非关键比特评估ReLU,大幅降低通信开销,在保持高精度的同时实现显著端到端加速。

摘要:

安全多方计算(MPC)允许用户将机器学习推理卸载到不受信任的服务器上,而无需共享其隐私敏感数据。尽管具有强大的安全特性,但基于MPC的隐私推理由于通信开销过高,在现实世界中尚未被广泛采用。在评估ReLU层时,MPC协议会在各方之间产生大量通信,使得端到端执行时间比非隐私方案慢多个数量级。本文提出了HummingBird,这是一个MPC框架,它通过仅使用一部分比特在较小的环上评估ReLU,显著降低了ReLU通信开销。基于理论分析,HummingBird识别出秘密共享中对准确性不关键的比特,并在ReLU评估期间将其排除以减少通信。凭借其高效的搜索引擎,HummingBird在ReLU期间丢弃了87%至91%的比特,并仍保持高准确性。在涉及多台服务器的真实MPC设置中,HummingBird在不引入任何错误的情况下平均实现了2.03至2.67倍的端到端加速;当允许一定程度的精度下降时,由于其高达8.76倍的通信减少,可实现高达8.64倍的平均加速。

英文摘要:

Secure multi-party computation (MPC) allows users to offload machine learning inference on untrusted servers without having to share their privacy-sensitive data. Despite their strong security properties, MPC-based private inference has not been widely adopted in the real world due to their high communication overhead. When evaluating ReLU layers, MPC protocols incur a significant amount of communication between the parties, making the end-to-end execution time multiple orders slower than its non-private counterpart. This paper presents HummingBird, an MPC framework that reduces the ReLU communication overhead significantly by using only a subset of the bits to evaluate ReLU on a smaller ring. Based on theoretical analyses, HummingBird identifies bits in the secret share that are not crucial for accuracy and excludes them during ReLU evaluation to reduce communication. With its efficient search engine, HummingBird discards 87--91% of the bits during ReLU and still maintains high accuracy. On a real MPC setup involving multiple servers, HummingBird achieves on average 2.03--2.67x end-to-end speedup without introducing any errors, and up to 8.64x average speedup when some amount of accuracy degradation can be tolerated, due to its up to 8.76x communication reduction.

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

↑