06

Preference & RL

Ranking & Sequential

Preference datasets express relative quality: which answer is better, how good a response is, or which reasoning process is sounder. They train reward models or are used directly via methods like DPO. RL datasets go further: they teach policies that optimize over sequences of decisions, not just single responses.

Preference & Reward Datasets

Dataset TypeExample UnitTurn TypeAnnotationTraining UseBehaviorsWeaknessesCuration Concerns
Pairwise preferencePrompt + A/B + winnerSingle/multi-turnA preferred over BDPO or reward modelBetter judgment of qualityLabel noiseClear rubric, rater agreement
Listwise rankingPrompt + ranked candidatesSingle-turnFull rankingRicher preference learningFine-grained style/quality controlCostly to annotateRanking consistency
Scalar scoringPrompt + response + scoreSingle/multi-turn1-5 or 0-1 ratingReward regressionQuality estimationRaters differ a lotRater calibration
Rubric-basedCandidates + rubric scoresSingle/multi-turnScores by dimensionFine-grained reward signalsAccuracy, clarity, harmlessnessComplex annotationRubric design, calibration
Process preferenceProblem + reasoning variantsSingle-turnPreferred processImprove reasoningBetter decomposition, verificationVery expensiveStep segmentation correctness
Constitutional critique/revisionResponse + principle + revisionMulti-stepPrinciple-based critiqueSelf-improvement alignmentPolicy-following, self-critiqueCan become rigidPrinciple design

RL Dataset Types

Dataset TypeExample UnitTurn TypeReward SourceWhat It TrainsBehaviorsWeaknessesCuration Concerns
Logged trajectoriesState-action sequencesMulti-stepHuman/heuristic rewardSequential behaviorPlanning, recovery, tool useMay contain suboptimal behaviorReward quality, trajectory length
Online rolloutsNewly sampled trajectoriesMulti-stepReward model/humansPolicy improvementAdaptation to policy errorsReward hackingPrompt mix, reward reliability
Simulated episodesAgent in environmentMulti-stepEnvironment scoreGoal-directed actionGame play, navigation, searchSimulator mismatch to real usersRealistic environment design
Tool trajectoriesTool call chainsMulti-turnTask success rewardReliable action selectionSearch, browsing, API useLong-horizon instabilityAccurate simulator, success signal
Outcome-labeledPrompt + success/failSingle/multi-stepSuccess metricEnd-task completionExactness, execution successMisses why it failedHigh-quality verification
Detailed Descriptions

SFT vs RL

  • SFT: Imitate this good answer
  • RL: Try actions and get rewarded for what works

Main Risk

If the reward is wrong, the model learns to exploit the reward instead of solving the real task. This is called reward hacking.

Note on RLHF

In practice, RLHF spans both sections above: preference data trains the reward model, then RL optimizes the policy against it. This guide separates them because they use different dataset formats.

What Is Reward Hacking?

Reward hacking occurs when a model finds ways to maximize its reward signal without actually solving the intended task. For example, a model trained with a length-based reward proxy might learn to generate verbose, repetitive responses that score high on the reward model but are unhelpful to users.

Other examples: a model that learns to use confident-sounding language to score well on "helpfulness" even when uncertain, or a coding model that passes specific test cases by hardcoding outputs rather than solving the general problem.

This is one of the core risks of RL-based training and is why reward model calibration, diverse evaluation, and human spot-checks are essential safeguards.

Preference Data Formats: When to Use Which

Preference data comes in several forms, each with different tradeoffs:

  • Pairwise (A vs B): Cheapest to annotate, but loses magnitude information. You know A is better than B, but not by how much.
  • Scalar (rate each 1–5): Captures degree of quality, but suffers from annotator calibration drift: one rater's "4" is another's "3."
  • N-way ranking: Richer signal from ordering N responses, but slower and costlier to collect.

DPO uses pairwise data directly. RLHF first trains a reward model (typically on pairwise or ranked preference data) that outputs scalar scores, then optimizes a policy against it. The choice depends on annotation budget, task subjectivity, and whether you need a standalone reward model for other purposes.

Process Supervision vs. Outcome Supervision

Process supervision labels each step of a reasoning chain as correct or incorrect.Outcome supervision only labels the final answer as pass or fail.

Process supervision is far more expensive to annotate but produces more reliable reasoners. The model learns which reasoning steps are valid, not just which final answers happen to be right. Outcome supervision can inadvertently reward models that get the right answer for the wrong reasons.

In practice, outcome supervision is used more widely because it's cheaper (you just need a verifier or test suite), while process supervision is reserved for high-stakes domains like math, code, and formal reasoning where intermediate correctness matters.