Cerium: A Multi-GPU Framework for Terabyte-Scale Encrypted Inference
Organizations: Carnegie Mellon University · UT Austin · NVIDIA
Abstract
Encrypted AI using fully homomorphic encryption (FHE) enables inference directly over encrypted queries, providing strong privacy guarantees. However, its computational and memory overheads have limited practical deployment. Custom FHE accelerators improve performance, but rely on advanced manufacturing technologies that limit their accessibility. GPUs offer a more widely available alternative, yet achieving ASIC-class performance on GPUs is challenging. Large models such as LLMs compound these challenges by requiring optimized kernels, terabyte-scale memory management, and efficient execution across multiple devices. We present Cerium, a multi-GPU framework for large-scale FHE inference. Cerium combines a domain-specific language, an optimizing compiler, and a runtime system to automatically generate optimized GPU kernels, compress plaintext data, manage terabyte-scale memory footprints, and optimize multi-GPU communication. Implemented on NVIDIA GPUs, Cerium outperforms expert-written GPU libraries by up to 2.25x and achieves performance competitive with state-of-the-art FHE ASICs, matching the CraterLake ASIC. It is the first GPU system to execute CKKS bootstrapping in under 10 milliseconds, achieving 7.5 milliseconds, and is the first to demonstrate encrypted inference for BERT-Base and Llama3-8B prefill in 8 seconds and 43 seconds, respectively. The Cerium framework is open-source and available at https://github.com/CMU-CAOS/Cerium
Figures & tables
| Benchmark | GPU | Cerium Execution Time | Related | Unencrypted | ||||
|---|---|---|---|---|---|---|---|---|
| Work | CPU | GPU | ||||||
| Bootstrap | B200 | 14.5 ms | 9.9 ms | 8.2 ms | 7.5 ms | C: 21 ms | - | - |
| H100 | 19.5 ms | 13.7 ms | 10.6 ms | 9.7 ms | C: 23 ms | |||
| A100 | 34.2 ms | 22.5 ms | 17.9 ms | 16.5 ms | C: 40 ms | |||
| ResNet-20 | B200 | 456 ms | 340 ms | 310 ms | 298 ms | - | 5 ms | 2 ms |
| H100 | 620 ms | 464 ms | 408 ms | 386 ms | - | 3 ms | ||
| Benchmark | Cerium Compile Time | CudaGraph Creation Time |
|---|---|---|
| Bootstrap | 5.5 s | 350 ms |
| ResNet-20 | 13.9 s | 1.75 s |
| BERT-Base | 2 min 47 s | 4.75 s |
| Llama3-8B | 11 min 29 s | 24.45 s |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Homomorphic Encryption
Homomorphic encryption lets data be computed on while encrypted, supporting privacy-preserving machine learning, analytics, and inference.
See all 41 papers