Module
Module 2 of 5Lesson 1 of 2~15 min

An LLM predicts how a text continues, and that explains almost everything

Lesson 1 of the module "How an LLM produces an answer" in the course "Understand what LLMs do well, and where they fail".

Lesson objective

By the end of this lesson, you will be able to explain how an LLM produces an answer (tokens, next-token prediction, pretraining then post-training) and to infer, for a given task, whether the main risk is an invention or a mere clumsiness of form.

Where it fits

How an LLM produces an answer

Where does an AI answer come from, and why can it be wrong while sounding right?

Lessons in this module

  1. An LLM predicts how a text continues, and that explains almost everything (this lesson)
  2. Hallucinations, sycophancy, variability, the three traps to anticipate

What you will learn in the course

This lesson is part of the course Understand what LLMs do well, and where they fail

  • Explain how an LLM produces an answer (tokens, next-token prediction, pretraining then post-training) and why a fluent answer is not a verified answer.
  • Anticipate hallucinations, sycophancy, poorly calibrated confidence and run-to-run variability, and choose the right check for each case.
  • Locate what the model knows (training data, knowledge cutoff, uneven coverage) and what web search, provided documents and connectors change.
  • Explain the context window as working memory (limit, degradation over long contexts, no memory across conversations without a dedicated feature) and derive working rules from it.
  • Assess what reasoning (thinking) and reading images or documents bring, and what they do not guarantee.
  • Sort the tasks of your job into "delegate / verify / keep" based on the cost of an error, how easy it is to verify, the model property involved and the value of doing it yourself.