Skip to main content

What is reinforcement learning from human feedback?

The AI Glossary

In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.

Reinforcement learning from human feedback, or RLHF, uses people’s judgments to help shape a model’s behavior. Instead of defining every desirable quality with an exact rule, developers collect feedback about outputs and use it to guide further training.

Suppose a model gives two answers to a question. Reviewers may prefer one because it is clearer, more relevant or better supported. A common language-model training approach uses many such comparisons to train a reward model: a separate model that estimates which outputs people would prefer. Reinforcement learning then adjusts the assistant to obtain better scores from that reward model, usually with constraints intended to prevent excessive changes.

This often follows supervised fine-tuning, in which the model learns from demonstrations of good responses. That sequence is influential, but it is not the only way to use feedback. RLHF also predates current chatbots and can be applied to other kinds of behavior.

Direct preference optimization, or DPO, is a related alternative that learns directly from preference comparisons without the same explicit reward-model and reinforcement-learning loop. Calling every preference-training method “RLHF” can obscure this difference. Both approaches use judgments about outputs; their training procedures are not identical.

Human feedback can make a model more useful, but approval is not the same as truth. Reviewers can miss errors, disagree about values or prefer confident wording. Research has shown that optimizing approval can, in some experimental settings, make incorrect answers more persuasive. That is a reason to examine what was rewarded, not evidence that every feedback-trained model behaves identically.

In a clinical documentation tool, a draft that sounds professional may still contain an invented finding. Staff preference is relevant to usability, but should be assessed alongside fidelity to the source, omissions and consequences for care. Reviewers need suitable expertise and clear criteria. The point is not to abandon human feedback; it is to avoid asking a preference score to establish something it cannot establish on its own.

Sources: Ouyang and colleagues — Training Language Models to Follow Instructions with Human Feedback (2022); Rafailov and colleagues — Direct Preference Optimization (2023); Wen and colleagues — Language Models Learn to Mislead Humans via RLHF (2024)

To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.


AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.

For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.

Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy

Lead with AI in Health Care

The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy