Author:
Zheng Mengxin,Ju Lei,Jiang Lei
Abstract
Introduction: Privacy concerns arise whenever sensitive data is outsourced to untrusted Machine Learning as a Service (MLaaS) platforms. Fully Homomorphic Encryption (FHE) emerges one of the most promising solutions to implementing privacy-preserving MLaaS. But prior FHE-based MLaaS faces challenges from both software and hardware perspectives. First, FHE can be implemented by various schemes including BGV, BFV, and CKKS, which are good at different FHE operations, e.g., additions, multiplications, and rotations. Different neural network architectures require different numbers of FHE operations, thereby preferring different FHE schemes. However, state-of-the-art MLaaS just naïvely chooses one FHE scheme to build FHE-based neural networks without considering other FHE schemes. Second, state-of-the-art MLaaS uses power-hungry hardware accelerators to process FHE-based inferences. Typically, prior high-performance FHE accelerators consume >160 Watt, due to their huge capacity (e.g., 512 MB) on-chip SRAM scratchpad memories.Methods: In this paper, we propose a software and hardware co-designed FHE-based MLaaS framework, CoFHE. From the software perspective, we propose an FHE compiler to select the best FHE scheme for a network architecture. We also build a low-power and high-density NAND-SPIN and SRAM hybrid scratchpad memory system for FHE hardware accelerators.Results: On average, under the same security and accuracy constraints, on average, CoFHE accelerates various FHE-based inferences by 18%, and reduces the energy consumption of various FHE-based inferences by 26%.Discussion: CoFHE greatly improves the latency and energy efficiency of FHE-based MLaaS.
Reference29 articles.
1. OpenFHE
2. Sapphire: A configurable crypto-processor for post-quantum lattice-based protocols;Banerjee;IACR Trans. Cryptogr. Hardw. Embed. Syst.,2019
3. Ngraph-he2: A high-throughput framework for neural network inference on encrypted data;Boemer,2019
4. Fast homomorphic evaluation of deep discretized neural networks;Bourse,2018
5. (leveled) fully homomorphic encryption without bootstrapping;Brakerski;ACM Trans. Comput. Theory,2014
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. PriML: An Electro-Optical Accelerator for Private Machine Learning on Encrypted Data;2023 24th International Symposium on Quality Electronic Design (ISQED);2023-04-05