AI Ops Glossary

Preference Data

Preference data is a dataset of judgments about which of two or more model responses to the same prompt is better, used to align a model during post-training. In the most common format, each record holds a prompt, a chosen response and a rejected response. Training then pushes the model toward the chosen behavior.

In RLHF the judgments come from trained human raters; in RL from AI feedback (RLAIF), an AI model supplies them. Preference data trains a reward model for reinforcement learning from human feedback (RLHF), or trains the model directly with methods such as direct preference optimization (DPO). In the InstructGPT work, OpenAI researchers collected rankings of model outputs and used them to fine-tune GPT-3 with RLHF.

Preference Data at a Glance

Also calledComparison data, human preference data, preference dataset
What it doesRecords which response raters prefer for a prompt, so training can favor the preferred behavior
Where it's used in model developmentPost-training: reward model training for RLHF, DPO and related methods, and AI-feedback pipelines (RLAIF)
The human roleRaters compare or rank responses against written guidelines; humans write the principles when an AI model supplies the preferences
LimitsReflects the chosen rater pool and its instructions; rater mistakes, bias and limited visibility carry into the model

How Preference Data Works

Preference data works by turning a relative judgment into a training label: for one prompt, the record says which response is better. Raters do not write the ideal answer. They judge answers the model already produced.

Common formats

  • Pairwise: a prompt, a chosen completion and a rejected completion. Some datasets fold the prompt into both completions; Hugging Face's TRL library recommends explicit prompts whenever possible.
  • Ranked lists: InstructGPT labelers ranked between 4 and 9 responses per prompt, and training used every pair from each ranking. A ranking of 4 responses yields 6 pairs.
  • Unpaired: one completion with a label saying whether it is preferred, instead of a chosen and rejected pair for the same prompt.

How a model learns from a comparison

A reward model takes a prompt and a response and outputs a scalar reward. InstructGPT follows Stiennon et al. (2020), who train it with a cross-entropy loss on comparisons, where the difference in rewards represents the log odds that a labeler prefers one response over the other. Other losses fit pairwise feedback too, such as a Bayesian personalized ranking loss.

Where Preference Data Is Used in Model Development

Preference data is used in post-training to align a model's outputs with what raters judge better; in InstructGPT and Llama 2, that stage came after supervised fine-tuning.

RLHF with a reward model

InstructGPT ran three steps: supervised fine-tuning on labeler demonstrations, reward model training on comparisons, then PPO against the reward model. A per-token KL penalty from the supervised model limited over-optimization of the reward model.

Direct preference optimization

DPO reparameterizes the reward model so the optimal policy can be extracted in closed form. The model then trains on preference pairs with a simple classification loss, without sampling from it during fine-tuning. In TRL, the DPO trainer and the reward model trainer both expect the preference format, while the KTO trainer also accepts unpaired labels.

Iterative collection

In published pipelines, preference data is collected in rounds. InstructGPT collected new comparisons on the current best policy to train a new reward model and policy. The helpful and harmless assistant work of Bai et al. (2022) updated preference models and policies on a weekly cadence with fresh human feedback. Meta's Llama 2 team called accumulating iterative reward modeling data crucial to keep reward models within distribution.

AI feedback

In Constitutional AI, a model judges which of two samples is better, and a preference model is trained on those AI preferences. Its authors call this RL from AI Feedback (RLAIF). Human oversight in that method comes through a written list of principles.

Limits of Preference Data and the Human Role

Preference data inherits the limits of the raters and instructions behind it, and research on RLHF catalogs several of them.

  • Whose preferences: the InstructGPT authors state their procedure aligned GPT-3 to the stated preferences of a specific group, mostly their labelers and researchers. Selecting representative raters is difficult, and rater instructions add another layer of arbitrary choice. NIST's harmful bias risk includes performance disparities between subgroups, possibly due to non-representative training data.
  • Rater error: raters make mistakes from limited time, attention or care. Pay per example creates an incentive to cut corners. Mistakes can be correlated across raters: a goal of selecting text that satisfies certain constraints can push raters toward evasive or unsubstantive answers.
  • Sycophancy: RL-trained models can pander to evaluators' biases, and RLHF can amplify this in some cases.
  • Partial observability: raters who don't see all the relevant information cannot give informative feedback.
  • Poisoning: a malicious rater could prefer harmful behavior whenever a trigger phrase appears, though how feasible this is remains unclear.

What oversight looks like in practice

The InstructGPT team chose labelers with a screening test for sensitivity to different demographic groups' preferences and for spotting harmful outputs. The team measured agreement: training labelers agreed with each other 72.6 ± 1.5% of the time, and held-out labelers 77.3 ± 1.3%. The held-out labelers, who produced no training data, tested whether the model generalized beyond its raters. Prompts were deduplicated and filtered for personally identifiable information.

Preference Data vs. SFT Data

Preference data records which existing response is better, while SFT (supervised fine-tuning) data records the response the model should produce. One advantage researchers cite for this kind of feedback is that human judgments can be easier to provide than demonstrations.

AspectPreference dataSFT data
RecordPrompt, chosen and rejected responses, or a rankingPrompt and one target completion
Human taskCompare or rank model outputsWrite a demonstration of the desired output
Training useReward model for RLHF, or DPO directlySupervised learning on the target text
InstructGPT scaleReward model dataset: 33k training promptsSFT dataset: about 13k training prompts

Preference Data at Hugo

