Adapting AlphaEvolve to Optimize Fully Homomorphic Encryption on TPUs
Shruthi GorantalaJianming TongBaiyu LiAsra aliJeremy KunThomas SteinkeAbhradeep Guha ThakurtaJulian WalkerAmir YazdanbakhshJonathan Katz
Shruthi Gorantala
Jianming Tong
Baiyu Li
Asra ali
Jeremy Kun
Thomas Steinke
Abhradeep Guha Thakurta
Julian Walker
Amir Yazdanbakhsh
Jonathan Katz
+10
This paper adapts AlphaEvolve to automate frontend design-space exploration for fully homomorphic encryption (FHE) kernels on TPUs, a loop normally performed manually by editing JAX/Pallas code, compiling through an opaque stack, and inspecting hardware traces. The kernel implementation is treated as an evolutionary search problem: an LLM generates candidate programs, which are compiled and executed on TPUv5e hardware, scored on latency by XProf, and admitted only when they pass correctness/security checks and improve the score. Evaluated on TFHE bootstrapping in Jaxite and CKKS rotation and multiplication in CROSS, AlphaEvolve found JAX/Pallas modifications within 24 hours that reduced blind-rotation bootstrapping latency from 10.0 ms to 3.5 ms ($2.86\times$), CKKS rotation from 4854 $\mu$s to 3714 $\mu$s ($1.31\times$), and CKKS multiplication from 6340 $\mu$s to 5359 $\mu$s ($1.18\times$) over expert baselines, showing that guarded LLM evolution can automate FHE kernel performance engineering and find optimizations experts might miss.

OpenReview ·
· May 9, 2026