DP-SPD:用虚拟查询与随机混洗实现差分隐私LLM推理
Ask in the Crowd: Differentially Private LLM Inference via Dummy-Augmented Shuffling
研究者提出差分隐私LLM推理框架DP-SPD,将真实查询隐藏在客户端生成的虚拟查询中,所有查询随机混洗后再发送至服务器,避免真实意图被直接识别。该方法利用查询间的共享前缀结构,在解码时复用transformer KV缓存以提升推理效率。在分类与生成任务上的评估显示,该方法在QIA、EIA及基于GPT的攻击下实现较强推理时隐私保护,并保持接近明文的效用。
arXiv:2611.25669v1 Announce Type: new Abstract: Large language models are increasingly deployed as LLM-as-a-Service (LLMaaS), where user queries are sent to remote LLMs for inference, raising severe privacy concerns about the exposure of sensitive user inputs. Differentially private inference mitigates these risks by injecting noise into input embeddings. However, existing methods struggle to balance privacy and utility, as stronger privacy protection often leads to substantial accuracy degradation in LLM inference. In this work, we propose DP-SPD, a differentially private LLM inference framework that protects user queries by hiding the real query among client-generated dummy queries. All queries are randomly shuffled before being sent to the server, preventing direct identification of the user's true intent. To improve inference efficiency, we exploit the shared-prefix structure among queries and reuse transformer key--value (KV) caches during decoding. We analyze the privacy guarantee of DP-SPD and evaluate its utility on classification and generation tasks, as well as its privacy protection under QIA, EIA, and GPT-based attacks. Experimental results show that our method achieves strong inference-time privacy protection and near-plaintext utility while improving inference efficiency through shared-prefix KV-cache reuse.
来源:arXiv (AI + Vision + Imaging) · arxiv.org