The T in ChatGPT stands for Transformer. It is the design inside almost every AI model you have used, described in a 2017 paper from Google called “Attention Is All You Need”. Everything else in this series has been a piece of it. Text becomes tokens, tokens become embeddings, and attention lets the words adjust each other’s meaning. The Transformer is the arrangement that puts those pieces together and repeats them.
Older designs read a sentence one word at a time and carried a running memory forward, which faded, so by the end of a long sentence the start had gone fuzzy. A Transformer reads the whole passage at once. Every word checks every other word, settles what it means here, then draws on what the model learnt in training. Then the whole thing happens again in the next layer, and again, dozens of times. Early layers tend to sort out grammar. Later ones bring in facts and work out what you actually meant. At the end, the model is ready to guess the next token, and the loop starts over.
Two things follow. Reading everything at once is what let these models be trained on vast amounts of text in parallel, which is why they got good so fast. And every word checking every other word is work that grows quickly with length, which is one reason long chats get slower and cost more.
How the training itself works, from the raw text to an assistant that answers politely, is the subject of How AI is made.