Abstract
Sharing sensitive textual datasets, such as medical records or customer communications, poses significant privacy risks. This paper introduces a novel framework for generating "synthetic twin" datasets using large language models (LLMs) trained with global differential privacy (DP). By combining DP-fine-tuning with a specialized "prompt-mismatch loss," the proposed method produces shareable synthetic data that preserves the utility of the original records for downstream classification tasks while providing rigorous formal privacy guarantees.
Introduction
Traditional text anonymization techniques, such as redacting personally identifiable information (PII), are often vulnerable to de-anonymization attacks. While Local Differential Privacy (LDP) offers a more robust mathematical defense by adding noise to individual records, it frequently results in incoherent "word salad" that lacks research utility.
This research shifts the focus to Global Differential Privacy. Instead of perturbing individual sentences, the authors protect the entire dataset during the model training process. The objective is to create a generative model—a "DP LLM"—capable of producing synthetic data that mirrors the statistical distribution of the sensitive source without leaking specific private information.
Methodology
The proposed pipeline consists of three primary stages designed to decouple data utility from individual identity:
- Prompt-Based Fine-tuning: A pre-trained GPT-2 model is fine-tuned on the sensitive dataset using natural language prompts (e.g., "Write a [positive] review about [electronics]:").
- Differentially Private Optimization: The training process utilizes DP-Adam, an optimizer that clips gradients and injects Gaussian noise. This ensures the model weights do not overfit to any single individual's contribution.
- Prompt-Mismatch Loss: To improve the quality of the synthetic output, the authors introduce a loss term that penalizes the model for generating text inconsistent with its prompt. This reduces "label noise," ensuring that a prompt for a positive review actually generates positive sentiment.
Once the DP LLM is trained, it is used to sample thousands of synthetic records. These records can be shared with third parties for training downstream classifiers without exposing the original sensitive data.
Experimental Evaluation
The approach was evaluated on two major NLP benchmarks: the IMDb Movie Reviews dataset (binary sentiment) and the Amazon Multi-Domain Reviews dataset (sentiment and product category classification).
Key Insights
- Generative vs. Discriminative DP: A major finding is that training a classifier on synthetic data from a DP-LLM often outperforms training a classifier directly on real data using DP-SGD. The LLM acts as a "denoiser," leveraging its massive pre-trained knowledge to maintain coherence despite the DP noise.
- Few-Shot Efficiency: The method remains effective even with extremely limited sensitive data. Synthetic datasets generated from as few as 25 private samples were sufficient to train high-performing classifiers.
Results and Discussion
The synthetic data approach consistently demonstrated high utility across various privacy budgets (measured by $\epsilon$). Classifiers trained on synthetic data achieved accuracies within approximately 3% of those trained on non-private data.
As shown in the results, even with a strict privacy budget of $\epsilon=3$, a BERT classifier reached 88.3% accuracy on IMDb, compared to a 90.9% baseline on real data. Furthermore, "trigram duplicate" tests confirmed that DP-trained models were significantly less likely to memorize and regurgitate specific sequences from the training set than non-private models.
Conclusion and Future Work
While this framework significantly mitigates the privacy-utility trade-off, challenges remain. DP is a statistical guarantee, and for extremely sensitive data (e.g., containing passwords), risks are minimized but not zero. Future research will focus on scaling the method to handle complex, overlapping attributes and extending the generative bottleneck approach to multimodal datasets involving images and tabular data.
Summary updated