arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.08260cs.CRcs.LG
收藏

HE-MAN——基于ONNX模型的同态加密机器学习

HE-MAN -- Homomorphically Encrypted MAchine learning with oNnx models

MCI Management Center Innsbruck(因斯布鲁克管理中心);Fraunhofer Austria Research GmbH(弗劳恩霍夫奥地利研究有限公司);SCCH Software Competence Center Hagenberg(哈根贝格软件能力中心)

Martin Nocker, David Drexel, Michael Rader, Alessio Montuoro, Pascal Schöttle

AI总结:

本文提出开源两方机器学习工具集HE-MAN,利用全同态加密在ONNX模型上实现隐私保护推理,支持Concrete和TenSEAL两种方案,在保证准确率与明文模型相当的同时无需用户具备密码学专业知识。

摘要:

机器学习(ML)算法对产品和服务的成功日益重要,尤其是考虑到数据量和可用性的不断增长。这一趋势同样适用于处理敏感数据的领域,例如处理医疗数据或人脸图像的应用。然而,人们不愿意将个人敏感数据交给ML服务提供商。与此同时,服务提供商有强烈的动机保护其知识产权,因此不愿公开分享其ML模型。全同态加密(FHE)是一种很有前景的技术,既能允许个人使用ML服务而不放弃隐私,又能同时保护服务提供商的ML模型。尽管FHE在持续改进,但它仍然很少被集成到当今的ML应用中。我们介绍HE-MAN,一个开源的两方机器学习工具集,用于使用ONNX模型和同态加密数据进行隐私保护推理。模型和输入数据都不需要被披露。HE-MAN将密码学细节从用户中抽象出来,因此任何一方都不需要具备FHE专业知识。HE-MAN的安全性依赖于其底层的FHE方案。目前,我们集成了两种不同的同态加密方案,即Concrete和TenSEAL。与先前的工作相比,HE-MAN开箱即用地支持ONNX格式的广泛ML模型,且不牺牲准确率。我们在不同的网络架构上评估了我们实现的性能,这些架构用于手写数字分类和人脸识别,并报告了同态加密推理的准确率和延迟。密码学参数由工具自动推导。我们表明,HE-MAN的准确率与使用明文输入的模型相当,而推理延迟与明文情况相比高出几个数量级。

英文摘要:

Machine learning (ML) algorithms are increasingly important for the success of products and services, especially considering the growing amount and availability of data. This also holds for areas handling sensitive data, e.g. applications processing medical data or facial images. However, people are reluctant to pass their personal sensitive data to a ML service provider. At the same time, service providers have a strong interest in protecting their intellectual property and therefore refrain from publicly sharing their ML model. Fully homomorphic encryption (FHE) is a promising technique to enable individuals using ML services without giving up privacy and protecting the ML model of service providers at the same time. Despite steady improvements, FHE is still hardly integrated in today's ML applications. We introduce HE-MAN, an open-source two-party machine learning toolset for privacy preserving inference with ONNX models and homomorphically encrypted data. Both the model and the input data do not have to be disclosed. HE-MAN abstracts cryptographic details away from the users, thus expertise in FHE is not required for either party. HE-MAN 's security relies on its underlying FHE schemes. For now, we integrate two different homomorphic encryption schemes, namely Concrete and TenSEAL. Compared to prior work, HE-MAN supports a broad range of ML models in ONNX format out of the box without sacrificing accuracy. We evaluate the performance of our implementation on different network architectures classifying handwritten digits and performing face recognition and report accuracy and latency of the homomorphically encrypted inference. Cryptographic parameters are automatically derived by the tools. We show that the accuracy of HE-MAN is on par with models using plaintext input while inference latency is several orders of magnitude higher compared to the plaintext case.

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

↑