Skip to main content
QUICK REVIEW

[Paper Review] Privacy-Preserving Inference in Machine Learning Services Using Trusted Execution Environments

Krishna Giri Narra, Zhifeng Lin|arXiv (Cornell University)|Dec 7, 2019
Adversarial Robustness in Machine LearningComputer Science34 references27 citations
TL;DR

Origami enables high-performance, privacy-preserving inference for large deep neural networks by combining Intel SGX enclaves with cryptographic blinding and offloading to untrusted accelerators. It achieves 15.1x faster inference than SGX-only execution and resists reconstruction by a powerful conditional GAN adversary.

ABSTRACT

This work presents Origami, which provides privacy-preserving inference for large deep neural network (DNN) models through a combination of enclave execution, cryptographic blinding, interspersed with accelerator-based computation. Origami partitions the ML model into multiple partitions. The first partition receives the encrypted user input within an SGX enclave. The enclave decrypts the input and then applies cryptographic blinding to the input data and the model parameters. Cryptographic blinding is a technique that adds noise to obfuscate data. Origami sends the obfuscated data for computation to an untrusted GPU/CPU. The blinding and de-blinding factors are kept private by the SGX enclave, thereby preventing any adversary from denoising the data, when the computation is offloaded to a GPU/CPU. The computed output is returned to the enclave, which decodes the computation on noisy data using the unblinding factors privately stored within SGX. This process may be repeated for each DNN layer, as has been done in prior work Slalom. However, the overhead of blinding and unblinding the data is a limiting factor to scalability. Origami relies on the empirical observation that the feature maps after the first several layers can not be used, even by a powerful conditional GAN adversary to reconstruct input. Hence, Origami dynamically switches to executing the rest of the DNN layers directly on an accelerator without needing any further cryptographic blinding intervention to preserve privacy. We empirically demonstrate that using Origami, a conditional GAN adversary, even with an unlimited inference budget, cannot reconstruct the input. We implement and demonstrate the performance gains of Origami using the VGG-16 and VGG-19 models. Compared to running the entire VGG-19 model within SGX, Origami inference improves the performance of private inference from 11x while using Slalom to 15.1x.

Motivation & Objective

  • Address the performance bottleneck of running large DNN models entirely within trusted execution environments (TEEs) like Intel SGX.
  • Overcome TEE limitations such as limited memory and lack of GPU/TPU support for secure execution.
  • Enable secure offloading of computation to untrusted accelerators without leaking sensitive input data.
  • Ensure strong privacy guarantees against powerful adversaries, including conditional GANs, by using cryptographic blinding.
  • Balance performance and privacy through dynamic partitioning of DNNs based on the empirical irrelevance of later feature maps for reconstruction.

Proposed method

  • Partition the DNN model into multiple segments, with the initial layers executed inside an Intel SGX enclave.
  • Apply cryptographic blinding to input data and model parameters within the enclave to obfuscate sensitive information.
  • Offload the computation of blinded feature maps to untrusted GPUs or CPUs, preserving privacy through enclave-protected blinding factors.
  • Use private unblinding factors stored in SGX to reconstruct the correct output after offloaded computation.
  • Dynamically switch from blinding to direct accelerator execution after early layers, based on empirical observation that later feature maps are not reconstructable.
  • Leverage the security of Intel SGX to protect blinding/unblinding keys and ensure that no adversary can de-noise the offloaded data.

Experimental results

Research questions

  • RQ1Can we achieve high-performance private inference for large DNNs like VGG-16 and VGG-19 while maintaining strong privacy guarantees?
  • RQ2To what extent can we reduce the computational load inside the TEE by offloading later layers to untrusted accelerators without compromising privacy?
  • RQ3Can cryptographic blinding effectively prevent reconstruction of input data by a powerful conditional GAN adversary?
  • RQ4How does the performance of Origami compare to SGX-only inference and prior work like Slalom in terms of inference latency and throughput?
  • RQ5Is it safe to skip blinding for later layers, given that their feature maps are empirically uninformative for input reconstruction?

Key findings

  • Origami improves inference performance by 15.1x compared to running the entire VGG-19 model within SGX, significantly outperforming the 11x improvement reported by Slalom.
  • A conditional GAN adversary, even with unlimited inference budget, fails to reconstruct the original input, demonstrating strong privacy guarantees.
  • The performance gain stems from offloading the majority of computation to untrusted GPUs after the initial blinding phase, reducing enclave workload.
  • The dynamic switch from blinding to direct execution after early layers is justified by empirical results showing that later feature maps do not leak reconstructable information.
  • Origami achieves near-GPU performance for private inference while maintaining security, reducing the performance gap from 105x (SGX vs GPU) to under 10x with Origami.
  • The framework is generalizable and can be adapted to other TEE architectures such as Sanctum, extending its applicability beyond Intel SGX.

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.