通过随机量化与软提示实现私密高效的模型分割推理
Differentially Private and Communication Efficient Large Language Model Split Inference via Stochastic Quantization and Soft Prompt
- 采用随机量化与嵌入投影降低通信开销
- 在隐私保护下保持文本生成与理解任务性能
- 无需本地模型,适合资源受限设备部署
大型语言模型(LLMs)虽性能卓越,但其巨大的计算需求阻碍了在资源有限设备上的本地部署。当前主流推理范式需将查询发送至服务端处理,引发严重隐私问题。现有方法虽通过混淆令牌嵌入并使用本地模型去噪来缓解,但传输嵌入和部署本地模型仍导致过高的通信与计算开销。本文提出 extbf{DEL} 框架,实现差分隐私且通信高效的 LLM 分割推理:设计嵌入投影模块与差分隐私的随机量化机制,在保护隐私的同时减少通信量;为避免本地模型需求,采用服务器端的软提示(soft prompt)补偿隐私保护带来的性能下降。据我们所知,这是首个利用软提示改善隐私-效用权衡的 LLM 推理工作。在文本生成与自然语言理解基准上的广泛实验验证了该方法的有效性。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have achieved remarkable performance and received significant research interest. The enormous computational demands, however, hinder the local deployment on devices with limited resources. The current prevalent LLM inference paradigms require users to send queries to the service providers for processing, which raises critical privacy concerns. Existing approaches propose to allow the users to obfuscate the token embeddings before transmission and utilize local models for denoising. Nonetheless, transmitting the token embeddings and deploying local models may result in excessive communication and computation overhead, preventing practical implementation. In this work, we propose \textbf{DEL}, a framework for \textbf{D}ifferentially private and communication \textbf{E}fficient \textbf{L}LM split inference. More specifically, an embedding projection module and a differentially private stochastic quantization mechanism are proposed to reduce the communication overhead in a privacy-preserving manner. To eliminate the need for local models, we adapt soft prompt at the server side to compensate for the utility degradation caused by privacy. To the best of our knowledge, this is the first work that utilizes soft prompt to improve the trade-off between privacy and utility in LLM inference, and extensive experiments on text generation and natural language understanding benchmarks demonstrate the effectiveness of the proposed method.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。