Reward Model
A neural network trained to assign numerical scores to LLM responses — how good the response is. A key component of RLHF.
How It Is Created
- People compare pairs of responses and choose the better one.
- The reward model is trained on these preferences.
- It learns to predict a score that aligns with human choice.
Role in RLHF
flowchart LR
A[LLM Response] --> B[Reward Model]
B --> C[Score]
C --> D[LLM Update]
The main model is fine-tuned to maximize the score from the reward model.
Alternative — DPO
DPO allows training without a separate reward model: the model learns directly from pairs of 'good/bad'. This is simpler and more stable, making DPO more popular.