HEQuant:融合同态加密与量化实现通信高效的隐私推理
HEQuant: Marrying Homomorphic Encryption and Quantization for Communication-Efficient Private Inference
AI总结:
针对同态加密隐私推理通信开销高的问题,提出HEQuant框架,通过系数内打包、量化感知分块等低精度量化感知优化,实现了通信与延迟的显著降低。
摘要:
基于同态加密(HE)的安全两方计算可通过形式化安全保障保护数据隐私,但存在通信开销高的问题。尽管此前的研究(如Cheetah、Iron等)已针对不同神经网络(NN)运算提出了高效的基于HE的协议,但这些协议仍假设神经网络运算需要高精度(如37位定点数),忽略了神经网络对量化误差的天然鲁棒性。本文提出HEQuant,其特点是针对基于HE的协议进行低精度量化感知优化。我们观察到,随着位精度下降,量化与HE的简单组合带来的收益会迅速饱和。因此,为进一步提升通信效率,我们提出了一系列优化方法,包括系数内打包算法和量化感知分块算法,以同时减少传输数据的数量和精度。与现有最先进的基于HE的协议(如CrypTFlow2、Cheetah、Iron等)相比,HEQuant实现了3.5~23.4倍的通信量降低和3.0~9.3倍的延迟降低。同时,与现有最先进的网络优化框架(如SENet、SNL等)相比,HEQuant也实现了3.1~3.6倍的通信量降低。
英文摘要:
Secure two-party computation with homomorphic encryption (HE) protects data privacy with a formal security guarantee but suffers from high communication overhead. While previous works, e.g., Cheetah, Iron, etc, have proposed efficient HE-based protocols for different neural network (NN) operations, they still assume high precision, e.g., fixed point 37 bit, for the NN operations and ignore NNs' native robustness against quantization error. In this paper, we propose HEQuant, which features low-precision-quantization-aware optimization for the HE-based protocols. We observe the benefit of a naive combination of quantization and HE quickly saturates as bit precision goes down. Hence, to further improve communication efficiency, we propose a series of optimizations, including an intra-coefficient packing algorithm and a quantization-aware tiling algorithm, to simultaneously reduce the number and precision of the transferred data. Compared with prior-art HE-based protocols, e.g., CrypTFlow2, Cheetah, Iron, etc, HEQuant achieves $3.5\sim 23.4\times$ communication reduction and $3.0\sim 9.3\times$ latency reduction. Meanwhile, when compared with prior-art network optimization frameworks, e.g., SENet, SNL, etc, HEQuant also achieves $3.1\sim 3.6\times$ communication reduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。