Fully Homomorphic Encryption (FHE) protects data during computation, but its computational and memory overheads make deployment at scale difficult. Google TPUs provide leading throughput, yet high FHE performance requires optimizing JAX/Pallas implementations to trigger the right XLA lowering decisions and to fill the TPU's coarse-grained vector registers. This optimization loop is typically manual: developers edit frontend code, compile through an opaque stack, inspect hardware traces, and repeat. We adapt AlphaEvolve to automate this frontend design-space exploration for FHE kernels on TPUs. AlphaEvolve treats the kernel implementation as an evolutionary search problem; candidate programs are generated by an LLM, compiled and executed on real TPUv5e hardware, scored on their latency by XProf, and admitted only if they pass correctness/security checks and have a higher score.
We evaluate AlphaEvolve on TFHE bootstrapping in Jaxite and on CKKS rotation and multiplication in CROSS. Within 24 hours, AlphaEvolve discovered JAX/Pallas-level modifications that lead to loop unrolling for parameter reuse, XLA-favorable tiling, and removal of redundant type conversions. These optimizations reduce TFHE blind-rotation latency during bootstrapping from 10.0\,ms to 3.5\,ms (2.86×), CKKS rotation latency from 4854\,μs to 3714\,μs (1.31×), and CKKS multiplication latency from 6340\,μs to 5359\,μs (1.18×) relative to expert baselines. The results show that guarded LLM evolution can effectively automate performance engineering of JAX/Pallas-based FHE kernel optimizations and identify optimizations that human experts might miss.