TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference
Abstract
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 speedup over THOR's reported BERT-Base inference latency. For Cerium's Llama-3-8B workload, \fwName outperforms Cerium's expert-crafted plans by , , and on 2, 4, and 8 RTX PRO~6000 GPUs, respectively. On A100 GPUs, \fwName achieves , , and parallel efficiency for the same workload on 2, 4, and 8 GPUs, respectively.
Create a lesson
Related papers
An LLM-Assisted Multi-Objective AutoML Framework for Efficient Network Intrusion Detection
Shared title terminology · Ailin Barzegar, Khalil El-Khatib, Li Yang
AscendFHE: Efficient Fully Homomorphic Encryption on Ascend NPUs
Shared title terminology · Honghui You, Haoping Yang, Wenzhe Wang et al.
NPUFHE: An Efficient CKKS Execution System for Ascend NPUs
Shared title terminology · Ke Changke, Jian Wang, Xuan Xu et al.
DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference
Shared title terminology · Ke Changke, Jian Wang, Xuan Xu et al.
Understanding Membership Inference Attacks on EEG Models
Shared title terminology · Mehrdad Khodapanahandeh, Selin Unal, Berkay Kemal Balioglu et al.
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminology · Yingyan He