Introduction
Split-and-Denoise (SnD) is a novel framework designed to enable private Large Language Model (LLM) inference by strategically splitting the model between the user and the server. By adding noise to embeddings locally and utilizing a specialized local "denoise module" to clean the results, SnD achieves a 10% average performance boost over existing privacy methods while remaining thousands of times faster than cryptographic alternatives.
The Privacy Bottleneck in Embedding-as-a-Service
As "Embedding-as-a-Service" (EaaS) becomes a standard business model, users are increasingly sending sensitive data—such as names, phone numbers, and private thoughts—to third-party LLM providers. The direct transmission of this text poses a massive privacy risk.
Existing solutions generally fall into two camps, both with significant flaws:
- Cryptographic methods (e.g., Homomorphic Encryption): These are mathematically secure but computationally heavy, often running thousands of times slower than standard inference.
- Perturbation methods (e.g., Differential Privacy): These add noise to data to hide individual details. While fast, they typically degrade the model's "utility" (accuracy) so much that the resulting embeddings become useless for complex downstream tasks.
The authors identify a specific bottleneck in perturbation methods: server-side denoising. If a server tries to clean up noisy data, it struggles because it lacks knowledge of the exact noise level or the original input. The authors ask a pivotal question: Can we move the denoising to the user side, where the "ground truth" is already known?
The Split-and-Denoise (SnD) Framework
The SnD framework operates in four distinct stages to protect user data while maintaining high utility:
- Local Splitting: The LLM is "cut" after the very first layer (the token embedding layer). The user runs this tiny portion locally to convert text into vector embeddings.
- Privatization (LDP): The user adds Laplacian noise to these embeddings based on $d_\chi$-privacy, a variant of Local Differential Privacy tailored for text. This ensures that even if the server intercepts the data, it cannot reconstruct the original words.
- Cloud Inference: The server receives the noisy embeddings, runs the rest of the massive LLM, and sends the (still noisy) output back to the user.
- Local Denoising: This is the core innovation. The user employs a small, pre-trained Transformer-based denoise module. Because the user knows the original input and the exact noise they added, this module can "correct" the server's output far more effectively than the server ever could.
Crucially, this method requires zero modifications to the server-side LLM parameters, making it fully compatible with "black-box" APIs.
Experimental Setup
To make the denoise module robust, the authors trained it on a massive "mixed bag" of 20 public datasets, including SQuAD (reading comprehension), AG News, TweetEval, and Daily Dialogue. The framework was then evaluated across three LLM families (BERT, GPT-2, and T5) on standard downstream benchmarks such as CoLA (linguistic acceptability), QQP & MRPC (paraphrase and sentence similarity), and RTE (natural language entailment).
Key Insights
- The Power of Asymmetric Information: The breakthrough realization is that the user is the best entity to fix the noise. By keeping the denoising local, the system leverages the user's knowledge of the original "clean" data without ever exposing that data to the server.
- Minimal Local Overhead: By splitting the model at the very first layer, the computational burden on the user's device is negligible, making SnD viable for mobile phones or low-power edge devices.
- Bypassing the "Utility-Privacy" Tradeoff: Traditional DP often fails because noise compounds as it passes through deep neural network layers. SnD's local correction effectively "resets" much of this error at the end of the pipeline.
Results and Performance
SnD demonstrates remarkable improvements across both privacy and utility metrics:
- Superior Accuracy: SnD outperformed standard DP baselines (like TokEmbPriv and RAPT) by over 10% on average across various tasks.
- Massive Speedup: Compared to state-of-the-art cryptographic private inference (PCFT and Iron), SnD achieved a staggering 5,000x to 25,000x speedup in computation time.
- Robust Privacy: Against "Inversion Attacks" (attempts to guess the text from embeddings), the attack success rate remained near zero for most models, even with high privacy budgets.
- Efficiency: For a GPT2-XLarge model, SnD saved the user 95.3% in computation time and 93.5% in memory compared to running the full model locally.
Limitations and Future Work
While highly effective, SnD has areas for future improvement:
- Scaling to Giant Models: While SnD works exceptionally well for models up to 1GB, the accuracy on downstream tasks needs improvement for massive models like LLaMA or OPT-6.7B. The transformations in these larger models are so complex that the noise becomes harder to "undo."
- Sequence-to-Sequence (S2S) Challenges: The current framework focuses on generating embeddings. Extending this to auto-regressive text generation (like ChatGPT's word-by-word response) is difficult because errors in one token can "hallucinate" or compound in the next.
- Denoiser Generalization: Although the denoiser is trained on 20 datasets, its performance can dip if the user's private data is drastically different from the public training data due to distribution shifts.
Summary updated