How text-writing artificial intelligence actually works
AI assistants don't "think" like people or look answers up in a database. A plain-English guide to how they learn, what they do well and where they fail.
AI assistants that draft emails, summarise documents and answer questions have become part of everyday work in a very short time. But what is actually going on under the hood?
A language model
At the heart of these tools is a language model: a program that has learned, from huge amounts of text, which words tend to follow others and in which contexts. When you write to it, the model generates its reply piece by piece, each time choosing the most suitable continuation given everything before it.
That simple mechanism, repeated at enormous scale, makes surprising things possible: translating, writing code, reasoning step by step or adapting the tone of a text.
How it learns
Broadly, there are two stages:
- Pre-training: the model processes large volumes of text and adjusts billions of internal parameters to get better at predicting the next word.
- Fine-tuning: it is then trained on example conversations and on human feedback so that it is helpful, follows instructions and avoids harmful answers.
What it does well
- Drafting, summarising and rewriting text.
- Explaining complex ideas in simple language.
- Helping with code and data analysis.
- Acting as an assistant: with connected tools, it can search the web or work with files.
Where it fails
- It can be confidently wrong: if it lacks a fact, it may produce a plausible but false answer. Always check figures, quotes and dates.
- Its knowledge has a cut-off date: without internet access, it doesn't know what happened after its training.
- It is not a substitute for a professional on medical, legal or financial matters.
The golden rule: treat it as a fast, very capable assistant, but double-check anything important.