RLHF (Reinforcement Learning from Human Feedback)
Briefly
RLHF — fine-tuning the model based on human evaluations: 'good response / bad response'. Thanks to this, models become polite, useful, and safe.
Why is it needed
After initial training, the model can continue text, but it cannot be a useful assistant. It can be rude, make up stories, and give harmful advice. RLHF 'educates' the model: making it friendly and cautious.
How it works
- People look at pairs of model responses and choose the best one.
- Based on these evaluations, a 'reward model' is trained — it can score responses.
- The main model is fine-tuned to maximize these scores.
Results
- Polite and useful responses
- Refusal of harmful requests
- Less hallucinations and rudeness
But there is a price: RLHF sometimes makes models overly cautious and prone to agreeing with the user.