Explain to me Reinforcement Learning from Human Feedback. How is it different from plain…
- User
Explain to me Reinforcement Learning from Human Feedback. How is it different from plain Reinforcement Learning? Assume I'm a professional programmer, with some knowledge of linear algebra, calculus, probability and statistics. Also assume I know the basics of machine learning and reinforcement learning.
- Assistant
Reinforcement learning from human feedback (RLHF) is a technique that trains a language model to generate outputs that align with human preferences or values. It involves three steps: pretraining a language model, gathering data and training a reward model, and fine-tuning the language model with reinforcement learning.
Pretraining a language model is the process of training a large neural network on a general corpus of text data, such as Wikipedia or books, using a next-token prediction loss. This gives the model a basic understanding of natural language and its structure.
Gathering data and training a reward model is the process of collecting human feedback on the outputs of the pre-trained language model. Human feedback can be obtained by asking humans to rank or rate instances of the model’s behavior, such as generated text or answers to questions. These ratings can then be used to train a reward model, which is a smaller neural network that predicts how good or bad an output is based on human preferences.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)