SFT data vs RLHF data
SFT data and RLHF data train a model in different ways. SFT data is worked examples: an expert writes the answer and the model learns to reproduce it. RLHF data is judgement: experts rank or score answers the model produced, and the model is trained toward higher scores. Most programmes use both, in that order.
Updated
Side by side
The same questions, asked of both.
SFT data compared with RLHF data
| SFT data | RLHF data | |
|---|---|---|
| What an item is | A prompt and the answer an expert would give | A model answer with a rank, a score or a rubric result |
| What the expert does | Writes | Judges |
| What the model learns | To imitate good answers | To prefer answers that score well |
| Best for | Teaching a new skill or format | Refining quality where many answers are acceptable |
| Main risk | Shallow or unreviewed examples are copied faithfully | A vague rubric rewards the wrong thing |
| Quality check | Blind review of each example by a second expert | Agreement between independent judges |
How to choose
Which one you need.
Use SFT data when the model does not yet know how to do the task, or needs to learn a particular format or style of reasoning.
Use RLHF data when the model can already produce reasonable answers and the goal is to make them better, safer or more consistent.
Whichever you use, keep the evaluation set separate and written by different people.
Read next
Related pages.
Not sure which you need?
Tell us what the model has to learn. We will say which kind of data fits, and start with a small paid pilot.