arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14718cs.CR
收藏

将AlphaEvolve适应于优化TPUs上的全同态加密

Adapting AlphaEvolve to Optimize Fully Homomorphic Encryption on TPUs

Google(谷歌);Georgia Institute of Technology(佐治亚理工学院);Google DeepMind(谷歌DeepMind)

Shruthi Gorantala, Jianming Tong, Asra Ali, Baiyu Li, Jonathan Katz, Jeremy Kun, Thomas Steinke, Abhradeep Thakurta, Julian Walker, Amir Yazdanbakhsh

AI总结:

本文提出利用AlphaEvolve自动化优化TPUs上的全同态加密内核,通过进化搜索提升TFHE和CKKS方案的执行效率,减少延迟。

摘要:

全同态加密(FHE)的大规模部署受到其高计算开销的阻碍。尽管专用硬件加速器如谷歌张量处理单元(TPUs)有助于此问题,但将复杂的加密内核映射到此类架构仍具挑战性。高效的执行需要在基于流水线的矩阵乘法单元(MXU)和向量处理单元(VPUs)之间进行协同优化,以及在向量寄存器文件之间 orchestrate 数据移动。现有的编译器栈通常抽象了低层硬件利用,要求开发者采用手动试错的过程,这通常导致执行碎片化和资源利用率低下。为了加速此开发过程,我们使用AlphaEvolve来自动化探索硬件感知的加密内核优化。我们将优化框架为进化搜索问题,利用AlphaEvolve提供的闭环系统,该系统利用大语言模型驱动的代码生成。我们使用真实的硬件执行反馈和严格的正确性测试来指导进化过程。我们评估了AlphaEvolve优化在TFHE(Jaxite)和CKKS(CROSS)FHE方案上的TPUv5e架构上的性能。在24小时内自动探索后,AlphaEvolve发现了实现层面的优化,使TFHE的启动延迟减少了2.5倍,CKKS的旋转和乘法延迟分别减少了1.31倍和1.18倍,相对于人工设计的最先进方案。这些结果表明,AlphaEvolve可用于帮助研究人员在密码学、编译器和硬件加速器之间导航优化权衡。

英文摘要:

The deployment of Fully Homomorphic Encryption (FHE) at scale is hindered due to its heavy computational overhead. While specialized hardware accelerators like Google Tensor Processing Units (TPUs) can help, mapping complex cryptographic kernels onto such architectures remains a challenge. Efficient execution requires co-optimization between the systolic array-based Matrix Multiplication Unit (MXU) and Vector Processing Units (VPUs), as well as the orchestration of data movement across the vector register files. Existing compiler stacks often abstract low-level hardware utilization, requiring developers to adopt a manual trial-and-error process that often results in fragmented execution and underutilized resources. To accelerate this development process, we use AlphaEvolve to automate the exploration of hardware-aware cryptographic-kernel optimizations. We frame optimization as an evolutionary search problem, utilizing the closed-loop system provided by AlphaEvolve, that leverages LLM-driven code generation. We use real-world feedback from hardware execution and rigorous correctness testing to guide the evolution process. We evaluate AlphaEvolve optimization on primitives for both the TFHE (Jaxite) and CKKS (CROSS) FHE schemes on Google Cloud TPUv5e, a contemporary TPU architecture. Within 24 hours of automated exploration, AlphaEvolve discovered implementation-level optimizations that improve TFHE bootstrap latency by 2.5x and CKKS rotation and multiplication latency by 1.31x and 1.18x, respectively, relative to human-engineered state of the art. These results demonstrate that AlphaEvolve can be used to enable researchers to navigate the optimization trade-offs between cryptography, compilers, and hardware accelerators.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