Skip to content

Safe RLHF: Safe Reinforcement Learning from Human FeedbackSafe RLHF: Safe Reinforcement Learning from Human Feedback

arXiv· arXiv:2310.12773· Josef Dai, Xuehai Pan, Ruiyang Sun, Jiaming Ji, Xinbo Xu, Mickel Liu, Yizhou Wang, Yaodong Yang·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose Safe RLHF, a safe reinforcement learning algorithm for human value alignment. The algorithm explicitly decouples human preferences for helpfulness and harmlessness, training a reward model and a cost model separately to avoid confusion among annotators when the two objectives conflict, and formulates the safety problem of large language models as an optimization task of maximizing reward under cost constraints, using a Lagrangian method to dynamically adjust the balance between the two objectives during fine-tuning. After three rounds of fine-tuning on Alpaca-7B, the authors report that compared with existing value alignment algorithms, this method improves model performance while further reducing harmful responses, and human evaluation shows significant improvements in both helpfulness and harmlessness of the model.

Read originalarxiv.org