Reinforcement Learning from Human Feedback (RLHF) is the secret sauce that transforms powerful but useless AI models into the helpful, coherent assistants we use today like ChatGPT.
- LLMs are trained on the entire internet, which gives them a ton of knowledge…but not a clue how to use it
- RLHF refines them by showing them what we think a "good" answer looks like, teaching them how to be helpful assistants
- There are 3 steps to RLHF, starting with humans ranking different AI generated answers to common questions
- RLHF is critically important and a major focus of most AI labs today
LLMs before RLHF: absolute genius toddlers#
If you were playing with AI models a few years ago, before the ChatGPT moment – or if you’ve ever accidentally used the “base model” of any of the popular models today – you may remember what life looks like without RLHF. You might ask a simple question and get back a wall of text that was technically correct but completely missed the point. Or it might hallucinate wildly, confidently invent facts, or worse, regurgitate some of the green toxic sludge it learned from the darker corners of the internet.
These early models were like a genius who had read every book in the world but had zero social skills. They had all the information, but they had no concept of what was helpful, polite, or relevant to a human – nor how to be concise, like at all.
To understand why this is true, you have to remember that LLMs are essentially random word generators that are trained to be really, really good at the word-guessing game. When you give them a prompt, they simply use their internal probability matrices to generate the most likely next word, most likely next word after that, and so on and so forth. This response is purely based on what appears most on the model’s internet-scale training set; the model has no idea how to be concise, helpful, or any of the other things we value in our assistant-like LLMs.
For example, GPT-2 once tried naming mushrooms and came up with things like:
So, how did we get from that useless genius to the polished, helpful assistant that can write you an email, a poem, or a Python script?