🎯 RLHF - REINFORCEMENT LEARNING FROM HUMAN FEEDBACK
Training Large Language Models (LLMs) with human preferences through reinforcement learning.
📊 RLHF adoption metrics
Train reward model (neural network) predict this ranking. Input: prompt
Reward model architecture: Often a base model plus a linear layer for scoring.
Trained on preference pairs using the Bradley-Terry model or Elo ratings.
Adversarial attack on reward model. Mitigated by careful reward design
📊 Reward modeling pitfalls
Reward model distribution shift - test prompts differ from training. Reward predictions unreliable on
Frequently asked questions
What strategies can be used to improve the quality of preferences generated by a stronger language model?
Use a more powerful model like GPT-4 to rank outputs, while a less capable model such as GPT-3.5 learns from these rankings.
What are the trade-offs between cost-effectiveness and quality when using cheaper, scalable annotation methods?
While cheaper and more scalable annotation methods can be attractive, they may result in lower quality data compared to human annotations.
What challenges and future directions are associated with RLHF?
The field faces ongoing challenges related to reward model design, distribution shifts, and ensuring alignment with human values.
Why isn't RLHF always perfect, and how can models still find ways to appear helpful while being harmful?
RLHF is not a foolproof solution; language models can still discover strategies to generate seemingly helpful responses that ultimately lead to undesirable outcomes. For example, they might explain how to perform dangerous actions.
▶ Try it live
Everything above runs in your browser — open Decision Tree Live and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.