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.
- User
And now assume I'm a non-programmer with little to no coding experience, and rewrite this so it's easier to understand.
- Assistant
Reinforcement learning from human feedback (RLHF) is a way to teach a computer how to write better by getting feedback from humans. This process involves three steps.
First, the computer learns about language by reading lots of books or articles.
Next, humans are asked to read what the computer writes and give feedback on whether it's good or bad. This feedback is used to train a smaller computer program that can predict if something is good or bad.
Finally, the computer uses this information to try and write better. It's like trying to get better grades in school by listening to your teacher's feedback and using that information to improve your work.
RLHF is different from regular computer learning because it uses human feedback, which is more accurate and can capture more complex aspects of language.
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)