Skip to main content
QUICK REVIEW

[Paper Review] Split-and-Denoise: Protect large language model inference with local differential privacy

Peihua Mai, Ran Yan|arXiv (Cornell University)|Oct 13, 2023
Privacy-Preserving Technologies in DataComputer Science4 citations
TL;DR

This paper proposes Split-N-Denoise (SnD), a novel framework that enhances local differential privacy (LDP) in large language model (LLM) inference by splitting the model: the client computes and perturbs token embeddings locally, while the server performs the remainder of the inference. A pre-trained denoising model on the client side uses noise level and raw inputs to improve utility, achieving over 10% average performance gain over baselines under the same privacy budget.

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.

Motivation & Objective

  • To address privacy leakage risks in Embedding-as-a-Service (EaaS) where sensitive user inputs are sent to servers.
  • To enable strong local differential privacy (LDP) during LLM inference without modifying model parameters.
  • To improve model utility under strict privacy budgets by leveraging client-side denoising with knowledge of noise levels.
  • To minimize client-side computational cost while maintaining high performance in downstream tasks.

Proposed method

  • Split the LLM inference into two parts: the client performs only the token embedding layer computation.
  • Apply local differential privacy by injecting calibrated noise into the client-side embeddings before transmission.
  • Pre-train a denoising model on the server using public data and synthetic noise to learn to reverse perturbations.
  • Deploy the pre-trained denoiser on the client side, which uses both the noisy embeddings and the original input to reconstruct higher-quality representations.
  • Use norm clipping on privatized embeddings to further improve privacy-utility trade-off.
  • Leverage the post-processing properties of differential privacy to ensure that the denoising process does not compromise privacy guarantees.

Experimental results

Research questions

  • RQ1Can client-side denoising with knowledge of noise levels and raw inputs significantly improve the utility of privatized embeddings in LLM inference?
  • RQ2How does the performance of SnD compare to server-side denoising and baseline LDP methods under varying privacy budgets?
  • RQ3To what extent does SnD reduce client-side computational cost compared to full model inference?
  • RQ4How well does SnD maintain performance under extremely low privacy budgets (e.g., η ≤ 0.01)?

Key findings

  • SnD improves downstream task performance by over 10% on average compared to existing DP-based baselines under the same privacy budget.
  • The client-side denoising mechanism outperforms server-side denoising by more than 10% across all evaluated BERT models and tasks.
  • With norm clipping, SnD improves accuracy by 7.5%, 15.5%, and 13.4% on RTE, MRPC, and QQP tasks respectively, demonstrating significant utility gains.
  • Even at extremely low privacy budgets (η = 0.001), SnD maintains strong performance, with AUC scores of 0.617 (MRPC), 0.576 (RTE), and 0.639 (QQP), significantly outperforming Text2Text (AUC ~0.52).
  • SnD reduces client-side computation and memory costs by 95.3% and 93.5% respectively compared to full model inference on GPT2-Xlarge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.