Skip to content

Celeritas: Architecture-Aware FHE Kernel Generation Across Diverse GPUs

Siddharth Jayashankar, Michael B. Sullivan, Simon Langowski, Wenting Zheng, Dimitrios Skarlatos, Christos Kozyrakis

cs.CR

Abstract

GPUs have emerged as the preferred platform for FHE acceleration. However, modern GPU architectures differ in memory bandwidth, arithmetic throughput, and native instruction support. Consequently, optimizations tuned for one GPU are often suboptimal, or even counterproductive, on another. This problem is compounded by aggressive kernel fusion, which produces diverse call shapes that favor different execution strategies. To address these challenges, we present Celeritas, a code-generation framework that specializes CKKS kernels to the target GPU and fused kernel shape. Guided by an architectural analysis of FHE bottlenecks, Celeritas adapts algorithms and implementations to each GPU's limiting resource, tailoring traffic- or instruction-reducing optimizations to the target GPU's hardware balance. Additionally, Celeritas leverages Tensor Cores in various formats, and implements kernel variants that specialize work mapping and tiling strategies to kernel dimensions. On the NVIDIA B300 GPU, Celeritas runs CKKS bootstrapping in 6.6 ms, 2.0x faster than Cerium, and in 3.8 ms with multi-GPU scaling. Applications run 1.8-2.2x faster: on eight B300s, ResNet-50 classifies an encrypted ImageNet image in 0.89 s, encrypted BERT-Base runs in 4.5 s, and Llama3-8B prefill runs in 22 s. Celeritas on a next-generation VR200 GPU bootstraps in 4.4 ms, and four VR200s roughly match the speed of eight B300s.

Create a lesson

Metadata

Categories
cs.CR, cs.AR