Split-and-Denoise: Protect large language model inference with local differential privacy
Peihua Mai, Ran Yan, Zhe Huang, Youjia Yang, Yan Pang
TL;DR
Split-N-Denoise (SnD) tackles privacy in LLM inference for Embedding-as-a-Service by splitting the model to run the token embedding layer on the client and applying a client-side denoising step after server processing. It employs $d_ Chi$-privacy with Laplacian noise and norm clipping to privatize token representations, and a pre-trained denoising network distributed to users to recover high-utility embeddings without exposing private data. The denoise model is trained on public data to avoid data leakage, enabling privacy-preserving inference with minimal changes to the underlying LLM. Across BERT, GPT-2, and T5, SnD consistently improves the privacy-utility tradeoff compared with baselines, maintaining competitive downstream performance while achieving strong privacy guarantees and substantial computational/communication efficiency relative to cryptographic approaches.
Abstract
Large Language Models (LLMs) excel in natural language understanding by capturing hidden semantics in vector space. This process enriches the value of text embeddings for various downstream tasks, thereby fostering the Embedding-as-a-Service (EaaS) business model. However, the risk of privacy leakage due to direct text transmission to servers remains a critical concern. To address this, we introduce Split-N-Denoise (SnD), an private inference framework that splits the model to execute the token embedding layer on the client side at minimal computational cost. This allows the client to introduce noise prior to transmitting the embeddings to the server, and subsequently receive and denoise the perturbed output embeddings for downstream tasks. Our approach is designed for the inference stage of LLMs and requires no modifications to the model parameters. Extensive experiments demonstrate SnD's effectiveness in optimizing the privacy-utility tradeoff across various LLM architectures and diverse downstream tasks. The results reveal an improvement in performance under the same privacy budget compared to the baselines by over 10\% on average, offering clients a privacy-preserving solution for local privacy protection.
