What is RLHF data?

By Plety. Updated

RLHF data is the human feedback used in reinforcement learning from human feedback: example answers written by people, and people's rankings of several model answers to the same prompt. The rankings train a reward model that scores answers, and the AI model is then tuned towards higher scores. OpenAI set out the method for its InstructGPT models in 2022.

What is RLHF data?

RLHF data is the set of human judgements used to steer a language model towards answers people prefer. In the InstructGPT paper, posted to arXiv on 4 March 2022, Ouyang and others at OpenAI started from prompts written by labellers and prompts submitted through the OpenAI API. They collected labellers' demonstrations of the desired behaviour to fine-tune GPT-3, then collected rankings of model outputs to fine-tune it further with reinforcement learning from human feedback.

The method made a small model beat a large one. The paper reported that in human evaluations, outputs from the 1.3 billion parameter InstructGPT model were preferred to outputs from the 175 billion parameter GPT-3, despite it having 100 times fewer parameters.

What are the main types of RLHF data?

RLHF projects collect four main kinds of data, and only some of them are preferences. The table sets out each kind with an example from published work.

Main kinds of RLHF data
KindWhat it isExample from published work
PromptsRequests or questions the model should answerLabeller-written prompts and prompts sent to the OpenAI API (Ouyang and others, 2022)
DemonstrationsIdeal answers written by peopleLabeller demonstrations used to fine-tune GPT-3 with supervised learning (Ouyang and others, 2022)
Comparisons and rankingsPeople's choice or ranking between two or more answersPairs of texts marked chosen and rejected in Anthropic's public HH-RLHF dataset
Red-team dialoguesConversations in which people try to make a model misbehaveAnthropic's red-teaming data, published alongside but not meant for preference modelling

How does preference data train a model?

Preference data trains a model indirectly, through a reward model that learns to predict which answer people would pick. OpenAI's description of InstructGPT of 27 January 2022 says it trained a reward model on human-labelled comparisons between two model outputs to predict which output its labellers would prefer, then used that reward model to fine-tune GPT-3 with the PPO algorithm.

The idea is older than chatbots. Christiano and others showed in June 2017 that reinforcement learning agents could learn complex tasks from non-expert human preferences between pairs of short segments of behaviour, with feedback on less than 1% of the agent's interactions. Stiennon and others applied the method to summaries in September 2020, using a version of the TL;DR dataset of Reddit posts, and found their models outperformed human reference summaries.

Newer methods use the same data in a different way. Direct Preference Optimization, posted by Rafailov and others in May 2023, fits a model to human preferences with a simple classification loss and no separate reinforcement learning step, so preference pairs remain the input.

Who produces RLHF data?

RLHF data is produced by paid labellers, contractors and crowdworkers, often hired through human data firms, working to written guidelines. OpenAI said its InstructGPT labellers were sourced from Scale AI and Upwork, were selected using a screening test, and were guided by researchers through written instructions, feedback on examples and conversations.

OpenAI noted that the result is aligned to the preferences of those labellers and researchers, and that InstructGPT is biased towards the cultural values of English-speaking people. Anthropic's 2022 paper on a helpful and harmless assistant described an iterated mode of training in which preference models were updated weekly with fresh human feedback data.

Some providers sell this work as a service. Prolific's homepage, read in November 2026, offers human feedback from representative populations for preference tuning, safety evaluations and benchmarks.

How do real business conversations relate to RLHF data?

Real business conversations are not RLHF data on their own, but they can supply two of its parts: real prompts and real answers. A support ticket records a customer's actual request and the reply that resolved it, which is close to the prompt and demonstration pairs that RLHF starts from, though it holds one answer rather than a ranked choice between several.

Real requests mattered in the original work. OpenAI built InstructGPT partly from prompts that customers had submitted to its API, and its labellers compared model outputs on those prompts. Business records can play the same part for workplace tasks, once personal data has been removed and client material has been left out.

Where a company kept records of how answers were judged, such as a satisfaction score, an escalation or a reopened ticket, those signals are closer to preference data. They still need checking, because a score given for one reply is not a direct comparison between two.

Questions

Is RLHF data the same as labelled data?
Not quite. Labelled data tags each example with a correct answer or category, while RLHF preference data records which of several answers people preferred and is used to train a reward model.
How much human feedback does RLHF need?
It varies with the task. Christiano and others reported in 2017 that their agents learned novel behaviours from about an hour of human time.
Is there public RLHF data?
Yes. Anthropic published its helpfulness and harmlessness preference data as the HH-RLHF dataset on Hugging Face, where the dataset card warns that some content may be offensive or upsetting.
What is a reward model?
A reward model is a model trained on human comparisons to predict which answer people would prefer. In RLHF its score is used as the reward when the main model is fine-tuned.

Looking for licensed records from UK companies?

Email Herman or book a 30-minute call with what you license: record types, languages, volume, date range and terms.

Sources

This page is general information, not legal advice. Take advice on your own company's records and contracts.

Read next