加密:在规模上揭示端到端私人推理的陷阱
作为一项服务提供深度学习推理的隐私问题突出表明,需要使用加密方法保护用户数据和服务提供商模型的私人推理 (PI) 协议。最近提出的 PI 协议通过将计算重的同质加密 (HE) 部件移到离线/预计算阶段,显著减少了 PI 延迟。与最近为 PI 定制网络的优化相配合,这些协议实现了非常接近实用的性能水平。本文对PI协议和优化技术进行了严格的端到端描述,发现目前对PI性能的理解过于乐观。具体来说,我们发现用户/客户端设备上 PI 中使用的关键加密协议(GC)的离线存储成本高得令人望而却步,迫使大部分昂贵的离线 HE 计算进入在线阶段,导致 PI 延迟增加 10-1000×。我们建议修改 PI 协议,显著降低客户端存储成本,以小幅增加在线延迟。经过端到端评估,修改后的协议通过将 TinyImageNet 上的 ResNet18 的平均 PI 延迟降低 4×,优于当前协议。最后,我们根据调查结果对最近提出的几个 PI 优化进行了讨论,并指出,从端到端的评估中,许多优化实际上增加了 PI 延迟。
原文题目:CryptoNite: Revealing the Pitfalls of End-to-End Private Inference at Scale
原文:The privacy concerns of providing deep learning inference as a service have underscored the need for private inference (PI) protocols that protect users' data and the service provider's model using cryptographic methods. Recently proposed PI protocols have achieved significant reductions in PI latency by moving the computationally heavy homomorphic encryption (HE) parts to an offline/pre-compute phase. Paired with recent optimizations that tailor networks for PI, these protocols have achieved performance levels that are tantalizingly close to being practical. In this paper, we conduct a rigorous end-to-end characterization of PI protocols and optimization techniques and find that the current understanding of PI performance is overly optimistic. Specifically, we find that offline storage costs of garbled circuits (GC), a key cryptographic protocol used in PI, on user/client devices are prohibitively high and force much of the expensive offline HE computation to the online phase, resulting in a 10-1000× increase to PI latency. We propose a modified PI protocol that significantly reduces client-side storage costs for a small increase in online latency. Evaluated end-to-end, the modified protocol outperforms current protocols by reducing the mean PI latency by 4× for ResNet18 on TinyImageNet. We conclude with a discussion of several recently proposed PI optimizations in light of the findings and note many actually increase PI latency when evaluated from an end-to-end perspective.
相关文章
- 手机送去维修前,记得开启它!帮你保护隐私数据,防止泄露
- 存储被无故占满!苹果发布iOS15.1第二个测试版:继续修补Bug
- 如果你换新手机,旧手机必做这两步处理!以免隐私数据泄露
- 卖旧手机前必做这2步!避免隐私泄露,删除也没用,快来学学
- 设计师进阶必读!产品数据规划指南
- Facebook 的 Superpack 数据压缩技术可将 Android App 大小减少 20%
- 粗放生长时代结束,高精地图收紧灰色地带
- iOS15中的重磅更新!苹果一直以来都很注重这个功能
- iOS15发烫严重?解决办法在这里,拒绝玄学
- 买5G手机不开5G?运营商说:不行!
- 我国5G手机终端连接数达3.92亿户
- iOS设备间如何快速互传数据?一招帮你搞定
- 如何通过强大的数据库提高移动应用程序性能
- 聊一聊MySQL的Buffer Pool
- 谈谈Redis快速入门及应用
- 一日一技:可视化分析 Redis Key 资源占用情况
- 吊打MySQL,MariaDB到底强在哪?
- MySQL数据实时克隆的初步设计
- Redis 三种集群模式,你还傻傻分不清吗?
- MySQL字段默认值设置详解