TL;DR
This paper introduces DPPrefSyn, a novel algorithm that generates differentially private synthetic preference data for aligning large language models (LLMs). This is crucial for protecting sensitive user data while still enabling LLMs to learn human values, offering a practical alternative to using raw, potentially compromising preference datasets.
What Problem Does This Paper Address?
Aligning LLMs with human preferences is essential for making them helpful and harmless. This is typically done using human feedback data, which often includes sensitive user prompts and judgments. Directly using this data for LLM training raises significant privacy concerns, as it could expose personal information or private beliefs. While some methods offer partial privacy protection (e.g., for prompts or labels), they often leave privacy gaps. Furthermore, collecting and annotating preference data is expensive and time-consuming, and existing privacy-preserving methods may not be compatible with newer alignment techniques like Direct Preference Optimization (DPO) or may sacrifice too much utility for privacy. This paper addresses the challenge of generating high-quality, privacy-preserving synthetic preference data that can be used for LLM alignment without compromising user privacy.
Methods
DPPrefSyn tackles this problem through a three-step process:
- Preference Representation and Clustering: It first represents preference samples as "embedding differences" between preferred and dispreferred responses, capturing the essence of human judgment. To handle the high dimensionality of these embeddings, it employs Differentially Private Principal Component Analysis (DP-PCA) for dimensionality reduction. Then, Differentially Private K-Means (DP-KMeans) is used to cluster these lower-dimensional representations, grouping users with similar preference patterns. This clustering allows for modeling heterogeneous preferences.
- DP Reward Model Training: For each identified cluster, a linear reward model is trained using Differentially Private Stochastic Gradient Descent (DP-SGD). This approach leverages the Bradley-Terry preference model and assumes a linear structure for latent reward functions, balancing expressiveness with tractability.
- DP Synthetic Preference Generation: Finally, DPPrefSyn uses publicly available prompts. For each public prompt, it generates multiple candidate responses using an LLM. It then uses the privately trained reward models to score these responses and synthesizes preference pairs by selecting the highest and lowest-scoring responses. This strategy conserves the privacy budget by not synthesizing prompts, focusing it entirely on modeling preferences.
Datasets
The paper evaluates DPPrefSyn on several standard datasets:
- OpenAssistant: A human-generated, human-annotated assistant-style conversation corpus.
- Anthropic-HH: A dataset containing human preference annotations for helpfulness and harmlessness.
- TL;DR: A dataset of human preference annotations over pairs of summaries.
For public prompts, they utilize data from:
- Alpaca: Instruction-following examples.
- SafeRLHF: Prompts for safety alignment.
- XSum: Documents for summarization.
Key Insights and Ideas
- Synthetic Data as a Privacy Enabler: The core idea is that generating synthetic preference data can act as a privacy shield. By training on this synthetic data, LLMs can learn human preferences without ever directly seeing the sensitive original data, thus preserving user privacy.
- Clustering for Diverse Preferences: Human preferences are not monolithic. DPPrefSyn's approach of clustering users based on their preference patterns and training separate reward models for each cluster is key to capturing this diversity, leading to better alignment.
- DP-PCA for Efficiency: High-dimensional embeddings are common, but learning in such spaces is sample-inefficient, especially with limited private data. DP-PCA effectively reduces dimensionality while preserving privacy, making clustering and model training more feasible.
- Public Prompts for Budget Conservation: Using public prompts to generate synthetic preference pairs is a clever way to save the precious privacy budget. This allows the budget to be focused on learning the private preference model itself, rather than on generating private prompts.
Key Results
- Competitive Utility under Strong DP: DPPrefSyn consistently achieves competitive alignment performance under strong differential privacy guarantees (e.g., ε=2).
- Outperforms DP-FT: DPPrefSyn significantly outperforms direct differentially private fine-tuning (DP-FT) on real private data, even achieving better results than non-private fine-tuning (DP-FT with ε=∞) while maintaining privacy. For instance, on Anthropic-HH with ε=2, DPPrefSyn achieved a 56.48% win rate, compared to DP-FT's 37.02%.
- Robustness to Privacy Budget: The method shows good scalability as the privacy budget (ε) increases.
- Effective Across Methods and Models: DPPrefSyn is shown to be effective with various alignment methods (SFT, DPO, PPO) and downstream LLMs (Pythia, Qwen, Gemma, Llama).
- Mitigates Privacy Attacks: Empirical evaluations show DPPrefSyn is more robust to membership inference attacks than DP-FT.
- Benefit of Design Choices: Ablation studies confirm the importance of DP-KMeans for capturing diverse preferences and DP-PCA for efficient feature extraction.
Limitations and Future Work
- API Dependency: DPPrefSyn requires access to LLM APIs for generating synthetic responses, which can incur costs.
- Language Specificity: The current work focuses on English text-based preference data. Extending DPPrefSyn to multilingual settings and multimodal data is an open direction.
- Model Size Constraints: Experiments were conducted on models up to 8B parameters due to computational limitations.
- Future Work: The authors suggest exploring multilingual and multimodal extensions, as well as investigating more computationally efficient methods.
Summary updated