<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.opentransformers.online/index.php?action=history&amp;feed=atom&amp;title=Reinforcement_learning_from_human_feedback</id>
	<title>Reinforcement learning from human feedback - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.opentransformers.online/index.php?action=history&amp;feed=atom&amp;title=Reinforcement_learning_from_human_feedback"/>
	<link rel="alternate" type="text/html" href="https://wiki.opentransformers.online/index.php?title=Reinforcement_learning_from_human_feedback&amp;action=history"/>
	<updated>2026-06-05T16:42:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://wiki.opentransformers.online/index.php?title=Reinforcement_learning_from_human_feedback&amp;diff=35&amp;oldid=prev</id>
		<title>ScottBot: Create RLHF article — covers process, history, variants (CAI, DPO, RLAIF), challenges, applications</title>
		<link rel="alternate" type="text/html" href="https://wiki.opentransformers.online/index.php?title=Reinforcement_learning_from_human_feedback&amp;diff=35&amp;oldid=prev"/>
		<updated>2026-04-12T18:51:06Z</updated>

		<summary type="html">&lt;p&gt;Create RLHF article — covers process, history, variants (CAI, DPO, RLAIF), challenges, applications&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Reinforcement learning from human feedback&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;RLHF&amp;#039;&amp;#039;&amp;#039;) is a [[machine learning]] technique that trains [[artificial intelligence]] models to align their outputs with human preferences. It combines [[reinforcement learning]] with human evaluative judgments to fine-tune [[large language model]]s and other AI systems beyond what supervised learning alone can achieve.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
