Skip to main content
QUICK REVIEW

[论文解读] DASH: Accelerating Distributed Private Machine Learning Inference with Arithmetic Garbled Circuits

Jonas Sander, Sebastian Berndt|arXiv (Cornell University)|Feb 13, 2023
Cryptography and Data SecurityComputer Science被引用 3
一句话总结

Dash 提出了一种新颖的框架,通过在可信执行环境(TEE)内使用算术混淆电路(GCs)来加速深度神经网络中的分布式私有推理。通过引入 LabelTensors 以利用 GPU 并行计算能力,并将通信量最小化为单轮通信(与网络深度无关),Dash 在无需重训练模型的前提下,支持多个不可信输入提供方,实现了与标准机器学习模型的无缝集成,相较于以往的算术 GC 方案,推理速度最高提升 140 倍。

ABSTRACT

The adoption of machine learning solutions is rapidly increasing across all parts of society. Cloud service providers such as Amazon Web Services, Microsoft Azure and the Google Cloud Platform aggressively expand their Machine-Learning-as-a-Service offerings. While the widespread adoption of machine learning has huge potential for both research and industry, the large-scale evaluation of possibly sensitive data on untrusted platforms bears inherent data security and privacy risks. Since computation time is expensive, performance is a critical factor for machine learning. However, prevailing security measures proposed in the past years come with a significant performance overhead. We investigate the current state of protected distributed machine learning systems, focusing on deep convolutional neural networks. The most common and best-performing mixed MPC approaches are based on homomorphic encryption, secret sharing, and garbled circuits. They commonly suffer from communication overheads that grow linearly in the depth of the neural network. We present Dash, a fast and distributed private machine learning inference scheme. Dash is based purely on arithmetic garbled circuits. It requires only a single communication round per inference step, regardless of the depth of the neural network, and a very small constant communication volume. Dash thus significantly reduces performance requirements and scales better than previous approaches. In addition, we introduce the concept of LabelTensors. This allows us to efficiently use GPUs while using garbled circuits, which further reduces the runtime. Dash offers security against a malicious attacker and is up to 140 times faster than previous arithmetic garbling schemes.

研究动机与目标

  • 为解决现有基于混合 MPC 技术的隐私分布式机器学习推理系统中高通信开销与性能瓶颈的问题。
  • 在无需重训练模型的前提下,实现高效、可扩展且安全的深度卷积神经网络多参与方便利推理。
  • 通过一种名为 LabelTensors 的新型数据结构,克服混淆电路的串行瓶颈,实现 GPU 高效加速。
  • 支持超过两个相互不信任的输入提供方的私有推理,而这是许多现有 MPC 基础方法难以实现的。
  • 提供一个实用且用户友好的框架,使模型与数据拥有方可无需密码学或 TEE 专业知识即可部署私有推理。

提出的方法

  • Dash 仅使用算术混淆电路作为唯一的密码学原 primitive,避免在不同技术(如 HE、秘密共享)之间切换,从而简化了网络层间的处理。
  • 利用可信执行环境(TEE),如 Intel SGX,安全托管混淆电路,支持多个输入提供方的推理。
  • 引入 LabelTensors 作为 GPU 友好的数据结构,通过分组操作并支持合并内存访问,实现算术 GC 的高效并行评估。
  • 整个神经网络在 TEE 内执行,仅需在混淆与推理阶段之间进行一轮通信,与网络深度无关。
  • 支持从标准格式(如 ONNX、PyTorch)加载模型,无需重训练,实现与现有机器学习流水线的即插即用集成。
  • 通过算术 GC 的密码学保证与 TEE 的隔离机制,实现对恶意攻击者的安全防护。

实验结果

研究问题

  • RQ1仅使用算术混淆电路这一种密码学原 primitive 的方法,是否能在分布式私有推理中同时实现低通信开销与高性能?
  • RQ2如何克服混淆电路固有的串行性,以在安全神经网络推理中有效利用 GPU 并行计算能力?
  • RQ3基于 TEE 的架构是否能够支持超过两个相互不信任的输入提供方进行私有推理,同时保持通信与内存开销恒定?
  • RQ4与传统串行评估相比,LabelTensors 在 GPU 上执行混淆电路时,能多大程度上减少性能开销?
  • RQ5相较于混合 MPC 与同态加密方案,基于算术 GC 的框架在运行时间、通信量与易用性方面是否能达到最先进水平?

主要发现

  • Dash 相较于以往的算术混淆方案,最高实现 140 倍的性能提升,显著降低了推理延迟。
  • 无论神经网络深度或输入提供方数量如何,通信量均保持恒定,每轮推理仅需一次通信。
  • 框架支持超过两个不可信输入提供方的私有推理,这是秘密共享基础的 MPC 框架通常不原生支持的功能。
  • LabelTensors 实现了高效的 GPU 利用,降低了传统串行混淆电路评估带来的性能损失。
  • Dash 无需模型重训练,支持标准机器学习模型格式,可无缝集成至现有 MLaaS 流水线。
  • 相较于 Slalom 与 Faster CryptoNets 等混合方案,Dash 减少了通信开销,且无需客户端计算或模型修改。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。