A kernel generator that tunes encrypted-computation code to each GPU's bottleneck halves CKKS bootstrapping time on a B300 against Cerium. If it holds, encrypted AI inference gets about twice as fast on current GPUs.
| GPU | Celeritas | Ch.+Cl | Cerium | Ched. | Theo. |
|---|---|---|---|---|---|
| RTX 4090 | 30.7 | 33.8 | 42.4 | 34.4 | – |
| RTX 5090 | 14.8 | 18.0 | 21.9 | 19.4 | 15.2 |
| L40S | 33.0 | 35.2 | 45.6 | 37.5 | – |
| RTX PRO 6000 S.E. | 14.2 | 18.4 | 21.9 | 21.0 | – |
| A100 80GB SXM | 24.1 | 32.4 | 31.7 | 36.8 | 31.8 |
| H100 SXM | 13.2 | 18.6 | 18.9 | 23.2 | 17.8 |
| H200 SXM | 10.3 | 15.8 | 16.6 | 20.8 | 16.1 |
| B200 SXM | 7.01 | 11.7 | 13.5 | 18.3 | 14.0 |
| B300 SXM | 6.55 | 11.2 | 13.1 | 17.5 | – |
| VR200 | 4.37 | 9.40 | 9.38 | 13.7 | – |
Going deeper
Folding positional weights into the conversion factors allows nine FP16 digit products per input to feed three exact FP32 accumulators.
Imagine a kitchen that cooks meals for diners who keep their orders sealed. It works, but slowly, and the biggest delay is a regular deep clean of every pan. Different kitchens have different weak spots: one has a narrow door for deliveries, another has too few cooks.
Earlier recipes were written for one kitchen and used everywhere. This paper first watches each kitchen to see what holds it up. Where cooks are short, it cuts the paperwork each cook does by sharing it. Where the door is narrow, it ships smaller boxes and lets cooks unpack them, even at extra effort.
It also hands one heavy chopping job to a fast machine built for other food, with a careful trick so nothing gets lost. On the newest kitchen tried, the deep clean takes about half as long as before, and whole meals arrive around twice as fast.
The abstract, word for word, with the six densest phrases unpacked.
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 another1. 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 shape2. Guided by an architectural analysis of FHE bottlenecks, Celeritas adapts algorithms and implementations to each GPU’s limiting resource, tailoring traffic- or instruction-reducing optimizations3 to the target GPU’s hardware balance. Additionally, Celeritas leverages Tensor Cores in various formats4, 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.0 × faster than Cerium5, and in 3.8 ms with multi-GPU scaling. Applications run 1.8–2.2 × 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 B300s6.
Two lines of work lead here: GPU libraries for CKKS, and using Tensor Cores for FHE arithmetic.
Read four parts of it, in this order.
Skip Section 2 if you know CKKS, RNS and Shoup multiplication.
If the gains are smaller than they look, these places show why.
We evaluate Celeritas against Cerium (Jayashankar et al., 2026), our primary baseline. Celeritas replaces Cerium’s backend while retaining its frontend, fusion, and cryptographic parameters, so both execute the same FHE programs. We follow its 128-bit security configuration: N=216, 28-bit RNS primes, log2(PQ)<1782, and log2Q<1446, with main and ephemeral secret-key Hamming weights of 215 and 25.
We measure Cheddar’s released code and Ch.+Cl using the same programs and parameters. Finally, we compare against Theodosian (Choi et al., 2026c), which adds memory-centric and base-conversion optimizations to Cheddar. Since its code has not been released, we use the execution times reported in the paper.
This reduces the number of partial sums reconstructed on vector cores from nine to three, but triples the products contributing to each accumulator. Each sum now contains 3K products and its seed, so exactness requires additional headroom. A sufficient condition, independent of accumulation order, is
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all