arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.15201cs.CR
收藏

大区间同态评估的简单解决方案

A Simple Solution for Homomorphic Evaluation on Large Intervals

John Chiang

AI总结:

本文提出利用神经网络回归进行同态加密下的多项式逼近,以近最优深度减少模数消耗,并在大区间上高效评估Sigmoid函数。

摘要:

同态加密(HE)是一种用于隐私保护计算的有前景的技术。由于同态加密方案仅支持原始多项式运算,因此对非多项式函数进行多项式逼近的同态评估在隐私保护机器学习中扮演着重要角色。在本文中,我们介绍一种可能被研究人员忽视的简单解决方案来逼近任意函数:即直接使用神经网络进行回归。通过搜索合适的超参数,神经网络可以在给定函数和固定精度下实现接近最优的计算深度,从而减少模数的消耗。我们选择神经网络进行多项式逼近的同态评估有三个主要原因。首先,具有多项式激活函数的神经网络可以用于逼近加密状态下所需的任何函数。这意味着我们可以通过统一的流程计算任何多项式逼近,例如Sigmoid或ReLU的逼近。其次,通过仔细寻找合适的架构,神经网络可以使用接近最优的乘法深度高效地评估多项式,这将消耗更少的模数,从而减少密文刷新的次数。最后,作为流行的工具,神经网络模型有许多成熟的技术可以方便地服务于我们的解决方案。实验表明,我们的方法可用于逼近各种函数。我们将该方法分别应用于大区间$[-30, +30]$、$[-50, +50]$和$[-70, +70]$上的Sigmoid函数评估。

英文摘要:

Homomorphic encryption (HE) is a promising technique used for privacy-preserving computation. Since HE schemes only support primitive polynomial operations, homomorphic evaluation of polynomial approximations for non-polynomial functions plays an important role in privacy-preserving machine learning. In this paper, we introduce a simple solution to approximating any functions, which might be overmissed by researchers: just using the neural networks for regressions. By searching decent superparameters, neural networks can achieve near-optimal computation depth for a given function with fixed precision, thereby reducing the modulus consumed. There are three main reasons why we choose neural networks for homomorphic evaluation of polynomial approximations. Firstly, neural networks with polynomial activation functions can be used to approximate whatever functions are needed in an encrypted state. This means that we can compute by one unified process for any polynomial approximation, such as that of Sigmoid or of ReLU. Secondly, by carefully finding an appropriate architecture, neural networks can efficiently evaluate a polynomial using near-optimal multiplicative depth, which would consume less modulus and therefore employ less ciphertext refreshing. Finally, as popular tools, model neural networks have many well-studied techniques that can conveniently serve our solution. Experiments showed that our method can be used for approximation of various functions. We exploit our method to the evaluation of the Sigmoid function on large intervals $[-30, +30]$, $[-50, +50]$, and $[-70, +70]$, respectively.

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

↑