Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

Dash proposes a novel framework for accelerating distributed private inference in deep neural networks using arithmetic garbled circuits (GCs) within a Trusted Execution Environment (TEE). By introducing LabelTensors to exploit GPU parallelism and minimizing communication to a single round regardless of network depth, Dash achieves up to 140x speedup over prior arithmetic GC schemes while supporting multiple untrusted input providers and enabling seamless integration with standard ML models without retraining.

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.

Motivation & Objective

  • To address the high communication overhead and performance bottlenecks in existing secure distributed machine learning inference systems, particularly those based on mixed MPC techniques.
  • To enable efficient, scalable, and secure inference for deep convolutional neural networks in a multi-party setting without requiring model retraining.
  • To overcome the sequential bottleneck of garbled circuits by enabling efficient GPU acceleration through a novel data structure called LabelTensors.
  • To support secure inference with more than two mutually distrusting input providers, which is not feasible with many existing MPC-based approaches.
  • To provide a practical, user-friendly framework that allows model and data owners to deploy private inference without requiring expertise in cryptography or TEEs.

Proposed method

  • Dash uses arithmetic garbled circuits as the sole cryptographic primitive, avoiding the need to switch between different techniques (e.g., HE, secret sharing) across network layers.
  • It leverages a Trusted Execution Environment (TEE), such as Intel SGX, to securely host the garbled circuit and enable inference with multiple input providers.
  • LabelTensors are introduced as a GPU-friendly data structure that allows efficient parallel evaluation of arithmetic GCs by grouping operations and enabling coalesced memory access.
  • The framework evaluates the entire neural network within the TEE, requiring only a single communication round between the garbling and inference phases, independent of network depth.
  • It supports loading models from standard formats (e.g., ONNX, PyTorch) without retraining, enabling plug-and-play integration with existing ML pipelines.
  • Security is achieved against a malicious adversary through cryptographic guarantees inherent in arithmetic GCs and TEE isolation.

Experimental results

Research questions

  • RQ1Can a single-cryptographic-primitive approach using arithmetic garbled circuits achieve both low communication overhead and high performance in distributed private inference?
  • RQ2How can the inherent sequential nature of garbled circuits be overcome to exploit GPU parallelism in secure neural network inference?
  • RQ3Can a TEE-based architecture support more than two mutually distrusting input providers in private inference while maintaining constant communication and memory overhead?
  • RQ4To what extent can LabelTensors reduce the performance penalty of executing garbled circuits on GPUs compared to traditional sequential evaluation?
  • RQ5Can a framework based on arithmetic GCs achieve state-of-the-art performance in terms of runtime, communication volume, and usability compared to hybrid MPC and homomorphic encryption schemes?

Key findings

  • Dash achieves up to 140x speedup over previous arithmetic garbling schemes, significantly outperforming existing approaches in inference latency.
  • Communication volume remains constant regardless of neural network depth or the number of input providers, with only a single communication round required per inference step.
  • The framework supports secure inference with more than two untrusted input providers, a capability not natively supported by secret-sharing-based MPC frameworks.
  • LabelTensors enable efficient GPU utilization, reducing the performance penalty typically associated with sequential garbled circuit evaluation.
  • Dash requires no model retraining and supports standard ML model formats, enabling seamless integration into existing MLaaS pipelines.
  • Compared to hybrid schemes like Slalom and Faster CryptoNets, Dash reduces communication overhead and avoids the need for client-side computation or model modifications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.