How LLMs are trained
8 minYou'll be able to say how a chat model is trained and why the same prompt gives different answers, then test it by running one prompt five times.
Lesson video
Tastebud · 7:36 · Captions on screen
Training sets a chat model's habits, and each reply is drawn by chance, so one prompt can give different answers.
- Why. Web text, example chats and people's ratings each add habits. Then at every word it draws from the likely options, and temperature sets how often a less likely one wins.
- Real example. OpenAI trains partly on these ratings. In April 2025 it rolled back an 'overly flattering or agreeable' GPT-4o update, partly blaming a reward signal built from them. (ChatGPT, Nov 2026)
- When to break it. Don't redraw what people rely on. A personal ChatGPT shared link is a snapshot, so everyone sees the same reply. Save a trip plan the same way.
- Common mistake. Treating a temperature 0 answer as checked. Zero makes replies more alike, not more correct: in one test, one prompt run 1,000 times gave 80 different replies.
Our take. Flattery and caving when pushed were partly trained in by people's ratings, and temperature can't remove them. So test for trained habits with real prompts, and let the wording vary while you pin down every number people act on.
Each round of training adds a habit
Pretraining teaches it to continue text, up to a cutoff date. Example chats teach it to answer. People picking the better of two replies teach it what they prefer, which can reward flattery and agreeing with you.
Each habit of the Jaipur trip assistant traces back to one round of training
- Pretraining. Reading a huge amount of text, up to a cutoff date.
- Knows Hawa Mahal is in Jaipur. It read about Jaipur in pretraining.
- Fine tuning. Example chats, often written by people.
- Replies with a plan. Example chats taught it to answer instead of continuing your text.
- Human feedback. People picked the better of two replies, and the model learned to give more like the winners.
- Opens with 'Great choice!'. People tended to rate warm replies higher.
- Agrees when you push back. Even when you're wrong. People like being agreed with, and ratings picked that up. In April 2025 OpenAI rolled back an 'overly flattering or agreeable' GPT-4o update.
Some differences are harmless and some are risky
Wording and order can change without hurting anyone. A change in a number or a fact is risky, because people act on it. Each mark says what the screen should do.
How much a difference matters
- A different opening line. Nobody acts on it, so let it vary.
- Places in another order. Fine, as long as the plan still works.
- A table, then a list. If your screen expects a fixed layout, set the format in the instructions.
- A cafe that may have closed. Old pretraining text. Show a source, or check with search.
- A total over budget, unflagged. People budget around it. Let the product do the sum and check it against the budget.
One prompt in five fresh chats
Five fresh chats with one prompt show what varies and what holds. Lined up, each difference is harmless or risky. A result holds for one model on one date, because models get updated.
A five-run test turns 'answers vary' into a list of fixes
- Fresh chat, memory off. Memory and custom instructions off, or a temporary chat, so earlier chats don't steer the answer.
- Same prompt, word for word. 'Plan two days in Jaipur for under ₹8,000. Give a day by day plan and a total cost.'
- Five runs, lined up. Each answer copied into a doc, side by side.
- Mark each difference. Harmless if nobody acts on it, like wording or order. Risky if it's a number or a fact.
- One fix per risky difference. Such as letting the product do the sum and check it against the budget.
- Log the model and date. Models get updated, so the result holds for one model on one date.
Try it
One prompt, five runs, three temperatures
Each stop on the slider shows five fresh runs of one prompt: 'Plan two days in Jaipur for under ₹8,000. Reply in one line: the first stop, then the total cost.' Recorded from SmolLM2-360M-Instruct, a small open model, on 26 Nov 2026. Watch what changes: the wording, the stops or the total.
At 0 the model nearly always takes its likeliest word. Run 1: The first stop is Jaipur, a city known for its vibrant culture, stunning architecture, and rich history. The total cost for two days in Jaipur is ₹8,000. Run 2: The first stop is Jaipur, a city known for its vibrant culture, stunning architecture, and rich history. The total cost for two days in Jaipur is ₹8,000. Run 3: The first stop is Jaipur, a city known for its vibrant culture, stunning architecture, and rich history. The total cost for two days in Jaipur is ₹8,000. Run 4: The first stop is Jaipur, a city known for its vibrant culture, stunning architecture, and rich history. The total cost for two days in Jaipur is ₹8,000. Run 5: The first stop is Jaipur, a city known for its vibrant culture, stunning architecture, and rich history. The total cost for two days in Jaipur is ₹8,000.
Five fresh runs
Do this in any free chat tool, such as ChatGPT.
- Turn off memory and custom instructions, or use a temporary chat if your tool has one.
- Paste the prompt into a new chat and copy the answer into a doc.
- Repeat in four more new chats without changing a word.
- Mark each difference harmless or risky, and note one design fix for each risky one.
Plan two days in Jaipur for under ₹8,000. Give a day by day plan and a total cost.
What to notice: Wording and order move a lot. Look hardest at the total and at any place that may have closed.
Quick check
Your trip planner shows a different itinerary each time someone reopens their saved Jaipur trip, and people stop trusting it. Which change fits best?
Watch next
Watch it for Pretraining, the extra training on human feedback, and the model sometimes picking less likely words, which is why answers change.
Watch it for How people's rankings of answers train a second model that scores new ones, and where that falls short.
Case study: ChatGPT, asking which answer is better
Connects to: 2.3 Visualising with AI · 4.2 System prompts · 10.3 Output, previews and variants · 15.3 Usability testing AI products
Sources · checked Nov 2026
- OpenAI: Aligning language models to follow instructions (27 Jan 2022)The pipeline: GPT-3 trained to predict the next word on a large dataset of internet text, then human-written demonstrations, then people ranking pairs of outputs to train a reward model, then reinforcement learning on that reward.
- OpenAI: Sycophancy in GPT-4o (29 Apr 2025)OpenAI rolled back a GPT-4o update in ChatGPT that was 'overly flattering or agreeable'; thumbs-up and thumbs-down feedback on ChatGPT replies is one of the signals used in training.
- OpenAI: Expanding on what we missed with sycophancy (2 May 2025)The update added a reward signal from ChatGPT thumbs-up and thumbs-down data; user feedback can favour more agreeable replies; rollout 24-25 Apr, rollback from 28 Apr 2025.
- OpenAI API reference: Chat Completions, temperatureTemperature runs from 0 to 2 (default 1); higher values make output more random, lower values more focused. A 1.2 setting is valid here.
- Thinking Machines: Defeating nondeterminism in LLM inference (10 Sep 2025)Even at temperature 0, LLM APIs are not deterministic in practice: 1,000 runs of one prompt at temperature 0 gave 80 unique completions.
- Claude docs: Models overviewModel pages list a training data cutoff, so a model knows little or nothing after that date.
- OpenAI Help: ChatGPT Shared Links FAQA personal-account shared link includes the content available when the link is created or updated, so everyone sees the same reply.
- DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning (arXiv, Jan 2025, rev. Jan 2026)Reasoning can be trained with reinforcement learning, with gains on verifiable tasks such as mathematics and coding.