AI for Experts Understand it Lesson 2 of 9 7 min

How an LLM is built

In plain words

How is a large language model built?

An LLM is first trained on a huge amount of text to predict the next word, then tuned by people who rate its answers so it acts like a helpful assistant. Nothing in that training checks what is true, and it is rewarded for a confident guess over “I don't know”, which is why it sometimes makes things up.

Lesson 2
  1. Lesson 2

    How an LLM is built.

    Peek inside

  2. The big secret

    It plays one game: guess the next word.

    Then it adds that word and guesses again. Over and over, very fast.

    Source: Anthropic, Claude docs, read Dec 3, 2026
  3. Watch it work

    “The patient was prescribed a course of …”

    It scores every possible next word: antibiotics high, physiotherapy lower, umbrellas near zero. Then it picks a likely one. (An illustration.)

  4. Play

    Think like a model.

    Which ending would it pick? Tap the likelier one.

    4 rounds

  5. Step 1

    First, it reads a huge amount of text.

    Guess the next word, see the real one, adjust a little. Billions of times. That's pretraining.

    Source: Anthropic, Claude docs, read Dec 3, 2026Source: Understanding AI (Lee and Trott), Jul 27, 2023
  6. Step 2

    Then people rate its answers.

    Fresh from reading, it's poor at following instructions. So people rank its replies, and it learns what they prefer. That's RLHF.

    Source: Anthropic, Claude docs, read Dec 3, 2026
  7. Practice wins

    100x

    bigger, roughly. That's GPT-3 next to InstructGPT. People still preferred the small one, tuned on their ratings.

    Source: OpenAI (Ouyang et al.), Mar 2022
  8. Quick poll

    Why does AI sometimes make things up?

    Think of a test where “I don't know” scores zero. Guessing looks better on the scoreboard, so models learn to guess.

    Source: OpenAI, Sep 5, 2025
  9. Honest bit

    Asked for one dissertation title, a chatbot gave three. All wrong.

    Confident every time. That example is from OpenAI's own write-up.

    Source: OpenAI, Sep 5, 2025
  10. Good to know

    It only knows what it read, up to a point.

    For anything newer or private, paste in the document or turn on search. It's only as good as what it's given.

    Source: Anthropic, Claude docs, read Dec 3, 2026
  11. Play

    True, or myth?

    Swipe or tap each one.

    1. True or myth?It knows today's news by itself.Only what it read in training, unless you give it a document or turn on search.
    2. True or myth?If it sounds sure, it's right.It sounds the same when it's guessing. Confidence isn't evidence.
    3. True or myth?People rating answers helped make it useful.Ranking its replies taught it what people prefer.
    4. True or myth?Ask the same thing twice, you may get two answers.Its output isn't fully fixed, even at its most predictable setting.
    5. True or myth?It writes one small piece of a word at a time.Token by token, each one a prediction.
    6. True or myth?It looks answers up in a database of facts.No database. It predicts likely words from patterns it learned.

  12. Think about it

    In your field, where would a confident wrong answer do the most harm?

    That's exactly where you check its work. Your expertise is the safety net it doesn't have.

  13. Journal time

    Pen to paper.

    Write about a time you sounded sure, and were wrong.

    What would have helped you say “I'm not sure”? AI could use the same habit.

  14. Quiz

    At its core, an LLM is trained to…

    Pretraining is one long next-word game. Truth isn't part of the score.

    Source: Anthropic, Claude docs, read Dec 3, 2026
  15. Quiz

    What did people rating its answers add?

    People rank its replies, and it learns to give the kind they prefer. That's what turned a text predictor into an assistant.

    Source: Anthropic, Claude docs, read Dec 3, 2026
  16. Quiz

    Why do models guess instead of saying “I don't know”?

    OpenAI's own finding: standard training and testing reward guessing over admitting doubt.

    Source: OpenAI, Sep 5, 2025
  17. Lesson done?

    Your quiz

    3 questions

    2 of 3 right completes the lesson.

    Next: How AI keeps growing

Go deeper

