slytHErin: An Agile Framework for Encrypted Deep Neural Network Inference

Francesco Intoci, Sinem Sav, Apostolos Pyrgelis, Jean-Philippe Bossuat, J. Troncoso-Pastoriza, Jean-Pierre Hubaux
{"title":"slytHErin: An Agile Framework for Encrypted Deep Neural Network Inference","authors":"Francesco Intoci, Sinem Sav, Apostolos Pyrgelis, Jean-Philippe Bossuat, J. Troncoso-Pastoriza, Jean-Pierre Hubaux","doi":"10.48550/arXiv.2305.00690","DOIUrl":null,"url":null,"abstract":"Homomorphic encryption (HE), which allows computations on encrypted data, is an enabling technology for confidential cloud computing. One notable example is privacy-preserving Prediction-as-a-Service (PaaS), where machine-learning predictions are computed on encrypted data. However, developing HE-based solutions for encrypted PaaS is a tedious task which requires a careful design that predominantly depends on the deployment scenario and on leveraging the characteristics of modern HE schemes. Prior works on privacy-preserving PaaS focus solely on protecting the confidentiality of the client data uploaded to a remote model provider, e.g., a cloud offering a prediction API, and assume (or take advantage of the fact) that the model is held in plaintext. Furthermore, their aim is to either minimize the latency of the service by processing one sample at a time, or to maximize the number of samples processed per second, while processing a fixed (large) number of samples. In this work, we present slytHErin, an agile framework that enables privacy-preserving PaaS beyond the application scenarios considered in prior works. Thanks to its hybrid design leveraging HE and its multiparty variant (MHE), slytHErin enables novel PaaS scenarios by encrypting the data, the model or both. Moreover, slytHErin features a flexible input data packing approach that allows processing a batch of an arbitrary number of samples, and several computation optimizations that are model-and-setting-agnostic. slytHErin is implemented in Go and it allows end-users to perform encrypted PaaS on custom deep learning models comprising fully-connected, convolutional, and pooling layers, in a few lines of code and without having to worry about the cumbersome implementation and optimization concerns inherent to HE.","PeriodicalId":406001,"journal":{"name":"ACNS Workshops","volume":"18 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACNS Workshops","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2305.00690","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Homomorphic encryption (HE), which allows computations on encrypted data, is an enabling technology for confidential cloud computing. One notable example is privacy-preserving Prediction-as-a-Service (PaaS), where machine-learning predictions are computed on encrypted data. However, developing HE-based solutions for encrypted PaaS is a tedious task which requires a careful design that predominantly depends on the deployment scenario and on leveraging the characteristics of modern HE schemes. Prior works on privacy-preserving PaaS focus solely on protecting the confidentiality of the client data uploaded to a remote model provider, e.g., a cloud offering a prediction API, and assume (or take advantage of the fact) that the model is held in plaintext. Furthermore, their aim is to either minimize the latency of the service by processing one sample at a time, or to maximize the number of samples processed per second, while processing a fixed (large) number of samples. In this work, we present slytHErin, an agile framework that enables privacy-preserving PaaS beyond the application scenarios considered in prior works. Thanks to its hybrid design leveraging HE and its multiparty variant (MHE), slytHErin enables novel PaaS scenarios by encrypting the data, the model or both. Moreover, slytHErin features a flexible input data packing approach that allows processing a batch of an arbitrary number of samples, and several computation optimizations that are model-and-setting-agnostic. slytHErin is implemented in Go and it allows end-users to perform encrypted PaaS on custom deep learning models comprising fully-connected, convolutional, and pooling layers, in a few lines of code and without having to worry about the cumbersome implementation and optimization concerns inherent to HE.
斯莱特林:加密深度神经网络推理的敏捷框架
同态加密(HE)允许在加密数据上进行计算,是机密云计算的一种启用技术。一个值得注意的例子是保护隐私的预测即服务(PaaS),其中机器学习预测是在加密数据上计算的。然而,为加密PaaS开发基于HE的解决方案是一项繁琐的任务,需要仔细设计,主要取决于部署场景和利用现代HE方案的特征。先前关于隐私保护PaaS的工作只关注于保护上传到远程模型提供商的客户数据的机密性,例如,提供预测API的云,并假设(或利用这一事实)模型以明文形式保存。此外,他们的目标是通过一次处理一个样本来最小化服务的延迟,或者在处理固定(大)数量的样本时最大化每秒处理的样本数量。在这项工作中,我们介绍了斯莱特林,这是一个灵活的框架,它使隐私保护PaaS超越了之前工作中考虑的应用场景。得益于其利用HE和其多方变体(MHE)的混合设计,斯莱特林可以通过加密数据、模型或两者来实现新颖的PaaS场景。此外,斯莱特林具有灵活的输入数据打包方法,允许处理一批任意数量的样本,以及几种与模型和设置无关的计算优化。斯莱特林是在Go中实现的,它允许最终用户在自定义深度学习模型上执行加密的PaaS,包括全连接、卷积和池化层,只需几行代码,而不必担心HE固有的繁琐实现和优化问题。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信