arXiv:2605.14718 · 中英对照阅读
调整 AlphaEvolve,以优化张量处理器上的全同态加密
Adapting AlphaEvolve to Optimize Fully Homomorphic Encryption on TPUs
中文速览
全同态加密能在不解密的情况下处理数据,但计算太慢,难以大规模使用;把它搬到 TPU 上,又常被编译器和硬件细节卡住。研究者让 AlphaEvolve 反复生成和修改 JAX/Pallas 程序,每次都在真实 TPU 上测速度,并用严格的正确性和安全检查淘汰不合格方案。经过 24 小时搜索,TFHE 自举速度提升了 2.5 倍,CKKS 旋转和乘法分别提升了 1.31 倍和 1.18 倍,超过原先由专家调优的实现。这说明 AI 不只能写代码,也能在可靠性把关下帮研究者探索加密算法、编译器与硬件之间的优化空间。
摘要
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.
术语表
- Fully Homomorphic Encryption (FHE)
- 全同态加密
- Privacy-Enhancing Technologies (PETs)
- 隐私增强技术
- AlphaEvolve
- AlphaEvolve
- evolutionary search
- 进化搜索
- LLM-driven code generation
- 大语言模型驱动的代码生成
- hardware-in-the-loop evaluator
- 硬件在环评估器
- Tensor Processing Unit (TPU)
- 张量处理器
- TPUv5e
- TPUv5e
- Matrix Multiplication Unit (MXU)
- 矩阵乘法单元
- Vector Processing Unit (VPU)
- 向量处理单元
- vector register (VReg)
- 向量寄存器
- XLA
- XLA
- JAX
- JAX
- Pallas
- Pallas
- TFHE
- TFHE
- TFHE bootstrap
- TFHE自举
- blind rotation
- 盲旋转
- RingGSW
- RingGSW
- CKKS
- CKKS
- CKKS rotation
- CKKS旋转
- CKKS multiplication
- CKKS乘法
- CROSS
- CROSS
- key switching
- 密钥切换
- rescaling
- 缩放
- modular reduction
- 模约减
- Toeplitz matrix-vector product
- 托普利兹矩阵-向量乘积
- systolic array
- 脉动阵列
- single-instruction, multiple-data (SIMD)
- 单指令多数据
- MAP-Elites
- MAP-Elites
- loop unrolling
- 循环展开