arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.11269cs.CRcs.AI
收藏

可扩展的多GPU框架用于加密大模型推断

Cerium: A Multi-GPU Framework for Terabyte-Scale Encrypted Inference

Carnegie Mellon University(卡内基梅隆大学);UT Austin(得克萨斯大学);NVIDIA(英伟达)

Siddharth Jayashankar, Joshua Kim, Michael B. Sullivan, Wenting Zheng, Dimitrios Skarlatos

AI总结:

Cerium是首个实现加密大模型推断的多GPU框架,通过优化编译器和运行时系统,显著提升FHE推断性能,达到与ASIC相当的效率。

摘要:

加密AI使用全同态加密(FHE)提供强隐私保障;但其缓慢的性能限制了实际部署。近期的工作提出了ASICs来加速FHE,但需要昂贵的先进制造工艺,限制了其可访问性。GPU是更可访问的平台,但利用GPU实现ASIC级性能仍难以实现。此外,最先进的方法主要集中在可以轻松容纳在单个设备中的小型模型上。在FHE中支持大型模型,如LLMs,会引入计算复杂性的急剧增加,这需要优化的GPU内核,以及管理TB级内存足迹,这远远超出了单个GPU的容量。本文提出了Cerium,一种用于大模型FHE推断的多GPU框架。Cerium集成了领域特定语言、优化编译器和运行时系统,以自动生成高性能GPU内核、管理TB级内存足迹,并在多个GPU上并行计算。它引入了新的IR构造、编译器流程、稀疏多项式表示、内存高效的数据显示布局以及通信感知的并行化技术,这些共同使从小型CNN到Llama3-8B的模型能够实现加密推断。我们基于NVIDIA GPU构建了Cerium,并展示了显著的性能提升。对于小型模型,Cerium在专家编写的手动优化GPU库上表现优异,最高可达2.25倍。Cerium的性能与最先进的FHE ASICs相当,完全匹配先前的FHE ASIC CraterLake。它是首个在10毫秒内执行启动的GPU系统,达到7.5毫秒,也是首个在8秒和134秒内分别演示BERT-Base和Llama3-8B的加密推断的系统。

英文摘要:

Encrypted AI using fully homomorphic encryption (FHE) enables inference directly over encrypted queries, providing strong privacy guarantees. However, its computational and memory overheads have limited practical deployment. Custom FHE accelerators improve performance, but rely on advanced manufacturing technologies that limit their accessibility. GPUs offer a more widely available alternative, yet achieving ASIC-class performance on GPUs is challenging. Large models such as LLMs compound these challenges by requiring optimized kernels, terabyte-scale memory management, and efficient execution across multiple devices. We present Cerium, a multi-GPU framework for large-scale FHE inference. Cerium combines a domain-specific language, an optimizing compiler, and a runtime system to automatically generate optimized GPU kernels, compress plaintext data, manage terabyte-scale memory footprints, and optimize multi-GPU communication. Implemented on NVIDIA GPUs, Cerium outperforms expert-written GPU libraries by up to 2.25x and achieves performance competitive with state-of-the-art FHE ASICs, matching the CraterLake ASIC. It is the first GPU system to execute CKKS bootstrapping in under 10 milliseconds, achieving 7.5 milliseconds, and is the first to demonstrate encrypted inference for BERT-Base and Llama3-8B prefill in 8 seconds and 43 seconds, respectively. The Cerium framework is open-source and available at https://github.com/CMU-CAOS/Cerium

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

↑