SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety
Geon-Hyeong Kim (LG AI Research), Yu Jin Kim, Byoungjip Kim, Honglak Lee, Kyunghoon Bae, Youngsoo Jang, Moontae Lee
International Conference on Learning Representations 2026 · Oral
Overview
The talk "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety," presented by Geon-Hyeong Kim from LG AI Research, introduces a novel and streamlined method for achieving robust safety alignment in large language models (LLMs). The core premise of SafeDPO challenges the conventional wisdom that effective safety mechanisms necessitate complex multi-stage pipelines involving reward models, cost models, or intricate reinforcement learning from human feedback (RLHF) setups. Instead, SafeDPO demonstrates that safety alignment can be elegantly reduced to a Direct Preference Optimization (DPO)-style objective, directly enforcing a hard safety constraint through a clever transformation of preference data.

Key moments
- 0:00 Introduction: Simplifying safety alignment with DPO
- 2:00 SafeDPO's core idea: Safety-aware preference transformation
- 3:20 Deriving SafeDPO from the hard safety constraint
- 4:30 Main results: Near-perfect safety and competitive helpfulness
- 5:10 Strict safety's trade-off: Increased over-refusal
- 6:00 Conclusion: Simplicity and conservativeness of strict safety
- 6:40 Q&A: How helpfulness factors into SafeDPO
SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety
Speakers: Geon-Hyeong Kim (LG AI Research); Yu Jin Kim; Byoungjip Kim; Honglak Lee; Kyunghoon Bae; Youngsoo Jang; Moontae Lee
Conference: ICLR 2026
YouTube: https://slideslive.com/39062211
Overview
The talk "SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safety," presented by Geon-Hyeong Kim from LG AI Research, introduces a novel and streamlined method for achieving robust safety alignment in large language models (LLMs). The core premise of SafeDPO challenges the conventional wisdom that effective safety mechanisms necessitate complex multi-stage pipelines involving reward models, cost models, or intricate reinforcement learning from human feedback (RLHF) setups. Instead, SafeDPO demonstrates that safety alignment can be elegantly reduced to a Direct Preference Optimization (DPO)-style objective, directly enforcing a hard safety constraint through a clever transformation of preference data.
This research is particularly significant given the increasing importance of deploying safe and responsible AI systems. Current approaches often incur substantial computational costs and algorithmic complexity due to their reliance on auxiliary models and iterative optimization stages. SafeDPO offers a principled alternative by revisiting the fundamental goal of safety: assigning zero probability to unsafe responses while maximizing helpfulness among safe ones. By achieving near-perfect safety with competitive helpfulness using a simplified framework, SafeDPO presents a compelling case for a more efficient and tractable paradigm in safety alignment.
The contribution of SafeDPO lies in its ability to enforce a strict safety policy without the overhead typically associated with such guarantees. The method's simplicity—requiring only preference data and safety indicators—makes it highly appealing for practitioners aiming to develop safer LLMs without significantly escalating development resources. While acknowledging an inherent trade-off where strict safety can lead to increased conservativeness and over-refusal on borderline prompts, SafeDPO fundamentally shifts the conversation around safety alignment towards more direct and less resource-intensive solutions.
Background
▶ Watch: Introduction: Simplifying safety alignment with DPO (0:00)
The pervasive deployment of large language models across various domains has underscored the critical need for robust safety alignment. The primary objective of safety alignment is twofold: first, to ensure that LLMs never generate unsafe responses, effectively assigning them zero probability; and second, to maximize the helpfulness of responses among the remaining safe options. This is not merely a trade-off between safety and helpfulness, but rather a prioritized constraint optimization problem where safety is paramount. The model must avoid trivial solutions, such as always refusing to answer, which would satisfy the safety constraint but fail on helpfulness.
Historically, addressing this hard safety constraint has proven challenging. Most existing methods relax this strict requirement into an expected cost objective. This relaxation typically necessitates the introduction of additional components such as reward models (RMs), cost models (CMs), or complex multi-stage optimization procedures, often rooted in Reinforcement Learning from Human Feedback (RLHF) paradigms. While these approaches have shown success, they inherently increase both the computational cost and algorithmic complexity of the alignment process. Training and maintaining accurate reward and cost models, along with managing the intricacies of online reinforcement learning, demand significant resources and expertise. This complexity poses a barrier for many organizations and researchers aiming to implement robust safety measures.
The problem, therefore, revolves around finding a tractable method to directly enforce the hard safety constraint—completely excluding unsafe responses—while still optimizing for helpfulness among safe outputs, all without incurring the heavy overhead of multi-stage, model-dependent pipelines. The existing landscape of safety alignment, exemplified by methods like SafeRLHF and SACPO, often grapples with this complexity, seeking to balance safety and helpfulness through intricate design choices. SafeDPO emerges from this context by questioning the necessity of such complexity, proposing a return to the foundational objective through a simplified, principled approach.
Key Findings
▶ Watch: Deriving SafeDPO from the hard safety constraint (3:20)
SafeDPO presents several pivotal findings that challenge conventional wisdom in safety alignment for large language models:
- Simplification of Safety Alignment: The most significant finding is that effective safety alignment does not inherently require complex, multi-stage pipelines. SafeDPO demonstrates that the problem can be reduced to a simple Direct Preference Optimization (DPO)-style objective by directly enforcing a hard safety constraint. This drastically cuts down on algorithmic complexity and computational cost.
- Direct Enforcement of Hard Safety Constraint: Unlike previous methods that relax the hard safety constraint into an expected cost objective, SafeDPO directly tackles the original problem. It ensures that unsafe responses are completely excluded, while among the remaining safe responses, helpfulness is maximized. This is achieved through a novel safety-aware transformation of preference data.
- Elimination of Auxiliary Models and Multi-Stage RL: A key contribution is that SafeDPO entirely bypasses the need for auxiliary components such as reward models, cost models, or multi-stage Reinforcement Learning (RL). The method only requires preference data explicitly labeled with safety indicators, simplifying the data requirements and training pipeline.
- Near-Perfect Safety with Competitive Helpfulness: Empirically, SafeDPO achieves outstanding safety performance. In model-based evaluations on the SafeRLHF dataset, it reaches approximately a 97% harmless ratio, and an even higher 100% harmless ratio in GPT-based evaluation. Crucially, this high safety is maintained while preserving competitive helpfulness compared to other safety alignment methods.
- Effectiveness of Data Transformation over Simple Filtering: The research explicitly shows that the safety-aware transformation is not merely a filtering process. Baselines like DPO-Safe-Filter, which apply simple filtering, do not achieve similar levels of safety, underscoring that the reconstruction of the preference structure implied by the optimal policy is critical.
- Role of Safety Margin Data: While the core transformation provides the main benefit, the introduction of safety margin data offers additional control. This data helps increase the separation between safe and unsafe responses without altering the optimal solution, allowing for fine-tuning of the safety-helpfulness trade-off. Even without this margin data, SafeDPO achieves strong safety, indicating the primary strength lies in the transformation itself.
- Inherent Trade-off with Conservativeness: SafeDPO highlights an intrinsic trade-off: strict safety leads to increased conservativeness. On the XSTEST dataset, which measures over-refusal, SafeDPO's complete suppression of unsafe outputs comes with a higher over-refusal rate on borderline but safe prompts. This implies that while complexity isn't necessarily increased for strict safety, conservativeness is.
Technical Deep Dive
▶ Watch: Main results: Near-perfect safety and competitive helpfulness (4:30)
The technical core of SafeDPO revolves around its innovative approach to enforcing a hard safety constraint through a safety-aware transformation of preference data, which then enables the application of standard Direct Preference Optimization (DPO). The key insight is to restructure the preference data in a way that inherently reflects the desired policy: safe and helpful responses are most preferred, safe but unhelpful responses are less preferred, and unsafe responses are completely excluded.
The goal is to achieve an optimal policy that assigns zero probability to unsafe responses while maximizing helpfulness among safe ones. This translates to a specific ordering: P(safe & helpful) > P(safe & unhelpful) and P(unsafe) = 0. SafeDPO achieves this by starting from the original hard constraint optimization problem. The authors demonstrate that this constraint can be mathematically rewritten as an equivalent unconstrained formulation. From this unconstrained problem, a DPO-style objective can be derived. However, this initial DPO objective is still intractable.
To overcome this intractability, SafeDPO introduces its central mechanism: the safety-aware transformation of preference pairs. This transformation is applied to the raw preference data ((prompt, chosen_response, rejected_response)) alongside safety indicators for each response. The transformation rules are precise:
- Safe-Safe Pairs: If both the chosen and rejected responses are deemed safe, the preference pair remains unchanged. The model simply learns to prefer the more helpful safe response as originally indicated.
- Safe-Unsafe Pairs: If one response is safe and the other is unsafe, the pair is reordered (if necessary) such that the safe response is always designated as preferred, and the unsafe response as rejected. This directly encodes the priority of safety.
- Unsafe-Unsafe Pairs: If both responses are unsafe, the pair is entirely excluded from the training data. This ensures that the model does not learn preferences among unsafe options, reinforcing the goal of zero probability for any unsafe output.
After this meticulous transformation, the now "safety-aligned" preference dataset is fed into a standard Direct Preference Optimization (DPO) algorithm. DPO, at its heart, is a simpler, more stable alternative to RLHF that directly optimizes a policy to maximize the log-probability of preferred responses over rejected ones, effectively learning human preferences without an explicit reward model. By applying DPO to the transformed data, SafeDPO implicitly learns the optimal policy that adheres to the hard safety constraint.
The authors emphasize that this is not mere filtering. The transformation actively reconstructs the preference structure implied by the optimal policy. This is critical because simple filtering (e.g., removing all unsafe pairs) would not actively teach the model to prefer safe options over unsafe ones when both are present in a choice, nor would it guarantee the desired ordering.
Furthermore, SafeDPO introduces safety margin data. This mechanism is designed to increase the separation between the log-probabilities of safe and unsafe responses. While the transformation itself is shown to be highly effective, the safety margin data provides an additional knob for control. It does not change the theoretical optimal solution but can empirically enhance the robustness of safety by making the model even more decisive in its preference for safe outputs. This margin can be adjusted to influence the safety-helpfulness trade-off, allowing for more aggressive safety postures if desired.
Regarding the distinction between helpful and unhelpful safe responses, the talk clarifies that the helpfulness component comes from the existing preferences within the original dataset. The safety-aware transformation primarily focuses on the safety dimension (safe vs. unsafe). The DPO objective, applied to the transformed data, then leverages both the safety-induced preferences and the inherent helpfulness preferences present in the dataset to guide the model towards responses that are both safe and helpful.
Experimental Setup & Results
▶ Watch: Conclusion: Simplicity and conservativeness of strict safety (6:00)
To validate the efficacy of SafeDPO, a comprehensive experimental setup was devised, employing established datasets and metrics, and comparing against leading baselines.
Datasets:
The primary dataset used for training and evaluation was the SafeRLHF dataset. This dataset is specifically designed for safety alignment research and includes indicators for response safety. For evaluating the critical trade-off of over-refusal, the XSTEST dataset was utilized. XSTEST is known for testing a model's tendency to reject prompts, particularly those that are borderline safe, providing a measure of conservativeness.
Metrics:
Three key metrics were employed to assess performance:
- Harmless Ratio: This metric quantifies the proportion of generated responses that are deemed safe, directly measuring the model's adherence to the safety constraint.
- Helpfulness: This metric evaluates the utility and quality of the generated responses, ensuring that safety is not achieved at the expense of functionality.
- Over-refusal Ratio: Specifically measured on the XSTEST dataset, this metric indicates how often the model refuses to answer prompts that are potentially safe but borderline, highlighting the conservativeness introduced by strict safety.
Evaluation Methods:
Both model-based metrics and GPT-based judges were used for evaluation. Model-based metrics offer a quantitative, automated assessment, while GPT-based judges provide a more nuanced, human-like qualitative evaluation, often considered a stronger proxy for human perception.
Baselines:
SafeDPO was benchmarked against several prominent safety alignment methods and DPO variants:
- SafeRLHF: A well-known method in safety alignment that typically involves multi-stage RLHF.
- SACPO: Another safety alignment technique.
- DPO-based variants: These included DPO-Safe-Filter, a crucial baseline designed to test whether simple filtering of unsafe responses alone could achieve similar safety levels.
Headline Results:
- Safety Performance (SafeRLHF dataset):
- SafeDPO achieved near-perfect safety. On the SafeRLHF dataset, it reached approximately a 97% harmless ratio in model-based evaluation.
- Remarkably, in GPT-based evaluation, SafeDPO achieved a 100% harmless ratio, indicating complete suppression of unsafe outputs as perceived by a powerful LLM judge.
- Crucially, SafeDPO maintained competitive helpfulness compared to other safety alignment methods, demonstrating that its stringent safety does not come at a significant performance cost.
- The DPO-Safe-Filter baseline, which only applied simple filtering, did not achieve similar safety levels, providing strong evidence that the sophisticated safety-aware transformation of preference data in SafeDPO is essential, not just simple data pruning.
- Over-refusal (XSTEST dataset):
- On the XSTEST dataset, SafeDPO effectively completely suppressed unsafe outputs.
- However, this strict safety came with a higher over-refusal ratio. This result highlights the inherent trade-off: borderline but safe prompts were more likely to be rejected by SafeDPO. This confirms that while SafeDPO avoids algorithmic complexity, it introduces conservativeness.
- Effect of Safety Margin Data:
- Experiments analyzing the safety margin data showed that SafeDPO already achieved strong safety even without this component.
- As the amount of safety margin data was increased, SafeDPO quickly reached near 100% safety.
- However, increasing the safety margin data too much could lead to a decrease in helpfulness. This suggests that while the safety margin data provides additional control and fine-tuning capabilities, the primary benefit and core safety guarantee stem from the safety-aware transformation itself.
In summary, the experimental results robustly support SafeDPO's claims: it delivers exceptional safety performance with competitive helpfulness, validating its simplified, DPO-style objective. The findings also clearly delineate the critical role of the safety-aware transformation and underscore the unavoidable trade-off between strict safety and potential over-refusal.
Practical Implications
▶ Watch: Q&A: How helpfulness factors into SafeDPO (6:40)
SafeDPO presents several profound practical implications for various stakeholders involved in the development and deployment of AI/ML systems.
For practitioners and infrastructure teams, SafeDPO offers a significant simplification of the safety alignment pipeline. The elimination of complex components like reward models, cost models, and multi-stage Reinforcement Learning from Human Feedback (RLHF) processes translates directly into reduced computational cost and algorithmic complexity. This means less GPU time, fewer specialized engineers needed for intricate RL setups, and a faster iteration cycle for developing and deploying safe models. Teams can leverage existing Direct Preference Optimization (DPO) frameworks, which are generally more stable and easier to implement than full RL pipelines, to achieve robust safety guarantees.
For model builders and researchers, SafeDPO provides a principled and effective method to infuse hard safety constraints into their models without reinventing the wheel of complex alignment techniques. The ability to achieve near-perfect safety (97-100% harmless ratio) with competitive helpfulness using just preference data and safety indicators is a game-changer. This lowers the barrier to entry for developing safer LLMs and allows researchers to focus on other aspects of model improvement rather than grappling with the intricacies of RL-based safety. It also suggests that future research into safety alignment might productively explore more direct data transformations rather than relying on auxiliary models.
However, SafeDPO also highlights critical trade-offs and limitations that practitioners must consider. The most prominent is that strict safety inherently leads to increased conservativeness and potential over-refusal, particularly on borderline prompts. While SafeDPO achieves its safety goals without adding algorithmic complexity, it necessitates a careful balance between safety and utility. In applications where a high degree of helpfulness on edge cases is paramount, model builders might need to tune the safety margin or accept a slightly lower safety threshold to reduce over-refusal. For mission-critical applications where any unsafe output is unacceptable, the increased conservativeness might be a necessary and acceptable compromise.
Another practical consideration is the reliance on accurate safety indicators within the preference data. The quality and reliability of these labels are paramount, as the entire transformation process hinges on correctly identifying safe and unsafe responses. Investing in robust data labeling processes or leveraging advanced techniques for automatically identifying unsafe content will be crucial for maximizing SafeDPO's effectiveness.
In essence, SafeDPO empowers teams to achieve a high degree of safety with greater efficiency. It encourages a shift towards simpler, data-driven approaches for alignment, while simultaneously forcing a clear-eyed evaluation of the inherent trade-offs between absolute safety and model responsiveness.
Key Takeaways
- Safety Alignment Simplification: SafeDPO demonstrates that effective safety alignment can be achieved with a simple Direct Preference Optimization (DPO)-style objective, challenging the need for complex multi-stage pipelines.
- Direct Hard Constraint Enforcement: The method directly enforces a hard safety constraint by assigning zero probability to unsafe responses through a novel safety-aware transformation of preference data.
- Reduced Complexity and Cost: SafeDPO eliminates the need for auxiliary components like reward models, cost models, or multi-stage Reinforcement Learning (RL), significantly reducing computational cost and algorithmic complexity.
- High Safety and Competitive Helpfulness: Empirically, SafeDPO achieves near-perfect safety (97-100% harmless ratio) on the SafeRLHF dataset while maintaining competitive helpfulness.
- Transformation over Filtering: The core safety-aware transformation is crucial for reconstructing the optimal preference structure; simple filtering alone (DPO-Safe-Filter) is insufficient to achieve comparable safety.
- Trade-off: Strict Safety vs. Conservativeness: While simple, strict safety in SafeDPO leads to increased conservativeness and a higher over-refusal ratio on borderline prompts, especially evident on the XSTEST dataset.
About the Speaker(s)
The talk was presented by Geon-Hyeong Kim of LG AI Research. He was joined by co-authors Yu Jin Kim, Byoungjip Kim, Honglak Lee, Kyunghoon Bae, Youngsoo Jang, and Moontae Lee, all contributing to this significant work on safety alignment in large language models. The presentation primarily focused on the technical details and empirical results of their proposed SafeDPO method.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026