Theodosian: A Deep Dive into Memory-Hierarchy-Centric FHE Acceleration
Wonseok Choi, Hyunah Yu, Jongmin Kim, Hyesung Ji, Jaiyoung Park, Jung Ho Ahn
TL;DR
The paper conducts a microarchitectural analysis of CKKS bootstrapping on modern GPUs, revealing that memory bandwidth and L2-cache capacity, not arithmetic throughput, dominate performance. It introduces Theodosian, a set of memory-hierarchy-aware optimizations (L2-aware batching, complementary pipelining, and CUDA Graphs) that improve CKKS throughput and bootstrapping latency, achieving 1.45–1.83x speedups on RTX 5090 and setting new state-of-the-art results. The study also shows that even with large L2 caches, the memory wall persists, and outlines remaining headroom and future directions toward memory-aware cryptographic algorithms and hardware designs. Overall, the work provides a practical pathway to accelerate FHE on GPUs while highlighting fundamental hardware constraints.
Abstract
Fully homomorphic encryption (FHE) enables secure computation on encrypted data, mitigating privacy concerns in cloud and edge environments. However, due to its high compute and memory demands, extensive acceleration research has been pursued across diverse hardware platforms, especially GPUs. In this paper, we perform a microarchitectural analysis of CKKS, a popular FHE scheme, on modern GPUs. We focus on on-chip cache behavior, and show that the dominant kernels remain bound by memory bandwidth despite a high-bandwidth L2 cache, exposing a persistent memory wall. We further discover that the overall CKKS pipeline throughput is constrained by low per-kernel hardware utilization, caused by insufficient intra-kernel parallelism. Motivated by these findings, we introduce Theodosian, a set of complementary, memory-aware optimizations that improve cache efficiency and reduce runtime overheads. Our approach delivers consistent speedups across various CKKS workloads. On an RTX 5090, we reduce the bootstrapping latency for 32,768 complex numbers to 15.2ms with Theodosian, and further to 12.8ms with additional algorithmic optimizations, establishing new state-of-the-art GPU performance to the best of our knowledge.
