Privacy Preserving In-memory Computing Engine

Haoran Geng, Jianqiao Mo, Dayane Reis, Jonathan Takeshita, Taeho Jung, Brandon Reagen, Michael T. Niemier, Xiaobo Sharon HuarXiv 2023 · DOI

Abstract

Privacy-preserving computation (PPC) is essential for secure cloud-based AI, yet it suffers from a significant "privacy tax" in terms of latency. We present PPIMCE, a hardware accelerator that integrates Homomorphic Encryption (HE) and Garbled Circuits (GC) within an In-Memory Computing (IMC) architecture. By performing computations directly inside SRAM arrays and utilizing a hybrid protocol, PPIMCE achieves up to a 1,000× speedup over CPU-based solutions and a 12× improvement over state-of-the-art accelerators, making high-accuracy private machine learning practical.

Introduction

Privacy-preserving computation allows for data processing without decryption, a critical requirement for secure cloud computing and healthcare AI. However, performing inference on encrypted data is typically 10,000× to 100,000× slower than on plaintext. Current solutions rely on Homomorphic Encryption (HE), which is efficient for linear math but struggles with non-linear functions like ReLU, and Garbled Circuits (GC), which excel at non-linear logic but suffer from massive data transfer overhead. PPIMCE addresses these challenges by providing a unified, efficient platform that handles hybrid HE+GC protocols necessary for high-accuracy, low-latency private machine learning.

System Architecture

PPIMCE is built around the principle of In-Memory Computing (IMC), performing mathematical operations directly inside the memory fabric to avoid the bottleneck of moving massive encrypted datasets.

The PPIMCE architecture featuring a customized RISC-V processor, instruction scheduler, and specialized IMC cores.

Key technical components include:

  • Customized RISC-V Core: Extended with specialized instructions (C-Inst) to manage HE and GC tasks.
  • IMC-Instruction Scheduler: Utilizes an "Output Address Content Addressable Memory" (OA-CAM) to track data dependencies in real-time, enabling parallel execution of GC gates.
  • The IMC Core: Each core contains Compute-Enabled Memory (CEM) for bitwise logic, a Shifter for data alignment, and a LUT (Look-Up Table) fabric for fast 4-bit multiplications and AES operations.

Performance Evaluation

The architecture was evaluated using standard benchmarks, including VIP-Bench for GC and CKKS for HE, as well as end-to-end PPML tasks on ResNet20 (CIFAR-10) and ResNet50 (ImageNet).

Comparison of computation time between the hybrid HE+GC approach and HE-only methods across various neural network models.

PPIMCE demonstrates significant performance leaps:

  • General Speedups: It is 107× faster than a CPU for Garbled Circuits and achieves up to 1,500× speedup for HE multiplications compared to a CPU.
  • PPML Inference: For ImageNet inference on ResNet50, PPIMCE is 1,000× faster than the Gazelle (CPU) framework.
  • Efficiency: Compared to CraterLake, a leading HE accelerator, PPIMCE provides a 12× improvement in latency while maintaining a compact 138.3 $mm^2$ area and 9.4W power profile.

Key Insights and Discussion

The primary advantage of PPIMCE lies in its hybrid approach: using HE for linear layers and switching to GC for non-linear activations avoids the "bootstrapping" bottleneck inherent in HE-only systems. Furthermore, by utilizing customized sense amplifiers in SRAM, the CEM performs logic operations at the bitline level, offering substantial area and energy savings over traditional ASIC designs.

However, a primary bottleneck remains client-server communication. While PPIMCE drastically reduces computation time, GC-based protocols require transferring gigabytes of "labels." The system's performance is most effectively realized in high-bandwidth environments such as 5G or 6G networks. Future work will focus on optimizing communication protocols and integrating advanced compression techniques for GC labels.

Summary updated

BibTeX
@misc{geng2023privacy,
  author = {Haoran Geng and Jianqiao Mo and Dayane Reis and Jonathan Takeshita and Taeho Jung and Brandon Reagen and Michael T. Niemier and Xiaobo Sharon Hu},
  title = {{Privacy Preserving In-memory Computing Engine}},
  year = {2023},
  eprint = {2308.02648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.02648},
}
Figure