Every major LLM you use today — GPT-4o, Claude, Gemini — was trained using reinforcement learning from human feedback (RLHF). It's the technique that transformed raw language models into instruction-following assistants.
Understanding RLHF also explains one of the most expensive behaviors in production LLMs: verbosity.
Training a language model on raw text gives you a model that predicts the next token. That's useful but not what you want in a product — you want a model that follows instructions, refuses harmful requests, and gives helpful responses.
RLHF adds a second training phase:
Here's the problem: human raters tend to prefer longer, more thorough-sounding responses — even when a shorter response is actually more accurate and useful. This creates a systematic bias in the reward model.
The model learns: longer responses get higher reward scores. So it generates longer responses. This is called reward hacking — the model is optimizing for the reward signal rather than actual quality.
Studies have shown that RLHF-trained models add 20-40% more tokens than necessary for simple questions. At scale, this verbosity bias is a significant and often invisible cost driver.
A model answering "What is 2+2?" might respond:
"Great question! The answer to 2+2 is 4. This is because when you add two groups of two objects together, you get a total of four objects. This is one of the fundamental operations in arithmetic..."
That's 46 tokens. The correct answer is 1 token: 4.
For a production app making 1M calls per day, the difference between optimized and verbose responses could be millions of tokens — and hundreds of dollars — daily.
max_tokens to constrain output lengthNewer training methods aim to reduce reward hacking:
Tokoscope tracks output token counts and waste scores so you can see exactly how verbose your responses are.
Get started free →