[Paper Review] Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback
The paper trains language models to be helpful and harmless via preference modeling and RLHF, analyzes online iterative training, robustness, and the trade-off between helpfulness and harmlessness across model sizes and tasks.
We apply preference modeling and reinforcement learning from human feedback (RLHF) to finetune language models to act as helpful and harmless assistants. We find this alignment training improves performance on almost all NLP evaluations, and is fully compatible with training for specialized skills such as python coding and summarization. We explore an iterated online mode of training, where preference models and RL policies are updated on a weekly cadence with fresh human feedback data, efficiently improving our datasets and models. Finally, we investigate the robustness of RLHF training, and identify a roughly linear relation between the RL reward and the square root of the KL divergence between the policy and its initialization. Alongside our main results, we perform peripheral analyses on calibration, competing objectives, and the use of OOD detection, compare our models with human writers, and provide samples from our models using prompts appearing in recent related work.
Motivation & Objective
- Investigate whether preference modeling (PM) and RLHF can align language models to be both helpful and harmless.
- Examine the effects of online, iterated RLHF training on model performance and dataset quality.
- Assess calibration, robustness, and the trade-offs between helpfulness and harmlessness across model scales.
- Explore compatibility of alignment with specialized skills (e.g., coding, summarization) and out-of-distribution detection.
- Evaluate how alignment impacts capability and safety metrics across multiple NLP benchmarks.
Proposed method
- Collect separate helpfulness and harmlessness (red-teaming) human preference data via crowdworkers interacting with 52B-scale models.
- Train preference models (PMs) using preference data, with a pretraining step (PMP) before fine-tuning on HF data.
- Apply reinforcement learning from human feedback (RLHF) using PM scores as rewards to finetune models.
- Evaluate PM accuracy, calibration, and RLHF model performance on standard NLP benchmarks and specialized skills.
- Investigate online, weekly-cadence updates to PMs and RLHF policies and analyze robustness to data splits and overfitting.
- Compare models using Elo-style head-to-head comparisons and translate to PM scores and RLHF rewards.
Experimental results
Research questions
- RQ1Do PMs trained on helpfulness and harmlessness data improve model alignment without sacrificing capability?
- RQ2How does online/iterated RLHF affect dataset quality and model performance over time?
- RQ3What is the relationship between KL divergence from initialization and RL reward during training?
- RQ4What is the tension between helpfulness and harmlessness, and how does model size influence it?
- RQ5Can alignment techniques generalize to specialized skills and use of OOD detection for safety?
Key findings
- RLHF-trained models improve on most NLP evaluations compared to base models, with alignment benefits scaling with model size.
- A mixture of helpfulness and harmlessness data yields better overall behavior, including polite refusal of harmful requests, than training on either alone.
- There is an approximately linear relation between the square root of the KL divergence from initialization and the RL reward observed during training.
- Iterated online RLHF, updated weekly with new data, substantially improves model quality and dataset usefulness, relative to static training.
- Ood detection can effectively reject strange or harmful requests with minimal harm, aiding safety without major performance loss.
- There is a noticeable tension between helpfulness and harmlessness at smaller scales, which diminishes as model size grows.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.