Skip to main navigation Skip to search Skip to main content

HEngine: A High Performance Optimization Framework on a GPU for Homomorphic Encryption

  • Harbin Institute of Technology
  • Harbin Institute of Technology Shenzhen

Research output: Contribution to journalArticlepeer-review

Abstract

Homomorphic encryption (HE) represents an encryption technology that allows for direct computation on encrypted data without requiring decryption. However, the substantial computational complexity and significant latency associated with HE has impeded its broader adoption in practical applications. To address these challenges, we propose a GPU-based acceleration framework, namely HEngine, tailored for homomorphic encryption tasks. Specifically, we first propose a warp shuffle-based optimization method for two key phases, i.e., inverse Chinese Remainder Theorem (ICRT) and number theoretic transformation (NTT), to mitigate synchronization overhead in homomorphic encryption. Secondly, we propose to fuse the NTT kernel with the inner product kernel to address the imbalance between memory access and computation. Thirdly, considering the potential difference in the amount of tasks of users in the real-world, we design two different encoding methods for small batch and large batch inference tasks to improve computational efficiency. Finally, experiments demonstrate that our proposed framework achieves a 218× speedup on homomorphic multiplication tasks compared with the CPU-based SEAL library. In addition, for convolutional neural network inference tasks on shallow network structures, our proposed framework achieves amortized inference performance at the millisecond level and sub-millisecond level on small batch and large batch data, respectively. For convolutional neural network inference tasks on deeper network structures (i.e., ResNet-20), our proposed framework achieves second-level inference.

Original languageEnglish
Article number75
JournalACM Transactions on Architecture and Code Optimization
Volume22
Issue number2
DOIs
StatePublished - 2 Jul 2025

Keywords

  • Fully homomorphic encryption
  • GPU acceleration
  • neural networks
  • number-theoretic transform

Fingerprint

Dive into the research topics of 'HEngine: A High Performance Optimization Framework on a GPU for Homomorphic Encryption'. Together they form a unique fingerprint.

Cite this