What is RLHF
RLHF (reinforcement learning from human feedback) is the third stage of training a chatbot. People are shown two answers from the model to the same question and pick the better one. From lots of these choices the model learns which answers people like: clear, polite, safe. Put simply, the model gets a "plus" for the answers a person would choose.
Two stages come before it: pretraining on mountains of text (which gives a base model that continues text but can't answer questions) and fine-tuning on "request → good answer" pairs. The side effect of RLHF is people-pleasing: people tend to reward polite, agreeable answers, so a bot may give in when you confidently push a myth. To avoid it, don't hint at the answer you want and ask directly: "don't agree if I'm wrong".
Covered in the lessonHow a chatbot is trained: 3 stagesOpen the lesson →
More terms from this course
- What is an AI agent
- What is an AI hallucination
- What is a context window
- What is an embedding
- What is few-shot prompting
- What is a knowledge cutoff
- What is an LLM (large language model)
- What is machine learning
- What is multimodal AI
- What is a neural network
- What is a prompt
- What is RAG
- What is a tokenizer
- What is voice cloning