Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures
About
Fully homomorphic encryption (FHE) frees cloud computing from privacy concerns by enabling secure computation on encrypted data. However, its substantial computational and memory overhead results in significantly slower performance compared to unencrypted processing. To mitigate this overhead, we present Cheddar, a high-performance FHE library for GPUs, achieving substantial speedups over previous GPU implementations. We systematically enable 32-bit FHE execution, leveraging the 32-bit integer datapath within GPUs. We optimize GPU kernels using efficient low-level primitives and algorithms tailored to specific GPU architectures. Further, we alleviate the memory bandwidth burden by adjusting common FHE operational sequences and extensively applying kernel fusion. Cheddar delivers performance improvements of 2.18--4.45$\times$ for representative FHE workloads compared to state-of-the-art GPU implementations.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Homomorphic Encryption Kernel Latency | HE Kernels N=2^16 | HE Add Latency (μs)48 | 38 | |
| Encrypted Image Classification | CIFAR-10 | Execution Time (ms)1.32e+3 | 13 | |
| FHE Bootstrapping | FHE Ciphertext | Execution Time (ms)40 | 13 | |
| Bootstrapping | 2^15 vector ciphertext | Boot Latency (ms)22.1 | 11 | |
| ResNet20 inference | CIFAR-10 (test) | Latency (ms)720 | 8 | |
| Logistic regression model training | MNIST | HELR (ms/it)25.9 | 7 | |
| Packed Bootstrapping | Set D | Latency (ms)31.6 | 7 | |
| Bootstrapping | CKKS | Bootstrapping Precision-18.57 | 4 |