Open Agent School · Public worked example

Post-Training: meaning and example

Welcome! Take one idea with you today.

Post-training adapts a pretrained model toward desired behavior. Supervised fine-tuning learns from demonstrations; preference optimization learns from comparisons; reinforcement learning can optimize a reward signal. These methods have different data and feedback needs, and there is no universal requirement to use every method in sequence.

Picture it: An assistant answers in the wrong format and also quotes an outdated refund window. Demonstrations might help the recurring format behavior, but retrieving the current policy addresses the stale fact more directly. The team must not count an improved style score as proof that refund decisions became correct.

What is easy to mix up?

They differ in objectives, data, and optimization. DPO directly uses preference pairs without the classic separate reward-model plus online RL procedure; supervised fine-tuning imitates demonstrations.

Teaching example by Open Agent School. Source: Rafailov et al. - Direct Preference Optimization: Your Language Model is Secretly a Reward Model.