AutoPrivacy:安全神经网络推理的自动分层参数选择
AutoPrivacy: Automated Layer-wise Parameter Selection for Secure Neural Network Inference
摘要:
混合隐私保护神经网络(Hybrid Privacy-Preserving Neural Network,HPPNN)采用同态加密(Homomorphic Encryption,HE)实现线性层,采用乱码电路(Garbled Circuit,GC)实现非线性层,是新兴的机器学习即服务(Machine Learning as a Service,MLaaS)最有前途的安全解决方案之一。不幸的是,HPPNN遭受长的推理延迟,例如,$\sim100$秒/图像,这使得MLaaS不能令人满意。因为HPPNN的基于HE的线性层以$93\%$推理延迟为代价,所以选择一组HE参数以最小化线性层的计算开销是至关重要的。现有的HPPNN过于悲观地选择巨大的HE参数来维持大的噪声预算,因为它们对于整个网络使用相同的HE参数集合并且忽略网络的容错能力。在本文中,为了快速准确地进行安全的神经网络推理,我们提出了一种自动逐层参数选择器AutoPrivacy,它利用深度强化学习来自动确定HPPNN中每个线性层的HE参数集。基于学习的HE参数选择策略优于传统的基于规则的HE参数选择策略。与之前的HPPNN相比,AutoPrivacy优化的HPPNN将推理延迟减少了$53\%\sim70\%$,而准确性损失可以忽略不计。
英文摘要:
Hybrid Privacy-Preserving Neural Network (HPPNN) implementing linear layers by Homomorphic Encryption (HE) and nonlinear layers by Garbled Circuit (GC) is one of the most promising secure solutions to emerging Machine Learning as a Service (MLaaS). Unfortunately, a HPPNN suffers from long inference latency, e.g., $\sim100$ seconds per image, which makes MLaaS unsatisfactory. Because HE-based linear layers of a HPPNN cost $93\%$ inference latency, it is critical to select a set of HE parameters to minimize computational overhead of linear layers. Prior HPPNNs over-pessimistically select huge HE parameters to maintain large noise budgets, since they use the same set of HE parameters for an entire network and ignore the error tolerance capability of a network. In this paper, for fast and accurate secure neural network inference, we propose an automated layer-wise parameter selector, AutoPrivacy, that leverages deep reinforcement learning to automatically determine a set of HE parameters for each linear layer in a HPPNN. The learning-based HE parameter selection policy outperforms conventional rule-based HE parameter selection policy. Compared to prior HPPNNs, AutoPrivacy-optimized HPPNNs reduce inference latency by $53\%\sim70\%$ with negligible loss of accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。