Search arXiv⌕ Search

arXiv subjects

Siddharth Jayashankar

Publications and source records attributed to Siddharth Jayashankar.

2 recordsLinked to original sources

Celeritas: Architecture-Aware FHE Kernel Generation Across Diverse GPUs

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.

cs.CR↗

Cerium: A Multi-GPU Framework for Terabyte-Scale Encrypted Inference

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

cs.CR↗