A little more.

  • The next-word game, step by step

    Your sentence is split into tokens, small pieces of words.

    The next-word game, step by step

    The model gives every possible next token a score, picks a likely one, adds it, and goes again. Words are stored as long lists of numbers, which is how it can tell that “antibiotics” sits closer to “prescribed” than “umbrellas” does.

    In training it does the same on real text: it guesses, sees the true next word, and its settings are nudged so the true word scores higher next time. Notice what's checked: what's likely, never what's true.

    Source: Anthropic, Claude docs, read Dec 3, 2026Source: Understanding AI (Lee and Trott), Jul 27, 2023
  • From reader to assistant

    A model straight out of pretraining is not naturally good at answering questions or following instructions.

    From reader to assistant

    The next stage uses people: they rank two or more answers, and the model is trained to behave the way they prefer. This is reinforcement learning from human feedback, or RLHF.

    It matters more than size. In OpenAI's 2022 InstructGPT paper, people preferred answers from a 1.3 billion parameter model tuned this way over the 175 billion parameter GPT-3.

    Source: Anthropic, Claude docs, read Dec 3, 2026Source: OpenAI (Ouyang et al.), Mar 2022
  • Why it makes things up

    OpenAI's 2025 explanation is a school test.

    Why it makes things up

    Saying “I don't know” guarantees zero points, while a guess sometimes lands, so the guessing model looks better on scoreboards. In its own figures, an older model that almost never abstained was wrong 75% of the time on one test; a newer one that said “I don't know” 52% of the time was wrong 26% of the time.

    Paid, specialised tools aren't immune. Stanford researchers found leading legal research AI tools gave hallucinated answers in more than 17% to more than 34% of their test queries.

    Source: OpenAI, Sep 5, 2025Source: Stanford HAI and RegLab, May 23, 2024
  • The edge of what it knows

    It knows what it read in training and what's in the chat right now.

    The edge of what it knows

    Giving it your documents, or letting it search, puts fresh text into its context window. That helps, but the answer still depends on the quality of what it was given.

    And the same question can get a different answer twice. Even at its most predictable setting, the output is not fully fixed.

    Source: Anthropic, Claude docs, read Dec 3, 2026

Journal it

Write it out. See it clearly.

What you'll get Your own checking habits, ready to use on any AI answer.

About 10 minutes · Pen to paper · Nothing typed or kept

  1. Write about where you trust a smooth answer more than you should, from AI or from people.
  2. List the checks you use on a junior colleague's work. Which could you use on AI?
  3. Write about the questions in your field that change fast. How do you keep up with them yourself?

Try this week

Ask any AI chat about something you know cold, like a niche detail from your field. Then ask it how confident it is. Notice where it's right, where it guesses, and how it sounds the same either way.

Try it with AI

Paste it into any AI chat. Leave out names and private details.

Explain it with my work

Explain how a large language model predicts the next word, using a sentence a [your job] might write. Show the top few words it might choose and why. Keep it under 120 words.

Seeing the guess on your own words makes the idea stick.

Questions people ask

Asked, answered.

How does ChatGPT actually work?
It's a large language model. It was trained on a huge amount of text to predict the next word, then tuned by people who rated its answers so it acts like a helpful assistant. It writes a reply one small piece at a time.
Why does AI make things up?
Training checks what's likely, not what's true, and OpenAI found that standard training and testing reward a confident guess over saying “I don't know”. So it can sound sure and still be wrong. Check facts, figures and sources yourself.
What is RLHF?
Reinforcement learning from human feedback. People rank two or more answers from the model, and it is trained to give the kind of answers they prefer. It's a big part of what turns a text predictor into a useful assistant.

Where this comes from

Sources, checked.

  1. Glossary Anthropic, Claude docs · read Dec 3, 2026
  2. Large language models, explained with a minimum of math and jargon Understanding AI (Lee and Trott) · Jul 27, 2023
  3. Training language models to follow instructions with human feedback OpenAI (Ouyang et al.) · Mar 2022
  4. Why language models hallucinate OpenAI · Sep 5, 2025
  5. AI on trial: legal models hallucinate in 1 out of 6 (or more) benchmarking queries Stanford HAI and RegLab · May 23, 2024
Next: How AI keeps growing

Known for what you know

Be known for what you know, believe and do.

Inkflare learns what you know and does 80% of the work, building your authority across social, search and AI overviews. You refine and approve, in under an hour a week.

Start your trial