AI & prompting

What Does GPT Stand For? Generative Pre-trained Transformer

GPT stands for Generative Pre-trained Transformer. It names a type of language model that generates text (generative), was first trained on a large body of text before being used for a task (pre-trained), and is built on the Transformer neural network design (Transformer).

The three words are a compact description of how the model is built and trained. Each one is explained below, followed by where the name came from and what people commonly confuse it with.

What each letter in GPT means

LetterWordWhat it tells you
GGenerativeThe model produces new text, one piece at a time, instead of only labelling or sorting existing text.
PPre-trainedThe model is trained on a large text collection first, before any task-specific adjustment.
TTransformerThe network architecture is the Transformer, which is built around attention instead of recurrence.

Generative: it writes text one token at a time

A generative language model predicts what comes next. The GPT-4 Technical Report describes GPT-4 as "a Transformer-based model pre-trained to predict the next token in a document". A token is a chunk of text, often a word or part of a word. The model looks at the tokens so far, assigns a probability to every possible next token, picks one, adds it to the text, and repeats.

Here is a toy illustration of the idea, not real model output. Given the text "The cat sat on the", a model might rate "mat" as likely, "sofa" as somewhat likely and "algebra" as very unlikely. Pick "mat", and the model then predicts what follows "The cat sat on the mat". A whole answer is built from many such steps.

"Generative" is contrasted with "discriminative" models, which output a label such as spam or not spam. The original GPT paper combined both ideas: it generatively pre-trained a language model on unlabelled text, then applied discriminative fine-tuning for each specific task.

Pre-trained: learning language before learning a task

Labelled examples for a specific task are scarce and costly to produce, while raw text is plentiful. The 2018 paper by Radford and colleagues, titled Improving Language Understanding by Generative Pre-Training, set out the recipe the name refers to. First, train a language model on a diverse corpus of unlabelled text. Second, fine-tune it on each target task with a small amount of labelled data.

The recipe has changed since. The GPT-3 paper (Brown et al., 2020) describes GPT-3 as "an autoregressive language model with 175 billion parameters" and evaluates it without any gradient updates or fine-tuning. Tasks and examples are given to the model only as text in the prompt. So "pre-trained" still holds, but many uses no longer need the second, task-specific training step.

The GPT-4 report adds a further stage after pre-training. It says a post-training alignment process improved the model's performance on measures of factuality and its adherence to desired behaviour. That is one reason a chat product behaves differently from a bare pre-trained model. For how this kind of training works in general, see How Does AI Learn?

Transformer: the architecture underneath

The Transformer was introduced in the paper Attention Is All You Need (Vaswani et al.), first submitted on 12 June 2017. The authors describe it as a network architecture "based solely on attention mechanisms, dispensing with recurrence and convolutions entirely". Attention lets the model weigh how relevant each earlier token is when processing the current one. Dropping recurrence also made training more parallelisable, which the authors say shortens training time.

The GPT models use this architecture to read a sequence of tokens and predict the next one. If you want to see how attention works with actual numbers, What Is a Transformer Model? walks through a worked example.

A short timeline of GPT papers

YearPaper or reportWhy it matters for the name
2017Attention Is All You NeedIntroduces the Transformer, the "T".
2018Improving Language Understanding by Generative Pre-TrainingSets out generative pre-training followed by fine-tuning, the "G" and "P".
2020Language Models are Few-Shot Learners (GPT-3)175 billion parameters; tasks specified through the prompt alone.
2023GPT-4 Technical ReportPre-training to predict the next token, plus post-training alignment.

GPT vs ChatGPT

GPT is the model family. ChatGPT is a chat application that uses GPT models, so the name combines "chat" with "GPT". When you type a question into ChatGPT, a GPT model generates the reply token by token, shaped by the extra training and the conversation setup the product adds. If you use it daily, How to Use ChatGPT Effectively covers habits that improve the answers.

Other things GPT can mean

In computing the same three letters have a second, unrelated meaning. GPT also stands for GUID Partition Table, a disk partition style. Microsoft's documentation says most computers use the GPT disk type for hard drives and SSDs, and that it allows volumes larger than 2 TB. It is the default partition style when you initialise a new disk in Windows Disk Management. If you landed here because Windows asked you to choose between GPT and MBR, that is the one you want, and it has nothing to do with AI.

What the name does not tell you

  • It does not say the model understands anything. "Generative" describes the output process: predicting likely next tokens.
  • It does not guarantee accuracy. A model that predicts plausible text can produce plausible mistakes, so check facts that matter.
  • It does not identify a single model. GPT-1, GPT-3 and GPT-4 differ in size, training and abilities, and the name is shared across all of them.
  • It is not a general term for every chatbot. Other companies build Transformer-based models and give them different names.

Frequently asked questions

Is GPT the same as ChatGPT?
No. GPT is a family of language models. ChatGPT is a chat product built on top of GPT models. The model does the text generation, and the product adds a chat interface, conversation handling and extra training for following instructions.
Who invented the Transformer in GPT?
The Transformer architecture was introduced by Vaswani and seven co-authors in the paper Attention Is All You Need, first submitted to arXiv on 12 June 2017. OpenAI's GPT work built on that architecture.
Does GPT always mean the AI model?
No. In computing, GPT also stands for GUID Partition Table, the partition style that most modern Windows computers use for hard drives and SSDs. The two have nothing in common except the letters.
Do all large language models count as GPTs?
Not by name. Many large language models are also Transformer-based and pre-trained on text, but GPT is the name OpenAI uses for its own model family. Other companies use their own model names.

Sources