Abstract
Aligning Large Language Models (LLMs) with human values often involves preference data, where models are trained to favor specific responses over others. While Direct Preference Optimization (DPO) has emerged as an efficient alternative to Reinforcement Learning from Human Feedback (RLHF) via Proximal Policy Optimization (PPO), its privacy implications remain under-explored. This paper introduces PREMIA (Preference data Membership Inference Attack), a framework designed to detect if specific preference tuples were used during alignment. Our findings reveal that DPO-aligned models are significantly more vulnerable to membership inference than PPO-aligned models, highlighting a critical privacy-utility trade-off in modern alignment techniques.
Introduction
To ensure LLMs are helpful and safe, developers use human preference data—sets of prompts where one response is labeled as "preferred" and another as "rejected." While the leakage of pre-training data is a known risk, the privacy of the alignment phase is less understood. This research addresses two primary gaps: the privacy trade-off between DPO and PPO, and the lack of attack frameworks tailored to the unique "tuple" structure (Prompt + Chosen Response + Rejected Response) of preference data.
Methodology: The PREMIA Framework
The researchers developed PREMIA (Preference data MIA), a reference-based attack framework. PREMIA assumes an attacker has access to the base model (pre-alignment) and the aligned model. By comparing the probability of a response in the aligned model versus the base model, the attacker calculates a "preference strength" score.
The framework evaluates two types of attacks: MIA_single, which targets individual responses, and MIA_tuple, which targets the entire preference tuple to capture the contextual relationship and the "delta" learned during alignment. Theoretical analysis suggests that DPO's direct optimization on data, without an intermediate reward model, leads to more intense memorization and overfitting compared to PPO.
Key Insights and Results
The empirical evaluation across models like Mistral-7B and Gemma-2-2B reveals a stark contrast in privacy resilience between alignment methods.
DPO vs. PPO Vulnerability
The most significant finding is that DPO is consistently more susceptible to membership inference. While PPO-aligned models maintain AUROC scores near 0.5 (indicating performance close to random guessing), DPO models exhibit high vulnerability.
Overfitting and Task Complexity
DPO models tend to overfit rapidly. On the IMDB sentiment dataset, models could distinguish training members with over 90% accuracy in as little as 0.2 epochs. Furthermore, task complexity influences privacy: for simpler tasks like sentiment analysis, larger models generalize better and are less vulnerable. However, for complex tasks like technical Q&A (Stack Exchange), larger models use their increased capacity to memorize specific preferences, increasing their vulnerability.
Discussion and Limitations
While PREMIA exposes significant gaps, it currently relies on access to the base model, which is more feasible for open-source models than for closed-source systems. Future research should explore "reference-free" attacks and robust mitigation strategies, such as Differentially Private Stochastic Gradient Descent (DP-SGD) or model pruning, to protect sensitive preference data without compromising model performance.
Conclusion
This study serves as a vital warning: the efficiency of DPO comes at a substantial privacy cost. As the industry shifts toward simpler alignment pipelines, integrating privacy-preserving mechanisms becomes essential to safeguard the human feedback that powers modern AI.
Summary updated