Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PermLLM: Private Inference of Large Language Models within 3 Seconds under WAN

About

The emergence of ChatGPT marks the arrival of the large language model (LLM) era. While LLMs demonstrate their power in a variety of fields, they also raise serious privacy concerns as the users' queries are sent to the model provider. On the other side, deploying the LLM on the user's device will also leak all the model data. Existing methods based on secure multiparty computation (MPC) managed to protect both the privacy of the model parameters and user queries. However, they require gigabytes of data transfer and several minutes to generate just one token, making them impractical for most real-world applications. To improve the efficiency of private LLM inference, we propose PermLLM, which accelerates the evaluation of non-linear functions using secure random permutation. Along with the optimized secret sharing protocols and homomorphic encryption, PermLLM achieves two-party private inference of the ChatGLM-6B model at the speed of around 3s/token, under a realistic network setting (10ms RTT and 1Gbps bandwidth), which is magnitudes faster than existing MPC solutions.

Fei Zheng, Chaochao Chen, Zhongxuan Han, Xiaolin Zheng• 2024

Related benchmarks

TaskDatasetResultRank
LLM Inference EfficiencyShort sequence prompts
TTFT (s)0.85
24
LLM Inference EfficiencySequence prompts Medium
TTFT (s)5.93
24
LLM Inference EfficiencyLong sequence prompts
TTFT (s)76.65
24
Retrieval-Augmented Generationmeta-llama Llama-3.1-8B-Instruct Short prompt
TTFT (s)11.93
3
Retrieval-Augmented GenerationLlama 3.1 8B Instruct Medium prompt
TTFT (s)89.23
3
Retrieval-Augmented Generationmeta-llama Llama 8B Instruct Long prompt 3.1
TTFT (s)1.24e+3
3
Retrieval-Augmented Generationopenai/gpt-oss-20b Short prompt
TTFT (s)9.68
3
Retrieval-Augmented Generationopenai/gpt-oss-20b Medium prompt
Time To First Byte (s)73.47
3
Retrieval-Augmented Generationopenai/gpt-oss-20b Long prompt
TTFT (s)966.5
3
Showing 9 of 9 rows

Other info

Follow for update