Skip to main content
QUICK REVIEW

[Paper Review] DarKnight: A Data Privacy Scheme for Training and Inference of Deep Neural Networks

Hanieh Hashemi, Yongqin Wang|arXiv (Cornell University)|Jun 1, 2020
Adversarial Robustness in Machine LearningComputer Science57 references14 citations
TL;DR

DarKnight proposes a hybrid TEE-GPU framework that enables privacy-preserving training and inference of deep neural networks by using matrix masking within Intel SGX to blind input data, while offloading computationally intensive linear operations to untrusted GPUs. It provides an information-theoretic privacy guarantee with a proven upper bound of one bit of information leakage per megapixel input, achieving 10x+ speedup over pure TEE execution without compromising model accuracy.

ABSTRACT

Protecting the privacy of input data is of growing importance as machine learning methods reach new application domains. In this paper, we provide a unified training and inference framework for large DNNs while protecting input privacy and computation integrity. Our approach called DarKnight uses a novel data blinding strategy using matrix masking to create input obfuscation within a trusted execution environment (TEE). Our rigorous mathematical proof demonstrates that our blinding process provides information-theoretic privacy guarantee by bounding information leakage. The obfuscated data can then be offloaded to any GPU for accelerating linear operations on blinded data. The results from linear operations on blinded data are decoded before performing non-linear operations within the TEE. This cooperative execution allows DarKnight to exploit the computational power of GPUs to perform linear operations while exploiting TEEs to protect input privacy. We implement DarKnight on an Intel SGX TEE augmented with a GPU to evaluate its performance.

Motivation & Objective

  • To address the growing need for data privacy in deep learning across healthcare, finance, and autonomous systems.
  • To overcome the performance bottleneck of running entire DNNs within trusted execution environments (TEEs) due to limited CPU compute and memory.
  • To enable secure, efficient, and accurate training of deep neural networks using floating-point arithmetic while preserving input privacy.
  • To provide a rigorous mathematical bound on information leakage in a privacy-preserving deep learning framework.
  • To design a hybrid execution model that leverages TEEs for privacy and GPUs for performance, without requiring trusted servers or model quantization.

Proposed method

  • Uses matrix masking via additive noise to blind input data within an Intel SGX enclave, ensuring input privacy through information-theoretic guarantees.
  • Offloads linear operations (e.g., convolutions, matrix multiplications) to untrusted GPUs using blinded inputs, preserving privacy during computation.
  • Performs non-linear operations (ReLU, maxpooling) exclusively within the SGX enclave after decoding results from GPU computations.
  • Employs a cooperative execution model where model parameters and blinding factors are managed securely in the enclave, with precomputed W·r terms used for decoding.
  • Applies a rigorous mathematical proof to bound information leakage based on noise variance and blinding parameters, ensuring privacy even under unbounded adversary computation.
  • Supports full-precision floating-point training (including bfloat16) without requiring quantization, enabling compatibility with standard DNN frameworks.

Experimental results

Research questions

  • RQ1Can a hybrid TEE-GPU architecture achieve both strong privacy guarantees and high performance in DNN training and inference?
  • RQ2How can information leakage be mathematically bounded in a privacy-preserving deep learning system using additive masking?
  • RQ3Can floating-point arithmetic be securely supported in a privacy-preserving DNN framework without relying on quantized models?
  • RQ4To what extent can GPU acceleration be leveraged without compromising input privacy in a TEE-based system?
  • RQ5Is it possible to design a system that supports both training and inference with minimal performance overhead while ensuring data confidentiality?

Key findings

  • DarKnight achieves a provable upper bound of one bit of information leakage per megapixel input image, even under unbounded adversary computation.
  • The system enables 120x speedup over pure SGX-based training for VGG16 on ImageNet, with DarKnight achieving over 10x speedup compared to pure TEE execution.
  • The framework supports full-precision floating-point training (including bfloat16) without quantization, preserving model accuracy and compatibility with standard deep learning pipelines.
  • By offloading linear operations to GPUs and performing only non-linear operations in the enclave, DarKnight reduces the performance bottleneck on TEEs while maintaining strong privacy guarantees.
  • The system is scalable to distributed training via data parallelism, as multiple SGX enclaves can independently blind inputs for separate GPUs in a disaggregated cloud architecture.
  • DarKnight outperforms prior works like Slalom by eliminating the need for precomputing and storing W·r terms, which is infeasible during training due to dynamic weight updates.

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.