Papers
Topics
Authors
Recent
Search
2000 character limit reached

Training language models to follow instructions with human feedback

Published 4 Mar 2022 in cs.CL, cs.AI, and cs.LG | (2203.02155v1)

Abstract: Making LLMs bigger does not inherently make them better at following a user's intent. For example, LLMs can generate outputs that are untruthful, toxic, or simply not helpful to the user. In other words, these models are not aligned with their users. In this paper, we show an avenue for aligning LLMs with user intent on a wide range of tasks by fine-tuning with human feedback. Starting with a set of labeler-written prompts and prompts submitted through the OpenAI API, we collect a dataset of labeler demonstrations of the desired model behavior, which we use to fine-tune GPT-3 using supervised learning. We then collect a dataset of rankings of model outputs, which we use to further fine-tune this supervised model using reinforcement learning from human feedback. We call the resulting models InstructGPT. In human evaluations on our prompt distribution, outputs from the 1.3B parameter InstructGPT model are preferred to outputs from the 175B GPT-3, despite having 100x fewer parameters. Moreover, InstructGPT models show improvements in truthfulness and reductions in toxic output generation while having minimal performance regressions on public NLP datasets. Even though InstructGPT still makes simple mistakes, our results show that fine-tuning with human feedback is a promising direction for aligning LLMs with human intent.

Citations (9,967)

Summary

  • The paper demonstrates that RLHF fine-tunes LLMs for user alignment, achieving higher human preference even with fewer parameters.
  • The methodology uses a three-step process: collecting demonstrations, ranking outputs, and applying PPO-based reinforcement learning.
  • Results show marked improvements in truthfulness, reduced toxicity, and maintained NLP performance without sacrificing efficiency.

Training LLMs to Follow Instructions with Human Feedback

Introduction

This paper addresses the alignment issues faced by LLMs like GPT-3 with their users' intentions. Despite being trained on vast web data, these models often exhibit problematic behaviors such as generating untruthful, toxic, or tangential outputs. The discrepancy arises because the pretext task—predicting the next token on internet-derived texts—differs greatly from producing user-aligned responses focused on helpfulness, honesty, and harmlessness. This study introduces InstructGPT, a model fine-tuned using human feedback to better align LLM outputs with human intent across a variety of tasks.

Methodology

The fine-tuning process is a three-step approach leveraging reinforcement learning from human feedback (RLHF). Initially, a set of demonstrations is compiled whereby labelers showcase desired model behaviors. Following this, human rankings of various model outputs reinforce the supervised learning model. Finally, reinforcement learning fine-tunes the model against these rankings using the Proximal Policy Optimization (PPO) algorithm and a reward model predictive of human preferences.

Figure 1

Figure 1: A diagram illustrating the three steps of our method, indicating the use of human feedback in training.

Results and Evaluations

Human evaluations demonstrate significant preference for outputs from InstructGPT over baseline GPT-3 models, despite InstructGPT using fewer parameters. Notably, outputs from a 1.3B parameter InstructGPT model are preferred to those from 175B GPT-3 models. Additionally, the InstructGPT models improve truthfulness and reduce toxic output generation substantially while maintaining comparable performance on standard NLP benchmarks. However, InstructGPT models still produce simple errors occasionally, such as failing to recognize false premises in questions.

Figure 2

Figure 2: Human evaluations of InstructGPT models against GPT-3 baselines, showing preference for InstructGPT outputs on various prompts.

Implications and Open Questions

The findings suggest that RLHF is a promising direction for realigning LLMs with human intentions. By efficiently leveraging human feedback, models can achieve significant alignment without an "alignment tax"—a decrease in performance on established NLP tasks. Future research could explore refining human data collection methodologies, enhancing model responsiveness to adversarial prompts, and conceptualizing models that can adapt to diverse human values and preferences.

Additionally, determining how universally applicable the alignment techniques are, and how they can be adapted to further reduce biased and harmful outputs, remains an open avenue. Work is needed to develop methods ensuring models understand when not to comply with harmful or unethical user requests, which poses a serious challenge in current implementations.

In conclusion, aligning LLMs more closely with human values and preferences is crucial in mitigating risks associated with misuse. The exploration of RLHF offers a viable path towards more reliable and safe AI deployments across various applications, although continued research and ethical considerations remain vital.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 87 tweets with 108471 likes about this paper.

