# RLHF

> The RLHF (Reinforcement Learning from Human Feedback) is a technique of training a model using human ratings of its answers.

## What is RLHF (reinforcement learning from human feedback)?

The technique where people compare or rate model answers, a reward model learns their preferences, and the main model is trained with reinforcement learning to produce preferred answers. Makes models more helpful and safer.

- Topic: Training & Architecture
- Type: technique

## Interview questions

### How does RLHF work?

People rank model answers, a reward model learns those preferences, and reinforcement learning then trains the language model to get higher reward.

### What is the difference between RLHF and fine-tuning?

Supervised fine-tuning copies example answers. RLHF optimizes for answers people prefer, using rankings rather than exact target text.

### What is DPO?

DPO, direct preference optimization, trains a model directly on preferred and rejected answer pairs without a separate reward model.

## Related cards

- [Reinforcement Learning](https://wonderium.dev/ai/reinforcement-learning.md)
- [Post-Training](https://wonderium.dev/ai/post-training.md)
- [Alignment](https://wonderium.dev/ai/alignment.md)
- [Fine-Tuning](https://wonderium.dev/ai/fine-tuning.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/rlhf
- Last updated: 2026-11-25
