Skip to main content
QUICK REVIEW

[Paper Review] Cheetah: Optimizations and Methods for PrivacyPreserving Inference via Homomorphic Encryption.

Brandon Reagen, Wooseok Choi|arXiv (Cornell University)|May 31, 2020
Cryptography and Data SecurityComputer Science12 citations
TL;DR

Cheetah introduces algorithmic and hardware optimizations for homomorphic encryption (HE)-based deep neural network (DNN) inference, achieving 79x speedup over state-of-the-art HE systems and approaching plaintext DNN inference speeds through HE-parameter tuning, operator scheduling, and a custom 30W, 545mm² accelerator for models like ResNet50, VGG16, and AlexNet.

ABSTRACT

As the application of deep learning continues to grow, so does the amount of data used to make predictions. While traditionally, big-data deep learning was constrained by computing performance and off-chip memory bandwidth, a new constraint has emerged: privacy. One solution is homomorphic encryption (HE). Applying HE to the client-cloud model allows cloud services to perform inference directly on the client's encrypted data. While HE can meet privacy constraints, it introduces enormous computational challenges and remains impractically slow in current systems. This paper introduces Cheetah, a set of algorithmic and hardware optimizations for HE DNN inference to achieve plaintext DNN inference speeds. Cheetah proposes HE-parameter tuning optimization and operator scheduling optimizations, which together deliver 79x speedup over the state-of-the-art. However, this still falls short of plaintext inference speeds by almost four orders of magnitude. To bridge the remaining performance gap, Cheetah further proposes an accelerator architecture that, when combined with the algorithmic optimizations, approaches plaintext DNN inference speeds. We evaluate several common neural network models (e.g., ResNet50, VGG16, and AlexNet) and show that plaintext-level HE inference for each is feasible with a custom accelerator consuming 30W and 545mm^2.

Motivation & Objective

  • Address the performance bottleneck in privacy-preserving deep learning inference using homomorphic encryption (HE), which remains impractically slow despite its privacy guarantees.
  • Overcome the computational overhead of HE in cloud-based inference by optimizing both algorithmic and hardware layers.
  • Achieve near-plaintext inference speeds for common DNN models (e.g., ResNet50, VGG16, AlexNet) under end-to-end HE encryption.
  • Design a custom accelerator architecture that, combined with algorithmic optimizations, bridges the remaining performance gap to plaintext-level efficiency.

Proposed method

  • Apply HE-parameter tuning optimization to reduce noise growth and computational cost in homomorphic operations, improving efficiency across DNN layers.
  • Implement operator scheduling optimizations to reorder and fuse HE operations, minimizing redundant computations and improving data locality.
  • Integrate algorithmic optimizations with a custom hardware accelerator designed for efficient HE arithmetic, including batching and parallelization of homomorphic operations.
  • Use a hybrid software-hardware stack where optimized HE kernels are mapped efficiently onto the accelerator’s dataflow and memory hierarchy.
  • Leverage batching and data reorganization techniques to maximize throughput and minimize latency in encrypted inference pipelines.
  • Evaluate the full stack on standard DNN models using realistic workloads to measure performance and energy efficiency.

Experimental results

Research questions

  • RQ1Can algorithmic optimizations such as HE-parameter tuning and operator scheduling significantly reduce the computational overhead of HE-based DNN inference?
  • RQ2To what extent can hardware specialization, in the form of a custom accelerator, close the performance gap between encrypted and plaintext DNN inference?
  • RQ3Is it feasible to achieve near-plaintext inference speeds for mainstream models like ResNet50, VGG16, and AlexNet using HE with a practical hardware design?
  • RQ4What is the energy and area cost of achieving high-performance, privacy-preserving inference using HE and a dedicated accelerator?

Key findings

  • Cheetah achieves a 79x speedup over the state-of-the-art HE-based DNN inference system through combined algorithmic optimizations.
  • The proposed algorithmic optimizations alone reduce the performance gap but still fall short of plaintext inference speeds by nearly four orders of magnitude.
  • The custom accelerator design consumes only 30W of power and occupies 545mm², enabling near-plaintext inference speeds for ResNet50, VGG16, and AlexNet.
  • End-to-end HE inference for these models becomes feasible with the integrated software-hardware stack, demonstrating practical deployment potential.
  • The combination of algorithmic and hardware optimizations reduces latency to within acceptable ranges for real-world privacy-preserving inference workloads.
  • The results show that HE-based inference can be made practical for common DNNs when both software-level optimizations and targeted hardware acceleration are applied.

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.