Abstract
Differentially Private Stochastic Gradient Descent (DPSGD) is the industry standard for training privacy-preserving language models, yet it often imposes a significant "utility tax," leading to linguistic degradation and reduced output diversity. We introduce DPRefine, a three-phase framework designed to shield models from the destructive effects of DP noise. By combining synthetic data initialization, DP fine-tuning, and a novel self-distillation refinement step, DPRefine reduces linguistic errors by 84% compared to standard DP training. Our results across summarization and paraphrasing tasks show that DPRefine is preferred over vanilla DPSGD in 78.4% of cases, making private models more viable for real-world applications.
Introduction
Training language models on sensitive data, such as medical records or private communications, requires rigorous privacy guarantees. While DPSGD provides these guarantees by clipping gradients and adding noise during training, this process often "breaks" the model's internal representations. This "utility tax" manifests as linguistic degradation (grammar and spelling mistakes), reduced diversity (repetitive outputs), and poor performance on small datasets where noise overwhelms the signal.
The central challenge is achieving high performance in domain-specific tasks using relatively small models without relying on massive private datasets or proprietary pre-trained LLMs. We hypothesize that the linguistic quality of DP models can be preserved by improving the starting point of fine-tuning and implementing a post-training "cleanup" phase that leverages the model's own capabilities.
The DPRefine Framework
DPRefine splits the training process into three distinct phases to mitigate the impact of DP noise:
- Phase 1: Synthetic Initialization: Before accessing any private data, a small public model (e.g., GPT-2 or BioGPT) generates synthetic training pairs. These are passed through a battery of rigorous filters—checking for entailment, grammar, and diversity—to "warm up" a base T5 model for the target domain.
- Phase 2: DP Fine-Tuning: The initialized model is fine-tuned on the actual private dataset using DPSGD. The high-quality initialization from Phase 1 reduces the adaptation "effort" required, though some linguistic artifacts still emerge due to the added noise.
- Phase 3: Self-Distillation Refinement: The DP model generates its own synthetic data, which is filtered again to remove the grammar and spelling errors introduced during Phase 2. The model is then fine-tuned one last time on this "cleaned" version of its own output, effectively self-correcting the linguistic damage.
Experimental Evaluation
We evaluated DPRefine on three benchmark datasets representing distinct tasks: XSum (extreme news summarization), PubMed (technical biomedical summarization), and MRPC (sentence-level paraphrasing). We utilized GPT-2 and BioGPT as synthetic data generators and T5-large as the backbone model.
Results and Discussion
A critical insight from our manual error analysis is that DP noise does not degrade all aspects of a model equally; it specifically targets linguistic fluency, inducing "stuttering" such as missing articles and mis-conjugated verbs. DPRefine successfully buffers against this noise by leveraging the idea that a model can often recognize a high-quality sentence better than it can generate one under noise.
Key findings include:
- Linguistic Quality: Manual annotation confirmed an 84% reduction in linguistic errors compared to standard DPSGD.
- Model Preference: In pairwise comparisons judged by GPT-4 (AlpacaEval), DPRefine was preferred in 78.4% of cases across all datasets.
- Semantic Preservation: On the MRPC task, DPRefine achieved significantly higher BERT-iBLEU scores, indicating superior ability to paraphrase while maintaining original meaning.
- Privacy Integrity: Empirical evaluations via Membership Inference Attacks confirmed that DPRefine maintains the same strong privacy protections as standard DPSGD, despite the extra training phases.
Conclusion
DPRefine demonstrates that robust model initialization and self-distillation can significantly recover the utility lost during private training. While the framework introduces computational overhead due to synthetic data generation and filtering, it proves that trillion-parameter models are not a prerequisite for high-quality, privacy-preserving NLP. Future work will explore scaling this pipeline to complex reasoning tasks and even larger foundational models.
Summary updated