Lune

ICML2025Top-tier venue

Improving LLM Safety Alignment with Dual-Objective Optimization

Xuandong Zhao, Will Cai, Tianneng Shi, David Huang, Licong Lin, Song Mei, Dawn Song

Abstract

Existing training-time safety alignment techniques for large language models (LLMs) remain vulnerable to jailbreak attacks. Direct preference optimization (DPO), a widely deployed alignment method, exhibits limitations in both experimental and theoretical contexts as its loss function proves suboptimal for refusal learning. Through gradient-based analysis, we identify these shortcomings and propose an improved safety alignment that disentangles DPO objectives into two components: (1) robust refusal training, which encourages refusal even when partial unsafe generations are produced, and (2) targeted unlearning of harmful knowledge. This approach significantly increases LLM robustness against a wide range of jailbreak attacks, including prefilling, suffix, and multi-turn attacks across both in-distribution and out-of-distribution scenarios. Furthermore, we introduce a method to emphasize critical refusal tokens by incorporating a reward-based tokenlevel weighting mechanism for refusal learning, which further improves the robustness against adversarial exploits. Our research also suggests that robustness to jailbreak attacks is correlated with token distribution shifts in the training process and internal representations of refusal and harmful tokens, offering valuable directions for future research in LLM safety alignment. The code is available at https://github.com/ wicai24/DOOR-Alignment .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Improving Alignment and Robustness with Circuit Breakers cites Measuring Massive Multitask Language Understanding
  • Improving Alignment and Robustness with Circuit Breakers cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Improving Alignment and Robustness with Circuit Breakers cites Training language models to follow instructions with human feedback
  • Improving Alignment and Robustness with Circuit Breakers cites AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • Mitigating the Safety Alignment Tax with Null-Space Constrained Policy Optimization cites Measuring Massive Multitask Language Understanding
  • Mitigating the Safety Alignment Tax with Null-Space Constrained Policy Optimization cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Mitigating the Safety Alignment Tax with Null-Space Constrained Policy Optimization cites Training language models to follow instructions with human feedback
  • Offline RL by Reward-Weighted Fine-Tuning for Conversation Optimization cites Measuring Massive Multitask Language Understanding
  • Offline RL by Reward-Weighted Fine-Tuning for Conversation Optimization cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Offline RL by Reward-Weighted Fine-Tuning for Conversation Optimization cites Training language models to follow instructions with human feedback
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Model Unlearning via Sparse Autoencoder Subspace Guided Projections cites Measuring Massive Multitask Language Understanding
  • Toward Safer Diffusion Language Models: Discovery and Mitigation of Priming Vulnerability cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Toward Safer Diffusion Language Models: Discovery and Mitigation of Priming Vulnerability cites Training language models to follow instructions with human feedback
  • Toward Safer Diffusion Language Models: Discovery and Mitigation of Priming Vulnerability cites AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • When Grammar Guides the Attack: Uncovering Control-Plane Vulnerabilities in LLMs with Structured Output cites Improving Alignment and Robustness with Circuit Breakers
  • When Grammar Guides the Attack: Uncovering Control-Plane Vulnerabilities in LLMs with Structured Output cites AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Mitigating the Safety Alignment Tax with Null-Space Constrained Policy OptimizationYifan Niu, Han Xiao, Dongyi Liu, Nuo Chen et al.ICLR 2026 · 13 citations
  2. Offline RL by Reward-Weighted Fine-Tuning for Conversation OptimizationSubhojyoti Mukherjee, Viet Dac Lai, Raghavendra Addanki, Ryan Rossi et al.NeurIPS 2025 · 12 citations
  3. Model Unlearning via Sparse Autoencoder Subspace Guided ProjectionsXu Wang, Zihao Li, Benyou Wang, Yan Hu et al.EMNLP 2025 · 9 citations
  4. Toward Safer Diffusion Language Models: Discovery and Mitigation of Priming VulnerabilityShojiro Yamabe, Jun SakumaICLR 2026 · 9 citations
  5. When Grammar Guides the Attack: Uncovering Control-Plane Vulnerabilities in LLMs with Structured OutputShuoming Zhang, Jiacheng Zhao, Hanyuan Dong, Ruiyuan Xu et al.CCS 2026 · 6 citations

Builds on16

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  3. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  4. AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language ModelsXiaogeng Liu, Nan Xu, Muhao Chen, Chaowei XiaoICLR 2024 · 722 citations
  5. Improving Alignment and Robustness with Circuit BreakersAndy Zou, Long Phan, Justin Wang, Derek Duenas et al.NeurIPS 2024 · 362 citations

Related papers

  1. Beyond Surface Alignment: Rebuilding LLMs Safety Mechanism via Probabilistically Ablating Refusal DirectionYuanbo Xie, Yingjie Zhang, Tianyun Liu, Duohe Ma et al.EMNLP Findings 2025 · 2 citations
  2. Alignment-Weighted DPO: A principled reasoning approach to improve safety alignmentMengxuan Hu, Vivek V. Datla, Anoop Kumar, Zihan Guan et al.ICLR 2026 · 3 citations
  3. Adversary-Aware DPO: Enhancing Safety Alignment in Vision Language Models via Adversarial TrainingFenghua Weng, Jian Lou, Jun Feng, Minlie Huang et al.EMNLP Findings 2025 · 3 citations
  4. TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language ModelsZhi Xu, Jiaqi Li, Xiaotong Zhang, Hong Yu et al.ICLR 2026 · 2 citations
  5. On the Vulnerability of Safety Alignment in Open-Access LLMsJingwei Yi, Rui Ye, Qisi Chen, Bin Zhu et al.ACL Findings 2024 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines