GPT-3

On this page 7

GPT-3 (Generative Pre-trained Transformer 3) is the 175-billion-parameter autoregressive language model that OpenAI introduced in May 2020 in the paper titled Language Models are Few-Shot Learners. In AI history, it marks the point at which scaling a single pretrained model proved sufficient to perform many language tasks from a few examples written into the prompt, without task-specific training.

GPT-3 was roughly one hundred times larger than GPT-2 and became the first frontier model offered mainly through a commercial API rather than as downloadable weights. Its success shaped the research agenda, business models and policy debates that led to ChatGPT and the later wave of large language models in artificial intelligence.

How GPT-3 generates text

GPT-3 is a decoder-only transformer trained with a single objective: predict the next token given all previous tokens. It uses the same basic design as GPT-2, with layer normalization moved to the input of each block and alternating dense and locally banded sparse attention patterns in its layers.

At inference time, the model produces text one token at a time, feeding each output back as input. Every capability it shows, from translation to arithmetic, emerges from this next-token prediction mechanism applied to a prompt that frames the task.

The following table lists the published architecture of the largest version.

ParameterValueWhat it affects
Total parametersAbout 175 billionCapacity to store patterns and knowledge
Transformer layers96Depth of representation
Attention heads per layer96Parallel relationships the model tracks
Hidden dimension12,288Width of each token representation
Context window2,048 tokensMaximum prompt plus output length
Training tokensAbout 300 billionAmount of text seen during training
Key specifications of the largest GPT-3 model

Training data and model family

GPT-3 was trained on a weighted mixture of web and book text. A filtered version of Common Crawl supplied most of the tokens, but higher-quality sources such as WebText2, two book corpora and English Wikipedia were sampled more often than their size alone would suggest. The Common Crawl portion was filtered with a quality classifier and deduplicated, because raw web text contains large amounts of boilerplate, spam and repeated pages. Training required roughly 3.14 × 10^23 floating-point operations, an amount of compute that few organizations could afford in 2020.

The paper also trained eight model sizes, from 125 million to 175 billion parameters, to measure how capability changes with scale.

ModelParametersRole in the study
GPT-3 Small125 millionBaseline comparable to the original GPT
GPT-3 XL1.3 billionSimilar in size to GPT-2
GPT-3 13B13 billionIntermediate point for scaling trends
GPT-3 175B175 billionFlagship model reported in most results
Selected sizes in the GPT-3 family

The family showed that performance improved smoothly and predictably with size, which supported the scaling laws published earlier the same year and encouraged laboratories to build even larger models.

In-context learning and the few-shot breakthrough

The central finding of the GPT-3 paper was in-context learning: the model could adapt to a new task when the prompt contained a description and a handful of examples, with no change to its weights. The authors compared three prompting settings.

SettingPrompt contentTypical outcome
Zero-shotTask description onlyWeakest results on most benchmarks
One-shotDescription plus one exampleClear improvement on many tasks
Few-shotDescription plus about 10 to 100 examplesBest results, sometimes near fine-tuned systems
Prompting settings evaluated in the GPT-3 paper

The gap between zero-shot and few-shot performance widened as models grew, suggesting that larger models are better meta-learners. On some tasks, such as closed-book question answering, few-shot GPT-3 approached or matched fine-tuned state-of-the-art systems; on others, such as natural language inference, it remained well behind.

This result changed everyday practice. Instead of collecting thousands of labeled examples and fine-tuning a model for each task, developers began writing and testing prompts, which gave rise to prompt engineering as a discipline. The same weights could serve hundreds of different applications through text instructions alone, which made a general-purpose model commercially viable for the first time.

GPT-3 in the history of language models

GPT-3 sits between the research era of pretrained transformers and the consumer era of chat assistants. It inherited the transformer architecture from Attention Is All You Need and the generative pretraining approach of GPT and GPT-2.

ModelYearMain contribution
GPT-22019Coherent long text; staged release over misuse concerns
GPT-32020Few-shot learning at 175 billion parameters
InstructGPT2022Instruction following through human feedback
GPT-3.5 and ChatGPT2022Conversational interface for the public
GPT-42023Multimodal input and stronger reasoning
GPT-3 among its predecessors and successors

Access was offered through a private API beta starting in June 2020, and Microsoft obtained an exclusive license to the underlying model later that year. This model of access shaped later debates about structured access versus open release of weights.

Limitations and criticism

The GPT-3 paper itself documented serious weaknesses. The model generated fluent but false statements, lost coherence over long passages and performed poorly on tasks that required comparing two sentences. It had no mechanism to verify facts and no memory beyond its 2,048-token window.

  • Social bias: analyses found stereotyped associations related to gender, religion and ethnicity.
  • Data contamination: some benchmark items appeared in training data, complicating evaluation.
  • Misuse potential: realistic text raised concerns about spam, disinformation and phishing.
  • Energy and cost: the training run concentrated capability in well-funded organizations.

Critics also argued that impressive outputs encouraged overestimation of understanding. These debates fed directly into research on alignment, model documentation and the later use of reinforcement learning from human feedback.

Put simply

GPT-3 is a very large program that learned to continue text. It read a huge amount of writing from the internet and books. From that, it learned which word usually comes next.

Its surprise was flexibility. Show it a few examples of a task, and it often copies the pattern. It can translate, answer questions or write a poem without special training. It still makes things up, so its answers need checking.

In practice

In late 2020, a small software company used the GPT-3 API to build a tool that drafts product descriptions for online shops. Developers wrote a prompt containing three example descriptions and the features of a new product, then asked the model to write a fourth. No fine-tuning or labeled dataset was required.

The tool produced usable first drafts in seconds, and copywriters edited them instead of writing from scratch. Staff time per description fell noticeably, but editors had to correct invented product features in a meaningful share of drafts. The company therefore kept a mandatory human review step, an arrangement that became a common pattern for early GPT-3 applications.