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.
About rectified sigmoid function for enhancing the accuracy of Physics-Informed Neural Networks
University of Nizhny Novgorod(下诺夫哥罗德国立大学);Huawei Nizhny Novgorod Research Center(华为下诺夫哥罗德研究中心);Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究院)
Enhancing Autonomous Vehicle Training with Language Model Integration and Critical Scenario Generation
Imperial College London(帝国理工学院);Centre for Transport Engineering and Modelling(交通工程与建模中心);Department of Civil and Environmental Engineering(土木与环境工程系);Personal Robotics Laboratory(个人机器人实验室)
Enhancing Efficiency of Safe Reinforcement Learning via Sample Manipulation
University of California, Berkeley(加州大学伯克利分校);Technical University of Munich(慕尼黑工业大学);California Institute of Technology(加州理工学院);Virginia Tech(弗吉尼亚理工大学)
Delta Rectified Flow Sampling for Text-to-Image Editing
Harvard AI and Robotics Lab, Harvard University(哈佛大学人工智能与机器人实验室);Computer Science Department, Harvard University(哈佛大学计算机科学系);Multimodal Intelligence and Perception Lab, DGIST(大邱庆北科学技术院多模态智能与感知实验室);Kempner Institute for the Study of Natural and Artificial Intelligence, Harvard University(哈佛大学肯普纳自然与人工智能研究所)
LLM-attacker: Enhancing Closed-loop Adversarial Scenario Generation for Autonomous Driving with Large Language Models
Department of Traffic Engineering and Key Laboratory of Road and Traffic Engineering, Ministry of Education, Tongji University(交通工程系和道路与交通工程重点实验室、教育部长江大学);Department of Civil & Environmental Engineering, The Hong Kong Polytechnic University(土木及环境工程系、香港理工大学)
Enhancing Reliability of Neural Networks at the Edge: Inverted Normalization with Stochastic Affine Transformations
Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Univ. Grenoble Alpes, CEA, CNRS, Grenoble INP, and IRIG-Spintec(格勒诺布尔阿尔卑斯大学、法国原子能委员会、法国国家科学研究中心、格勒诺布尔国立理工学院及IRIG-Spintec)