arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.04356cs.CRcs.LG
收藏

NeuJeans:结合卷积与FHE自举联合优化的私有神经网络推理

NeuJeans: Private Neural Network Inference with Joint Optimization of Convolution and FHE Bootstrapping

Seoul National University(首尔大学);CryptoLab Inc.(CryptoLab公司)

Jae Hyung Ju, Jaiyoung Park, Jongmin Kim, Minsik Kang, Donghwan Kim, Jung Hee Cheon, Jung Ho Ahn

AI总结:

本研究提出基于FHE的NeuJeans方案,通过CinS编码省去编码转换、优化卷积执行流程,大幅提升深度CNN私有推理的速度,可在数秒内完成ImageNet规模模型的推理。

摘要:

全同态加密(Fully homomorphic encryption, FHE)是实现私有神经网络推理(private inference, PI)服务的一种极具前景的密码原语,它允许客户端将推理任务完全卸载到云服务器,同时使服务器无法获知客户端数据。本研究提出了NeuJeans,一种基于FHE的深度卷积神经网络(convolutional neural networks, CNNs)私有推理解决方案,旨在解决CNN的FHE计算成本极高这一关键问题。我们提出了一种名为Coefficients-in-Slot(CinS,槽内系数)编码的新型编码方法,该方法无需代价高昂的槽置换,即可在一次同态加密(HE)乘法中完成多次卷积运算。我们进一步发现,CinS编码可通过对传统Slot(槽)编码的密文执行离散傅里叶变换(Discrete Fourier Transform, DFT)的前几步得到。由于密文自举以DFT为起始步骤,这一特性使我们能够省去CinS编码与Slot编码之间的转换操作。利用这一优势,我们为各类二维卷积(two-dimensional convolution, conv2d)运算设计了优化的执行流程,并将其应用于端到端的CNN实现中。与当前最先进的基于FHE的私有推理工作相比,NeuJeans将“卷积-激活”序列的性能最高提升了5.68倍,仅需几秒即可完成ImageNet规模CNN的私有推理。

英文摘要:

Fully homomorphic encryption (FHE) is a promising cryptographic primitive for realizing private neural network inference (PI) services by allowing a client to fully offload the inference task to a cloud server while keeping the client data oblivious to the server. This work proposes NeuJeans, an FHE-based solution for the PI of deep convolutional neural networks (CNNs). NeuJeans tackles the critical problem of the enormous computational cost for the FHE evaluation of CNNs. We introduce a novel encoding method called Coefficients-in-Slot (CinS) encoding, which enables multiple convolutions in one HE multiplication without costly slot permutations. We further observe that CinS encoding is obtained by conducting the first several steps of the Discrete Fourier Transform (DFT) on a ciphertext in conventional Slot encoding. This property enables us to save the conversion between CinS and Slot encodings as bootstrapping a ciphertext starts with DFT. Exploiting this, we devise optimized execution flows for various two-dimensional convolution (conv2d) operations and apply them to end-to-end CNN implementations. NeuJeans accelerates the performance of conv2d-activation sequences by up to 5.68 times compared to state-of-the-art FHE-based PI work and performs the PI of a CNN at the scale of ImageNet within a mere few seconds.

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

↑