Skip to main content
QUICK REVIEW

[Paper Review] SHE: A Fast and Accurate Deep Neural Network for Encrypted Data

Qian Lou, Lei Jiang|arXiv (Cornell University)|Jun 1, 2019
Cryptography and Data SecurityComputer Science33 citations
TL;DR

SHE presents a shift-accumulation based Leveled HE deep network using TFHE to implement ReLU and max-pooling with logarithmic quantization and mixed bitwidth accumulators, achieving state-of-the-art encrypted-inference accuracy and significantly lower latency than prior LHECNNs. It enables deeper networks and even LSTM on encrypted data.

ABSTRACT

Homomorphic Encryption (HE) is one of the most promising security solutions to emerging Machine Learning as a Service (MLaaS). Leveled-HE (LHE)-enabled Convolutional Neural Networks (LHECNNs) are proposed to implement MLaaS to avoid large bootstrapping overhead. However, prior LHECNNs have to pay significant computing overhead but achieve only low inference accuracy, due to their polynomial approximation activations and poolings. Stacking many polynomial approximation activation layers in a network greatly reduces inference accuracy, since the polynomial approximation activation errors lead to a low distortion of the output distribution of the next batch normalization layer. So the polynomial approximation activations and poolings have become the obstacle to a fast and accurate LHECNN model. In this paper, we propose a Shift-accumulation-based LHE-enabled deep neural network (SHE) for fast and accurate inferences on encrypted data. We use the binary-operation-friendly Leveled Fast Homomorphic Encryption over Torus (LTFHE) encryption scheme to implement ReLU activations and max poolings. We also adopt the logarithmic quantization to accelerate inferences by replacing expensive LTFHE multiplications with cheap LTFHE shifts. We propose a mixed bitwidth accumulator to accelerate accumulations. Since the LTFHE ReLU activations, max poolings, shifts and accumulations have small multiplicative depth overhead, SHE can implement much deeper network architectures with more convolutional and activation layers. Our experimental results show SHE achieves the state-of-the-art inference accuracy and reduces the inference latency by 76.21% ~ 94.23% over prior LHECNNs on MNIST and CIFAR-10. The source code of SHE is available at https://github.com/qianlou/SHE.

Motivation & Objective

  • Motivate secure MLaaS by enabling accurate CNN inferences over encrypted data with Leveled HE.
  • Overcome the accuracy and latency bottlenecks of prior LHECNNs caused by polynomial activation approximations.
  • Propose a fast, accurate encrypted inference framework leveraging binary-friendly TFHE operations.
  • Demonstrate the scalability to deeper architectures and non-CNN models (LSTM) on encrypted data.

Proposed method

  • Use TFHE to implement ReLU activations and max pooling via Boolean gates.
  • Apply logarithmic quantization to weights to convert multiplications into shifts and accumulations.
  • Introduce a mixed bitwidth accumulator to minimize MD overhead during homomorphic additions.
  • Compute with shift-accumulation operations to reduce multiplicative depth and enable deeper networks.
  • Quantize inputs and weights to 5-bit representations to balance accuracy and efficiency.
  • Evaluate on MNIST, CIFAR-10, ImageNet and a medical dataset showing latency and accuracy gains.

Experimental results

Research questions

  • RQ1Can ReLU and max pooling be implemented efficiently in TFHE to maintain high accuracy in encrypted CNNs?
  • RQ2Does logarithmic quantization combined with shift-based accumulations reduce multiplicative depth and latency without sacrificing accuracy?
  • RQ3How deep a network can be trained and inferred securely under a fixed LTFHE MD budget?
  • RQ4Can encrypted LSTM be feasibly executed with SHE, achieving competitive perplexity on Penn Treebank?

Key findings

  • SHE achieves state-of-the-art encrypted inference accuracy on MNIST and CIFAR-10 within the LHE paradigm.
  • Inference latency is reduced by 76.21% to 94.23% over prior LHECNNs on MNIST and CIFAR-10.
  • A deeper 30-layer DSHE on MNIST reaches 99.77% accuracy under a small MD budget.
  • On ImageNet with ShuffleNet, SHE attains 69.4% top-1 accuracy within a practical encrypted pipeline.
  • SHE enables LSTM inference on Penn Treebank with 89.8 perplexity per word, using 30K MD, within 0.5K MD for core multiply operations.
  • SHE encrypts a MNIST image to about 122.5 MB, substantially smaller than other TFHE-based encrypted inference pipelines.

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.