Lune

NeurIPS2025Top-tier venue

Enhancing Safety in Reinforcement Learning with Human Feedback via Rectified Policy Optimization

Xiyue Peng, Hengquan Guo, Jiawei Zhang, Dongqing Zou, Ziyu Shao, Honghao Wei, Xin Liu

Abstract

Balancing helpfulness and safety (harmlessness) is a critical challenge in aligning large language models (LLMs). Current approaches often decouple these two objectives, training separate preference models for helpfulness and safety, while framing safety as a constraint within a constrained Markov Decision Process (CMDP) framework. This paper identifies a potential issue when using the widely adopted expected safety constraints for LLM safety alignment, termed "safety compensation", where the constraints are satisfied on expectation, but individual prompts may trade off safety, resulting in some responses being overly restrictive while others remain unsafe. To address this issue, we propose Rectified Policy Optimization (RePO), which replaces the expected safety constraint with critical safety constraints imposed on every prompt. At the core of RePO is a policy update mechanism driven by rectified policy gradients, which penalizes the strict safety violation of every prompt, thereby enhancing safety across nearly all prompts. Our experiments demonstrate that RePO outperforms strong baseline methods and significantly enhances LLM safety 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.

4 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

  • Alignment of Large Language Models with Constrained Learning cites PAL: Program-aided Language Models
  • Alignment of Large Language Models with Constrained Learning cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Alignment of Large Language Models with Constrained Learning cites TruthfulQA: Measuring How Models Mimic Human Falsehoods
  • Alignment of Large Language Models with Constrained Learning cites Training language models to follow instructions with human feedback
  • Keep the Best, Forget the Rest: Reliable Alignment with Order-Aware Preference Optimization cites PAL: Program-aided Language Models
  • Keep the Best, Forget the Rest: Reliable Alignment with Order-Aware Preference Optimization cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Keep the Best, Forget the Rest: Reliable Alignment with Order-Aware Preference Optimization cites Training language models to follow instructions with human feedback
  • 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 Learning Safety Constraints for Large Language Models
  • Mitigating the Safety Alignment Tax with Null-Space Constrained Policy 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
  • TruthfulQA: Measuring How Models Mimic Human Falsehoods cites Training language models to follow instructions with human feedback
  • Training language models to follow instructions with human feedback cites TruthfulQA: Measuring How Models Mimic Human Falsehoods
  • Training language models to follow instructions with human feedback cites Extracting Training Data from Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  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. Alignment of Large Language Models with Constrained LearningBotong Zhang, Shuo Li, Ignacio Hounie, Osbert Bastani et al.NeurIPS 2025 · 12 citations
  3. Keep the Best, Forget the Rest: Reliable Alignment with Order-Aware Preference OptimizationJiahui Zhu, Yuanjie Shi, Xiyue Peng, Xin Liu et al.ICLR 2026
  4. Learning Safety Constraints for Large Language ModelsXin Chen, Yarden As, Andreas KrauseICML 2025

Builds on25

  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. TruthfulQA: Measuring How Models Mimic Human FalsehoodsStephanie Lin, Jacob Hilton, Owain EvansACL 2022 · 3,228 citations
  4. Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski et al.USENIX Security 2021 · 2,866 citations
  5. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations

Related papers

  1. SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced SafetyGeon-Hyeong Kim, Yu Jin Kim, Byoungjip Kim, Honglak Lee et al.ICLR 2026 · 42 citations
  2. MidPO: Dual Preference Optimization for Safety and Helpfulness in Large Language Models via a Mixture of Experts FrameworkYupeng Qi, Ziyu Lyu, Min Yang, Yanlin Wang et al.EMNLP Findings 2025
  3. On Prompt-Driven Safeguarding for Large Language ModelsChujie Zheng, Fan Yin, Hao Zhou, Fandong Meng et al.ICML 2024 · 116 citations
  4. Efficient Safety Alignment of Large Language Models via Preference Re-ranking and Representation-based Reward ModelingQiyuan Deng, Xuefeng Bai, Kehai Chen, Yaowei Wang et al.ACL 2025
  5. DeAL: Decoding-time Alignment for Large Language ModelsJames Y. Huang, Sailik Sengupta, Daniele Bonadiman, Yi-An Lai et al.ACL 2025
Dusk over the sea between two cliffs drawn in fine vertical lines