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

TurboFHE:一种用于同态LLM推理的高效可扩展多GPU框架

TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference

Honghui You, Haoping Yang, Wenzhe Wang, Lei Ju

AI总结:

TurboFHE是一款自动编译CKKS推理程序的多GPU框架,可优化FHE LLM推理的并行方案,在多GPU环境下对Llama-3-8B等模型的推理性能优于现有方案,加速效果显著。

摘要:

全同态加密(FHE)支持隐私保护的大语言模型推理,但计算开销仍很大。现有多GPU FHE推理系统依赖专家定制的并行化方案,在不同硬件平台和应用间的通用性较差。我们提出\fwName,这是一个可自动将CKKS推理程序编译为高效多GPU可执行文件的框架。其编译器可在密文和多项式层面拆分同一计算图的不同节点;基于测量的性能模型指导下,硬件感知规划器联合优化任务划分、放置、操作数驻留及传输调度;关键路径引导的重写提取共享计算并重构同态和;后端生成优化的GPU内核,通过CUDA图和选择性点对点传输执行规划。\fwName可适配不同硬件配置和大规模模型的FHE推理算法。在单块A100 GPU上,\fwName实现了比THOR报告的BERT-Base推理延迟快24.5倍的加速;针对Cerium的Llama-3-8B workload,\fwName在2、4、8块RTX PRO 6000 GPU上分别比Cerium的专家定制方案性能高1.14倍、1.16倍、1.24倍;在A100 GPU上,\fwName在2、4、8块GPU上针对同一工作负载分别实现了98.0%、91.8%、79.3%的并行效率。

英文摘要:

Fully homomorphic encryption (FHE) enables privacy-preserving large language model inference but remains computationally intensive. Existing multi-GPU FHE inference systems rely on expert-crafted parallelization plans that generalize poorly across hardware platforms and applications. We present \fwName, a framework that automatically compiles CKKS inference programs into efficient multi-GPU executables. Its compiler can split different nodes of the same computation graph at the ciphertext and polynomial level. Guided by a measurement-based performance model, its hardware-aware planner jointly optimizes task partitioning, placement, operand residency, and transfer scheduling. %Critical-path-guided rewrites extract shared computation and restructure homomorphic sums. Its backend then generates optimized GPU kernels and executes plans using CUDA graphs and selective point-to-point transfers. \fwName adapts its plans to diverse hardware configurations and FHE inference algorithms for large-scale models. On a single A100 GPU, \fwName achieves a $24.5\times$ speedup over THOR's reported BERT-Base inference latency. For Cerium's Llama-3-8B workload, \fwName outperforms Cerium's expert-crafted plans by $1.14\times$, $1.16\times$, and $1.24\times$ on 2, 4, and 8 RTX PRO~6000 GPUs, respectively. On A100 GPUs, \fwName achieves $98.0\%$, $91.8\%$, and $79.3\%$ parallel efficiency for the same workload on 2, 4, and 8 GPUs, respectively.

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

↑