Hugo builds dedicated preference alignment and post-training teams that produce pairwise comparisons, 0-to-N scale ratings and written rationales for helpfulness, accuracy and safety. Each program starts from a rubric written with the client and a calibration set every rater passes before production, with agreement tracked per criterion and regular re-calibration against gold examples. The team validates and formats the finished comparisons and scores for the client's DPO, PPO or GRPO pipeline. For one example of quality work on this data type, see how Hugo audited human preference data for demographic bias.

Preference Data FAQs

What is preference data in machine learning?

Preference data in machine learning is a set of judgments about which of two or more model responses to the same prompt is better. Post-training uses those judgments to steer a model toward preferred behavior. A typical record holds a prompt, a chosen response and a rejected response; some datasets instead use rankings of several responses or a single response labeled preferred or not. InstructGPT, for example, trained a reward model on labeler rankings of model outputs. The data reflects whoever produced the judgments, so teams should document who the raters were and what guidelines they followed.

What does a preference dataset look like?

A preference dataset usually stores one prompt with two completions, labeled chosen and rejected. Hugging Face's TRL library defines this as the preference type and supports both plain-text and conversational versions, where each turn carries a role and content. Some datasets drop the prompt column and include the prompt inside both completions, which TRL calls an implicit prompt. TRL also defines an unpaired preference type: one completion plus a true or false label. Check which shape your trainer expects; TRL recommends explicit prompts for its DPO trainer and implicit prompts for its reward model trainer.

How is preference data used in RLHF?

Preference data in RLHF trains a reward model that predicts which response a human rater would prefer. The policy is then optimized against that reward model with reinforcement learning. In InstructGPT, labelers ranked 4 to 9 responses per prompt, a reward model learned from those comparisons, and PPO fine-tuned the supervised model to maximize the reward, with a per-token KL penalty to limit over-optimization. The steps can repeat, with new comparisons collected on the current best policy. Plan for repeated rounds of collection rather than a single dataset delivery.

What is the difference between preference data and SFT data?

Preference data compares responses the model already produced, while SFT data supplies the single response the model should produce. SFT trains with supervised learning on demonstrations; preference data trains a reward model or a DPO-style objective. InstructGPT used both: an SFT dataset of about 13k training prompts with labeler demonstrations, and a reward model dataset of 33k training prompts with labeler rankings. Human judgments can be easier to provide than demonstrations. InstructGPT ran SFT first, and most of its comparison data came from its supervised policies.

How do you measure the quality of preference data?

One core quality check on preference data is agreement: how often independent raters pick the same response. InstructGPT reported training labelers agreed with each other 72.6 ± 1.5% of the time and held-out labelers 77.3 ± 1.3%, against 73 ± 4% researcher-researcher agreement in earlier summarization work. Agreement does not catch every problem, because mistakes can be correlated across raters, such as a shared pull toward evasive or unsubstantive answers. Ask a provider how raters are screened, whether agreement is tracked per criterion, and how held-out raters or gold examples are used to catch drift.

Can AI feedback replace human preference data?

AI feedback can replace some human preference labels, but humans still define the standard. In Constitutional AI, a model judges which of two samples is better, a preference model is trained on those AI preferences, and the only human oversight is a list of rules or principles. The authors call this RLAIF and say it makes it possible to control AI behavior with far fewer human labels. A practical safeguard is to check AI-generated preferences against a sample of human-reviewed comparisons.

Should you outsource preference data collection?

Outsourcing preference data collection fits when a team needs trained raters at volume, but the vendor's rater pool shapes the preferences the model learns. Llama 2's authors note that aligning to human preferences can require significant costs in compute and human annotation. NIST's generative AI profile lists improper supplier vetting across the AI lifecycle as a risk. Selecting representative raters is hard, and rater demographics can introduce biases models amplify. Before contracting, ask who the raters are, how they are screened and calibrated, how agreement is measured, and how guidelines change between rounds.

Sources

  1. Long Ouyang, Jeff Wu, Xu Jiang, et al. (OpenAI). Training language models to follow instructions with human feedback. 36th Conference on Neural Information Processing Systems (NeurIPS 2022). Accessed November 10, 2026.
  2. Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, Chelsea Finn. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. Updated July 29, 2024. Accessed November 10, 2026.
  3. Hugging Face. Dataset formats and types. Accessed November 10, 2026.
  4. Stephen Casper, Xander Davies, et al. Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedback. Accessed November 10, 2026.
  5. Hugo Touvron, Louis Martin, Kevin Stone, et al. (Meta). Llama 2: Open Foundation and Fine-Tuned Chat Models. Accessed November 10, 2026.
  6. Yuntao Bai, Andy Jones, Kamal Ndousse, et al. Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback. Updated April 12, 2022. Accessed November 10, 2026.
  7. Yuntao Bai, Saurav Kadavath, Sandipan Kundu, et al. Constitutional AI: Harmlessness from AI Feedback. Updated December 15, 2022. Accessed November 10, 2026.
  8. National Institute of Standards and Technology (NIST). Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile. NIST AI 600-1. Updated July 2024. Accessed November 10, 2026.

Build the Dedicated Team Behind Your AI Operations

Whether you need model evaluators, coding specialists, multilingual reviewers, or multimodal data teams, Hugo can help you build and manage the human operations layer behind better AI.

  • Dedicated Specialists

  • Quality You Can Trust

  • Built to Scale With You

  • Secure, Compliant & Reliable