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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ju, Jae Hyung, Park, Jaiyoung, Kim, Jongmin, Kang, Minsik, Kim, Donghwan, Cheon, Jung Hee, Ahn, Jung Ho
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912184653578240
author Ju, Jae Hyung
Park, Jaiyoung
Kim, Jongmin
Kang, Minsik
Kim, Donghwan
Cheon, Jung Hee
Ahn, Jung Ho
author_facet Ju, Jae Hyung
Park, Jaiyoung
Kim, Jongmin
Kang, Minsik
Kim, Donghwan
Cheon, Jung Hee
Ahn, Jung Ho
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2312_04356
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle NeuJeans: Private Neural Network Inference with Joint Optimization of Convolution and FHE Bootstrapping
Ju, Jae Hyung
Park, Jaiyoung
Kim, Jongmin
Kang, Minsik
Kim, Donghwan
Cheon, Jung Hee
Ahn, Jung Ho
Cryptography and Security
Machine Learning
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.
title NeuJeans: Private Neural Network Inference with Joint Optimization of Convolution and FHE Bootstrapping
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2312.04356