BR Academy
0%
What LLMs Actually Are·Lesson 3 of 26·12 min

How LLMs Learn Patterns (Not Facts)

The concept

An LLM is trained by repeatedly doing the same exercise, billions of times: look at a stretch of text, predict the next token, check whether the prediction was right, and slightly adjust millions (or billions) of internal numerical weights if it was wrong. Repeated across essentially the whole internet's worth of digitized text, books, and code, this process doesn't give the model a database of facts it can query — it gives the model a very refined sense of statistical patterns in language: which words, ideas, and structures tend to follow which others, and in what contexts.

This distinction matters enormously in practice. A traditional database stores a fact once, in one place, and returns it exactly on request — ask it for a customer's address, and it returns the exact string stored in a row, unchanged, every time. An LLM doesn't do this. When you ask it a factual question, it reconstructs an answer by predicting, token by token, what a well-informed answer would plausibly look like, based on everything similar it saw during training. Most of the time, for well-documented facts repeated consistently across its training data, this reconstruction is accurate. But it is still a reconstruction, not a retrieval — and that's why two different models, trained on different data with different methods, can give genuinely different answers to the same factual question, even though both sound equally confident. It's also why the exact same model can occasionally give a slightly different answer to the identical question asked twice, since the generation process involves some randomness in which plausible next token gets chosen.

This also explains the idea of a "knowledge cutoff." Training data has a collection date — the model has no awareness of anything that happened after that point, because it was never shown any text describing it. Unless a tool gives the model live access to search the web or a database, it is working purely from patterns baked in during training, frozen at that cutoff. A model with a cutoff of early 2024, for instance, simply has no training signal about an event from late 2025 — it isn't choosing to withhold that information, it genuinely was never exposed to it.

There's a further wrinkle worth knowing: training data isn't a neutral, perfectly accurate record of the world. It includes outdated information, contradictions, satire, errors, and biased or one-sided sources, all mixed together. The model learns patterns from all of it, which means its "sense" of a fact is really an average or blend of how that topic was discussed across its sources — mostly accurate for settled, heavily-documented topics, and much shakier for topics where the source material itself was thin, contradictory, or wrong.

Worked example

Ask an LLM to describe a well-known historical event, such as the signing of the Declaration of Independence. It will likely produce a fluent, mostly accurate paragraph — the date, key figures, and context are all heavily repeated across its training data, so the "reconstruction" converges reliably on the true account. Now compare this to looking the same event up in an encyclopedia: the encyclopedia is retrieving one authored, verified entry. The LLM is regenerating a description from patterns learned across potentially thousands of sources that discussed the event in different ways — the result reads similarly, but the underlying process is completely different, and that difference is exactly what creates risk for less well-documented topics, such as a small regional company's founding date, or the exact wording of a niche regulation.

Exercise

Ask an AI assistant about something that happened in the last few weeks — a recent news event, product release, or score from a current sports season. Pay close attention to how it responds: does it correctly say it doesn't have live knowledge and may be out of date? Does it guess anyway, and if so, how confidently? Then, if you have access to a tool with live web search (many chat assistants now offer this as a toggle or plugin), ask the identical question again and compare.

Next, pick a topic you personally know well — your own company, your hobby, or your specialized field — and ask the model a detailed question about it. Note any place where its answer is outdated, generic, or subtly wrong compared to what you actually know. Write down both results: whether the non-browsing version hedged appropriately or invented a plausible-sounding but unverifiable answer, and how its knowledge of your own specialist topic compared to its handling of mainstream history.

Recap

  • LLMs learn statistical patterns from training data through repeated next-token prediction — they do not store or retrieve facts from a live database, and their training data itself is an imperfect, mixed-quality record.
  • Answers are reconstructions assembled from patterns, which is usually accurate for well-documented topics but never guaranteed, and can vary slightly even from the same model on repeat questions.
  • Every model has a knowledge cutoff baked into its training data; treat answers about recent events, niche topics, and anything in general as something to verify rather than something simply retrieved.

Resources

  • Anthropic: "Core views on AI safety" (how training shapes model behavior) — https://www.anthropic.com/news/core-views-on-ai-safety
  • OpenAI Help Center: "How ChatGPT and our foundation models are developed" — https://help.openai.com/en/articles/6783457
  • Wikipedia: "Training, validation, and test data sets" — https://en.wikipedia.org/wiki/Training,_validation,_and_test_data_sets