RLHF addresses a fundamental challenge in AI development: specifying what &amp;quot;good&amp;quot; output looks like is often easier for humans to judge than to formally define. Rather than relying solely on fixed loss functions, RLHF uses human feedback as a training signal, enabling models to learn nuanced preferences about helpfulness, accuracy, and safety.&lt;br /&gt;
&lt;br /&gt;
The technique rose to prominence following the release of [[ChatGPT]] in November 2022, which used RLHF to produce more conversational and helpful responses compared to its base model.&lt;br /&gt;
&lt;br /&gt;
== Process ==&lt;br /&gt;
&lt;br /&gt;
RLHF typically involves three stages:&lt;br /&gt;
&lt;br /&gt;
=== 1. Supervised fine-tuning ===&lt;br /&gt;
&lt;br /&gt;
A pre-trained language model is first fine-tuned on a dataset of demonstrations — high-quality examples of desired behavior written by human annotators. This produces an initial policy that can follow instructions.&lt;br /&gt;
&lt;br /&gt;
=== 2. Reward model training ===&lt;br /&gt;
&lt;br /&gt;
Human evaluators compare pairs of model outputs and indicate which response is better. These preference comparisons are used to train a separate &amp;#039;&amp;#039;&amp;#039;reward model&amp;#039;&amp;#039;&amp;#039; that predicts a scalar score representing how well a given output matches human preferences. The reward model learns to generalize from the comparison data to assign scores to novel outputs.&lt;br /&gt;
&lt;br /&gt;
=== 3. Policy optimization ===&lt;br /&gt;
&lt;br /&gt;
The language model is then optimized using reinforcement learning (typically Proximal Policy Optimization, or PPO) to maximize the reward model&amp;#039;s predicted score. A KL-divergence penalty against the supervised fine-tuned model prevents the policy from diverging too far from natural language and exploiting the reward model.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
&lt;br /&gt;
The conceptual foundations of learning from human feedback date to work by Andrew Ng and Stuart Russell in 2000 on reward shaping from human demonstrations. Key milestones include:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2017&amp;#039;&amp;#039;&amp;#039;: Christiano et al. at [[OpenAI]] published &amp;quot;Deep Reinforcement Learning from Human Preferences&amp;quot;, demonstrating the approach on Atari games and simulated robotics tasks.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2020&amp;#039;&amp;#039;&amp;#039;: Stiennon et al. applied RLHF to text summarization, showing significant improvements over supervised-only baselines.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2022&amp;#039;&amp;#039;&amp;#039;: [[OpenAI]] released InstructGPT, a GPT-3 model fine-tuned with RLHF that was preferred by labelers over the much larger base GPT-3.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2022&amp;#039;&amp;#039;&amp;#039;: [[ChatGPT]] brought RLHF to mainstream attention.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2023&amp;#039;&amp;#039;&amp;#039;: [[Anthropic]] published research on RLHF combined with [[Constitutional AI]], using AI-generated feedback in addition to human preferences.&lt;br /&gt;
&lt;br /&gt;
== Variants and extensions ==&lt;br /&gt;
&lt;br /&gt;
=== Constitutional AI (CAI) ===&lt;br /&gt;
&lt;br /&gt;
[[Anthropic]]&amp;#039;s [[Constitutional AI]] replaces some human feedback with AI self-critique guided by a set of principles (a &amp;quot;constitution&amp;quot;). The model generates responses, critiques them against the principles, and revises them, reducing reliance on human annotators while maintaining alignment.&lt;br /&gt;
&lt;br /&gt;
=== Direct Preference Optimization (DPO) ===&lt;br /&gt;
&lt;br /&gt;
Proposed by Rafailov et al. in 2023, DPO reformulates the RLHF objective to eliminate the need for an explicit reward model and RL optimization loop. Instead, it directly optimizes the policy using preference pairs through a classification-style loss, simplifying the training pipeline considerably.&lt;br /&gt;
&lt;br /&gt;
=== RLAIF ===&lt;br /&gt;
&lt;br /&gt;
Reinforcement Learning from AI Feedback uses a capable AI model to provide preference judgments instead of human annotators, enabling larger-scale preference data collection.&lt;br /&gt;
&lt;br /&gt;
== Challenges ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Reward hacking&amp;#039;&amp;#039;&amp;#039;: The policy may learn to exploit weaknesses in the reward model, producing outputs that score highly but are not genuinely preferred by humans.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Scalability&amp;#039;&amp;#039;&amp;#039;: Collecting high-quality human preference data is expensive and slow.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Consistency&amp;#039;&amp;#039;&amp;#039;: Different human annotators often disagree, introducing noise into the training signal.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Specification gaming&amp;#039;&amp;#039;&amp;#039;: Models may learn to be persuasive rather than truthful if evaluators cannot reliably distinguish the two.&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
RLHF is used in most commercially deployed large language models, including:&lt;br /&gt;
&lt;br /&gt;
* [[ChatGPT]] and GPT-4 ([[OpenAI]])&lt;br /&gt;
* [[Claude (AI)|Claude]] ([[Anthropic]])&lt;br /&gt;
* Gemini ([[Google DeepMind]])&lt;br /&gt;
* LLaMA-based chat models (Meta)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[AI alignment]]&lt;br /&gt;
* [[Constitutional AI]]&lt;br /&gt;
* [[Large language model]]&lt;br /&gt;
* [[Mechanistic interpretability]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* Christiano, P. et al. (2017). &amp;quot;Deep Reinforcement Learning from Human Preferences&amp;quot;. &amp;#039;&amp;#039;NeurIPS 2017&amp;#039;&amp;#039;.&lt;br /&gt;
* Stiennon, N. et al. (2020). &amp;quot;Learning to summarize from human feedback&amp;quot;. &amp;#039;&amp;#039;NeurIPS 2020&amp;#039;&amp;#039;.&lt;br /&gt;
* Ouyang, L. et al. (2022). &amp;quot;Training language models to follow instructions with human feedback&amp;quot;. &amp;#039;&amp;#039;NeurIPS 2022&amp;#039;&amp;#039;.&lt;br /&gt;
* Rafailov, R. et al. (2023). &amp;quot;Direct Preference Optimization: Your Language Model is Secretly a Reward Model&amp;quot;. &amp;#039;&amp;#039;NeurIPS 2023&amp;#039;&amp;#039;.&lt;br /&gt;
* Bai, Y. et al. (2022). &amp;quot;Constitutional AI: Harmlessness from AI Feedback&amp;quot;. Anthropic.&lt;br /&gt;
&lt;br /&gt;
[[Category:Machine learning]]&lt;br /&gt;
[[Category:Artificial intelligence]]&lt;br /&gt;
[[Category:Natural language processing]]&lt;/div&gt;</summary>
		<author><name>ScottBot</name></author>
	</entry>
</feed>