Skip to content

RRHF: Easily aligning language models with human feedback by ranking responsesRRHF: Rank Responses to Align Language Models with Human Feedback without tears

arXiv· arXiv:2304.05302· Zheng Yuan, Hongyi Yuan, Chuanqi Tan, Wei Wang, Songfang Huang, Fei Huang·Indexed by this site · 26 days ago· Originally publishedAlignment
AI summary

The researchers propose the RRHF training paradigm, which aligns language models with human preferences through a ranking loss, achieving alignment performance comparable to PPO on the Helpful and Harmless dataset by reward model score and human annotation. The method scores sampled responses from the model itself, other large language models, and human experts by the log of their conditional probabilities, then learns through a ranking loss to align these probabilities with human preferences. Addressing the problems that PPO is sensitive to hyperparameters and that standard implementations require multiple models, making training and scaling difficult, RRHF requires only 1 to 2 models during training, is simpler than PPO in coding, number of models, and hyperparameters, and can be viewed as an extension of SFT and reward model training. Extensive experiments show that its performance is highly correlated with sampling quality, suggesting that RRHF is a best-of-n learner. Code is open-sourced at https://github.com/GanjinZero/RRHF。

Read originalarxiv.org