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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zheng, Fei, Chen, Chaochao, Han, Zhongxuan, Zheng, Xiaolin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909212691398656
author Zheng, Fei
Chen, Chaochao
Han, Zhongxuan
Zheng, Xiaolin
author_facet Zheng, Fei
Chen, Chaochao
Han, Zhongxuan
Zheng, Xiaolin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_18744
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PermLLM: Private Inference of Large Language Models within 3 Seconds under WAN
Zheng, Fei
Chen, Chaochao
Han, Zhongxuan
Zheng, Xiaolin
Cryptography and Security
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.
title PermLLM: Private Inference of Large Language Models within 3 Seconds under WAN
topic Cryptography and Security
url https://arxiv.org/abs/2405.18744