TL;DR
Differentially private decoding offers a practical alternative to DP training for large language models, but existing methods burn through their privacy budget too quickly. AdaPMixED introduces query-adaptive private next-token prediction using a Rényi-divergence noisy screening filter and tight data-dependent accounting. This allows private inference to scale to nearly 100,000 queries at $\epsilon \approx 5.25$ while beating DP-SGD utility by up to 2.5 perplexity.
What Problem Does This Paper Address?
Training LLMs with Differential Privacy (DP-SGD) protects private data against extraction attacks, but it requires costly per-sample gradient clipping, underutilizes GPU hardware, and noticeably degrades model utility. Private prediction (DP decoding) sidesteps retraining by privatizing model outputs at inference time via an API.
A leading approach, PMixED, ensembles private models and mixes their token distributions with a public baseline model. However, PMixED relies on loose, data-independent analytical worst-case privacy bounds and a predetermined query budget. In practice, analysts rarely know query counts in advance, and treating every token as a worst-case privacy leak causes the privacy budget to exhaust rapidly, preventing real-world scaling.
Methods
AdaPMixED introduces two core techniques to make private decoding adaptive and query-dependent:
- Noisy Screening Mechanism: When the ensemble's private distribution diverges heavily from the public model, answering using private data provides minimal benefit while consuming substantial privacy budget. AdaPMixED truncates distributions to the public model's top-$k$ vocabulary, adds calibrated Gaussian noise to the mixture probabilities, and computes the Rényi Divergence against the public distribution. If divergence exceeds a threshold $T$, the query falls back to sampling purely from the public model—incurring zero additional private data leakage.
- Data-Dependent Privacy Accounting: Rather than relying on loose theoretical upper bounds (derived via Jensen’s and triangle-like inequalities), AdaPMixED directly calculates the empirical Rényi Divergence between the ensemble distribution $p(x)$ and each leave-one-out neighboring ensemble $p_{-i}(x)$ at each step: $$\epsilon_{\text{PMixED}}(\alpha, \beta, N, D, x) = \max_{i \in [N]} \{ D_\alpha^\leftrightarrow(p(x) \parallel p_{-i}(x)) \}$$
- Formal Utility & Privacy Bounds: The authors provide Rényi Differential Privacy (RDP) guarantees for both the screening step and sampling step, as well as an upper bound on performance loss measured in negative log-likelihood (perplexity).
Datasets
The authors evaluate AdaPMixED across four generation and language modeling benchmarks:
- WikiText-103 and One Billion Word (LM1B): Standard language modeling benchmarks used in prior work.
- PubMed: Scientific medical papers, testing domain-specific adaptation.
- Air Dialogue: Goal-oriented customer service dialogues for flight bookings.
All experiments use pre-trained GPT-2 (small) models, fine-tuned with Low-Rank Adaptation (LoRA) to manage the memory footprint of running an ensemble.
Key Insights and Ideas
- Public Fallback Saves Privacy Budget: In many text generation queries, the public model is already sufficiently confident or private models diverge so wildly that attempting to blend them forces the mixing weight $\lambda$ near zero anyway. Screening out these queries and answering solely with the public model preserves privacy budget for queries where the private ensemble truly helps.
- Language Models Enable Direct Divergence Computation: In discriminative tasks (like PATE), outputs are discrete vote tallies requiring histogram noise. In generative autoregressive LLMs, outputs are dense probability distributions, allowing exact numerical calculation of Rényi Divergence over leave-one-out ensembles.
- Data-Independent Bounds are Overly Pessimistic: Theoretical worst-case bounds assume worst-case distribution shifts at every single step, whereas real token predictions frequently exhibit high consensus, yielding drastically smaller empirical privacy loss.
Key Results
- 16× Privacy Reduction at Match/Better Utility: On WikiText-103 (1,024 queries), AdaPMixED achieves a perplexity (PPL) of 32.35 at data-dependent $\epsilon(D) = 0.494$, compared to standard PMixED which achieved 33.8 PPL at $\epsilon = 8$.
- Scaling to 100K Queries: Previous private prediction frameworks typically evaluated on $\le 1,000$ queries. AdaPMixED scaled to 99,840 queries on WikiText-103 with $\epsilon(D) = 5.248$ and a PPL of 29.99—outperforming DP-SGD ($\epsilon = 8$, PPL 32.53) by roughly 2.5 PPL. On One Billion Word, it improved by nearly 5.0 PPL over DP-SGD.
- Screening Overhead is Negligible: The screening step accounts for only about 0.002% of the total privacy budget spent while filtering out over 10% of queries directly to the public model without hurting output quality.
Limitations and Future Work
- Finite Query Horizon: Unlike DP-SGD—where model weights are fixed and can serve an infinite number of inferences under the DP post-processing theorem—private decoding accumulates privacy loss with every generated token.
- Inference Latency & Storage: Running an ensemble of $N$ fine-tuned models ($N \in [80, 100]$) alongside a public baseline increases latency and storage, though LoRA adapters significantly mitigate memory constraints.
- Data-Dependent Privacy Leakage: Because the reported $\epsilon(D)$ depends on the data, publishing the final privacy loss value itself requires additional sanitization (e.g., via smooth sensitivity).
Summary updated