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

用于加密数据的高效CNN构建块

Efficient CNN Building Blocks for Encrypted Data

Center for Data Sciences, International Institute of Information Technology, Bangalore(班加罗尔国际信息技术学院数据科学中心);Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);University at Buffalo, SUNY(纽约州立大学布法罗分校);IBM Systems(IBM系统部);Microsoft(微软)

Nayna Jain, Karthik Nandakumar, Nalini Ratha, Sharath Pankanti, Uttam Kumar

摘要:

对加密数据的机器学习可以解决与不可信的服务提供商共享敏感数据的隐私和合法性相关的问题。全同态加密(FHE)是一种很有前途的技术,可以实现机器学习和推理,同时提供严格的信息泄漏保证。由于深度卷积神经网络(CNN)已成为若干应用中的首选机器学习工具,因此已进行了若干尝试来利用CNN从加密数据中提取见解。然而,现有的工作只注重确保数据的安全性,而忽略了模型参数的安全性。他们还报告了高级实现,但没有提供对CNN的通用原语运算符(如卷积、非线性激活和池化)的FHE实现中涉及的准确性、安全性和速度权衡的严格分析。在这项工作中,我们考虑一个机器学习作为一个服务(MLaaS)的情况下,输入数据和模型参数都使用FHE的安全。使用CKKS计划在开源HElib库中,我们表明,所选择的FHE方案的操作参数,如分圆多项式的程度,底层分层HE方案的深度限制,以及计算精度参数对机器学习模型的设计有重大影响(特别是,激活函数和池化方法的选择)。我们的实证研究表明,上述设计参数的选择结果之间的准确性,安全级别,和计算时间显着的权衡。MNIST数据集上的加密推理实验表明,其他设计选择,如密文打包策略和使用多线程的并行化,在确定推理过程的吞吐量和延迟方面也很关键。

英文摘要:

Machine learning on encrypted data can address the concerns related to privacy and legality of sharing sensitive data with untrustworthy service providers. Fully Homomorphic Encryption (FHE) is a promising technique to enable machine learning and inferencing while providing strict guarantees against information leakage. Since deep convolutional neural networks (CNNs) have become the machine learning tool of choice in several applications, several attempts have been made to harness CNNs to extract insights from encrypted data. However, existing works focus only on ensuring data security and ignore security of model parameters. They also report high level implementations without providing rigorous analysis of the accuracy, security, and speed trade-offs involved in the FHE implementation of generic primitive operators of a CNN such as convolution, non-linear activation, and pooling. In this work, we consider a Machine Learning as a Service (MLaaS) scenario where both input data and model parameters are secured using FHE. Using the CKKS scheme available in the open-source HElib library, we show that operational parameters of the chosen FHE scheme such as the degree of the cyclotomic polynomial, depth limitations of the underlying leveled HE scheme, and the computational precision parameters have a major impact on the design of the machine learning model (especially, the choice of the activation function and pooling method). Our empirical study shows that choice of aforementioned design parameters result in significant trade-offs between accuracy, security level, and computational time. Encrypted inference experiments on the MNIST dataset indicate that other design choices such as ciphertext packing strategy and parallelization using multithreading are also critical in determining the throughput and latency of the inference process.

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

↑