HI-CKKS: Is High-Throughput Neglected? Reimagining CKKS Efficiency with Parallelism

Fuyuan Chen, Jiankuo Dong, Xiaoyu Hu, Zhenjiang Dong, Wangchen Dai, Jingqiang Lin, Fu XiaoIACR ePrint 2024

Abstract

Fully Homomorphic Encryption (FHE) is a cornerstone of privacy-preserving computation, yet its practical adoption is hindered by extreme computational overhead. While previous research has focused on reducing the latency of individual operations, real-world cloud applications demand high throughput to handle concurrent user requests. This paper introduces HI-CKKS, a high-throughput framework for the CKKS scheme. By integrating asynchronous batching, unified kernel fusion, and hierarchical memory strategies, HI-CKKS achieves throughput speedups of up to 679× over CPU-based libraries and significantly outperforms state-of-the-art GPU implementations.

The Privacy-Preserving Computation Challenge

FHE is often described as the "Holy Grail" of cryptography, enabling servers to process data without ever decrypting it. However, this security comes at a cost: FHE operations are typically $10^5$ to $10^7$ times slower than their plaintext counterparts.

The workflow of homomorphic encryption in a hostile internet environment.

In a typical cloud scenario, users send ciphertexts to an untrusted environment where a server performs computations. Most existing GPU-accelerated FHE solutions focus on latency—the time it takes to complete a single task. However, in high-concurrency environments, throughput (the number of operations completed per second) is the more critical metric. Existing solutions often suffer from hardware underutilization due to frequent CPU-GPU communication and memory bottlenecks in core primitives like the Number Theoretic Transform (NTT).

The HI-CKKS Architecture

HI-CKKS reimagines FHE efficiency by prioritizing system-wide throughput through several architectural innovations.

The comprehensive HI-CKKS framework, illustrating the interaction between client, server GPU, and internal GPU task management.

Key Methodologies

  • Asynchronous Batch Framework: HI-CKKS decouples CPU and GPU execution. The CPU pre-calculates static parameters and batches multiple requests into a task queue, allowing the GPU to operate continuously without idling for the next instruction.
  • Unified Kernel Fusion: To minimize the overhead of launching numerous small GPU kernels for NTT operations, HI-CKKS fuses multiple stages into a single complex kernel. This keeps data "on-chip" in registers or shared memory for longer durations.
  • Hierarchical Hybrid Memory Strategy: The framework optimizes data movement by prioritizing high-speed registers and shared memory for intermediate steps, drastically reducing reliance on slower global memory.
  • Multi-Dimensional Parallel HMult: For homomorphic multiplication (HMult), the authors utilized uint4 data structures to enable 128-bit memory copies, doubling the efficiency of data movement compared to standard 64-bit approaches.
  • Constant-Time PTX Instructions: Low-level PTX assembly instructions are used for arithmetic operations like Barrett reduction, ensuring both high performance and resistance to side-channel attacks.

Performance Evaluation

The system was evaluated using synthetic data generated with parameters from the standard SEAL library, specifically targeting a polynomial degree of $|N| = 2^{13}$ (8192). Benchmarks were performed on an NVIDIA RTX 4090 GPU.

Operation Speedup vs. CPU (SEAL) Speedup vs. SOTA GPU (TROY/Phantom)
NTT 175.08× 26.91×
INTT 191.27× 32.92×
HMult 679.57× 693.17×

HI-CKKS achieved a throughput of 2426.08 kop/s (thousands of operations per second) for homomorphic multiplication on the RTX 4090, representing a massive leap over previous records.

Conclusion and Future Directions

HI-CKKS demonstrates that focusing on throughput can unlock significant performance gains for FHE in cloud environments. While the current work masters core primitives like NTT and HMult, future efforts will focus on extending these optimizations to other CKKS operations such as rotation and bootstrapping. The authors also plan to integrate these high-throughput kernels into real-world privacy-preserving machine learning applications to evaluate their impact on AI inference speeds.

Summary updated

BibTeX
@article{chen2024hi,
  author = {Fuyuan Chen and Jiankuo Dong and Xiaoyu Hu and Zhenjiang Dong and Wangchen Dai and Jingqiang Lin and Fu Xiao},
  title = {{HI-CKKS: Is High-Throughput Neglected? Reimagining CKKS Efficiency with Parallelism}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure