PipeLLM: Fast and Confidential Large Language Model Services with Speculative Pipelined Encryption
Yifan Tan, Cheng Tan, Zeyu Mi, Haibo Chen

TL;DR
PipeLLM introduces a pipelined encryption technique for confidential GPU-based LLM serving, significantly reducing encryption overhead and maintaining high throughput while ensuring data privacy.
Contribution
It proposes speculative pipelined encryption and a low-cost correction approach to effectively hide encryption latency in confidential LLM serving.
Findings
Achieves less than 19.6% throughput overhead on NVIDIA H100 GPUs.
Effectively conceals encryption latency through pipelining and prediction.
Supports various LLM sizes from 13B to 175B with minimal performance impact.
Abstract
Confidential computing on GPUs, like NVIDIA H100, mitigates the security risks of outsourced Large Language Models (LLMs) by implementing strong isolation and data encryption. Nonetheless, this encryption incurs a significant performance overhead, reaching up to 52.8 percent and 88.2 percent throughput drop when serving OPT-30B and OPT-66B, respectively. To address this challenge, we introduce PipeLLM, a user-transparent runtime system. PipeLLM removes the overhead by overlapping the encryption and GPU computation through pipelining - an idea inspired by the CPU instruction pipelining - thereby effectively concealing the latency increase caused by encryption. The primary technical challenge is that, unlike CPUs, the encryption module lacks prior knowledge of the specific data needing encryption until it is requested by the GPUs. To this end, we propose speculative pipelined encryption…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDNA and Biological Computing · Cryptography and Data Security · Cloud Data Security Solutions