YouTube

Deep Dive into LLMs like ChatGPT 9.9M views
It’s Time to Pay Attention to A.I. (ChatGPT and Beyond) 3.2M views
How ChatGPT is Trained 543K views
Highlights of the Fireside Chat with Ilya Sutskever & Jensen Huang: AI Today & Vision of the Future 267K views
The LLM's RL Revelation We Didn't See Coming 144K views
George Hotz | Reading & Talking | let's read ML papers | from $1499 buy comma.ai/shop/comma-three 82K views
ChatGPT - Explained! 81K views
Reinforcement Learning from Human Feedback explained with math derivations and the PyTorch code. 77K views
ChatGPT from Scratch: How to Train an Enterprise AI Assistant • Phil Winder • GOTO 2023 60K views
AI としゃべろう 44K views
【生成式AI】大模型 + 大資料 = 神奇結果?(2/3):到底要多少資料才夠 31K views
10 years of NLP history explained in 50 concepts | From Word2Vec, RNNs to GPT 27K views
ChatGPT vs Sparrow - Battle of Chatbots 23K views
Chat GPT Rewards Model Explained! 19K views
AI Showdown: ChatGPT vs. OPT vs. BLOOM - Which Language Model Reigns Supreme? 19K views
Yapay zekanın son yıllardaki gelişimi? / Prof. Dr. Emre Onur Kahya ile Bilim Ekstra 18K views
ChatGPT erobert die Welt im Sturm | Der allwissende Chatbot ist da! 16K views
How ChatGPT's AI works behind the scenes (and responds to practically anything) 13K views
EZ撸paper: DeepSeek-R1 论文详解 part 3:GPT发展史 | scaling law | 训练范式 | emergent ability #deepseek 12K views
ChatGPT od środka: jak naprawdę działa LLM? 11K views
Reinforcement Learning with Verifiable Rewards - Teaching LLMs to Solve Problems 9.5K views
Teknik optimasi Deepseek yang nice one 🔥 7.7K views
Andrej Karpathy - Part 1. Deep Dive into LLMs like ChatGPT(перевод) 7.4K views
Lec 25 | Alignment of Language Models-II 7.1K views
What does GPT in ChatGPT do? 6.9K views
Generative AI : Language Model and ChatGPT 6.7K views
30 AI Buzzwords (Simply) Explained For Builders 5.9K views
OpenAI InstructGPT: Training language models to follow instructions with human feedback 4.2K views
RLHF: Training Language Models to Follow Instructions with Human Feedback - Paper Explained 2.7K views
Reasoning and Reinforcement Learning for LLM 2.7K views
When AI Agents Start Hiring Humans: The Meatspace Layer Explained 2.3K views
一口气读懂“LLM监督微调”|全过程|AI幻觉|工作记忆和模糊记忆|不擅长什么? 2.2K views
#34: Prompt-Tricks sind tot: Was jetzt funktioniert 1.6K views
La realidad de ChatGPT y GPT-4 1.5K views
【中学生でもわかる】ChatGPTのAPIの使い方を徹底解説!9割が知らない「API」の魔力。コピペするだけの、超簡単生成AI API活用術 #gemini 1.5K views
How AI Learned to Reason: DeepSeek and o1 Explained 1.4K views
Lec 07 | Reinforcement Learning from Human Feedback: Part 01 1.3K views
[Débutant] Que mange un LLM pour savoir tout faire ? 1.3K views
How Chat-GPT is trained 1.3K views
Introdução para Modelos de Linguagem Grandes (LLM) - Atualizado 2025 (Baseado em Karpathy) 1.1K views
LLM - به زبون آدمیزاد 1K views
Reasoning Models Explained 900 views
1/14 マルレク「なぜ?で考える ChatGPT の不思議」への招待 853 views
Lec 08 | Reinforcement Learning from Human Feedback: Part 02 846 views
Qué son y cómo funcionan los LLM's 626 views
The building blocks behind ChatGPT - The AI Paper Club Podcast 625 views
ChatGPT에게 성공하는 방법을 물어봤습니다! 617 views
Lec 10 | Reinforcement Learning from Human Feedback: Part 04 496 views
RLHF DPO 數學詳細推導(36 min Uncut Ver.) 484 views
What is ChatGPT? 🧐 #artificialintelligence #chatgpt #chatgptexplained 475 views