Generative pre-trained transformer
The generative pre-trained transformer is the architecture behind ChatGPT and most of the AI chatbots that followed it. On the 30th of November 2022, when ChatGPT launched, millions of people encountered one for the first time. They typed questions into a text box and received fluent, detailed responses. The technology powering that exchange had been years in development, built on a design that had only recently been published. How does a model trained to predict the next word in a sequence end up capable of writing essays, explaining concepts, and holding a conversation? And why did OpenAI spend 2023 trying to claim legal ownership of the very word that names this class of technology?
'Attention Is All You Need' was published by Google researchers in 2017, and the claim turned out to be accurate. Before it appeared, the leading approach to processing language with neural networks was the recurrent neural network, which read text word by word, in sequence. That sequential structure had a hard ceiling. A model working through a long document in strict order was slow to train and struggled to connect ideas that appeared far apart in the text. The transformer solved this with an attention mechanism. Rather than moving through text word by word, a transformer reads an entire passage at once and calculates how every word relates to every other word simultaneously. Since 2017, systems built on this architecture have been capable of processing, summarizing, contrasting, and answering questions from text across many different domains. The question that followed the paper was which research team would be first to train one large enough to matter.
On the 11th of June 2018, OpenAI researchers published 'Improving Language Understanding by Generative Pre-Training,' which introduced the first GPT model. The approach had two stages. First, the model was trained on BookCorpus, a large and varied text dataset, with no human labels, learning purely to predict what came next in a sequence. Then it was fine-tuned for specific tasks using a smaller, labeled dataset. This two-stage design bypassed the main obstacle that had slowed earlier language models: supervised training on hand-labeled data required enormous human effort, making serious scale too expensive to attempt. GPT models use only the decoder half of the transformer architecture, pre-trained to predict the next token in a sequence. That task requires no human annotation at all. OpenAI introduced GPT-2 on the 14th of February 2019, scaled to ten times GPT-1's parameter count and dataset size, and with it came a concern the company did not expect.
GPT-2 held 1.5 billion parameters and was trained on WebText, a dataset of 40 gigabytes built from 8 million web pages. OpenAI chose not to release the full model at once, citing the risk of malicious misuse. It described the strategy as a 'staged release,' publishing smaller versions first before the full model became available in November. On the 10th of February 2020, Microsoft entered the competition with its Turing Natural Language Generation model. Microsoft described it as the largest language model ever published, at 17 billion parameters, and reported that it outperformed all previous models at summarization and question answering. That record did not last long. On the 28th of May 2020, OpenAI released GPT-3, with 175 billion parameters trained on a dataset larger than WebText. With only a handful of examples in the prompt, GPT-3 could carry out tasks it had never explicitly trained for. That quality pointed toward new methods for directing what large models could do.
After GPT-3, OpenAI developed reinforcement learning from human feedback, or RLHF, as a method for aligning model behavior with what users wanted. In January 2022, OpenAI introduced InstructGPT, a series of models fine-tuned from GPT-3 using a combination of supervised training and RLHF. Compared to raw base models, InstructGPT showed higher accuracy and produced less toxic output. OpenAI then refined InstructGPT into a chatbot. For that chatbot, human AI trainers provided conversations in which they played both the user and the AI. That dialogue data was used to train the model. The result was ChatGPT, based on GPT-3.5. GPT-4 arrived on the 14th of March 2023, and was integrated into Microsoft Copilot, GitHub Copilot, Snapchat, Khan Academy, and Duolingo. The wider industry responded. EleutherAI had released GPT-J, an open-weight model, in 2021. Google developed PaLM and then Gemini. Meta AI built Llama. On the 7th of August 2025, OpenAI released GPT-5. The model uses a built-in router to choose automatically between a faster standard model and a slower reasoning model depending on the task.
OpenAI asserted in 2023 that 'GPT' should be treated as an OpenAI brand. In April 2023, the company updated the terms of service for its API to prohibit other businesses from naming their products with 'GPT.' That same month, the United States Patent and Trademark Office declined OpenAI's request to expedite its trademark application. In May 2023, OpenAI hired a brand management service to notify API customers of the naming policy. Those notices stopped short of legal threats such as infringement claims or cease-and-desist demands. Also in May, the USPTO found 'GPT' to be both descriptive and generic, a determination OpenAI was still contesting as of November 2023. The European Union Intellectual Property Office registered 'GPT' as an OpenAI trademark in spring 2023. That registration has been under challenge since spring 2024 and is pending cancellation. Switzerland also registered the trademark for OpenAI in spring 2023. Separately, OpenAI began allowing ChatGPT Plus subscribers to create custom products named GPTs, even as its own terms of service called that naming 'discouraged.'
BigBird, Reformer, and FlashAttention are among the systems researchers built to address a fundamental tension in transformer scaling. As models grow larger and handle longer sequences, memory and computation requirements expand sharply. The standard attention mechanism has a quadratic relationship to input length, meaning costs rise sharply as sequences grow longer. These newer approaches introduced sparse attention patterns and memory-efficient computation to support longer contexts at lower cost. Certain capabilities of large GPT models do not appear gradually as models grow. Multi-step reasoning and in-context learning are among the abilities that are absent below certain thresholds of size, training data, and compute. Research suggests these capabilities do not scale linearly. They appear at a threshold and are absent below it. That pattern has complicated evaluation: a benchmark may show no improvement across many model generations and then reveal a sudden jump at scale. Training models to reach those thresholds carries significant environmental costs. Large-scale training requires substantial computational resources and contributes to measurable increases in energy consumption. Researchers and observers have called for more efficient training methods and greater transparency in reporting how much compute a model required to build.
Up next
Updated
Common questions
What is a generative pre-trained transformer (GPT)?
A generative pre-trained transformer is a type of large language model built on the transformer neural network architecture, first described in a 2017 paper by Google researchers. GPT models are first trained on large, unlabeled text datasets to predict the next token in a sequence, then fine-tuned on labeled data for specific tasks. OpenAI introduced the first GPT model on the 11th of June 2018.
When was ChatGPT launched and which GPT model powered it?
OpenAI launched ChatGPT on the 30th of November 2022. The chatbot was based on GPT-3.5 and was built by refining InstructGPT using reinforcement learning from human feedback, with human AI trainers providing dialogue data in which they played both the user and the AI.
How many parameters does GPT-3 have?
GPT-3 has 175 billion parameters and was released by OpenAI on the 28th of May 2020. It demonstrated strong few-shot learning, performing tasks it had never explicitly trained for when given only a handful of examples in the prompt.
Which platforms integrated GPT-4 after its release?
GPT-4 was integrated into Microsoft Copilot, GitHub Copilot, Snapchat, Khan Academy, and Duolingo following its release on the 14th of March 2023.
Why did the USPTO find that GPT could not be trademarked by OpenAI?
In May 2023, the United States Patent and Trademark Office found 'GPT' to be both descriptive and generic, making it difficult to register as a distinctive brand. OpenAI had previously asked the USPTO to expedite the application, but that request was declined in April 2023, and OpenAI was still contesting the determination as of November 2023.
What are emergent abilities in GPT models?
Emergent abilities are capabilities, such as multi-step reasoning and in-context learning, that appear in large language models only after they exceed certain thresholds of size, training data, and compute. These abilities are absent in smaller versions of the same models and do not scale gradually. Research suggests they appear at a threshold rather than improving steadily with scale.
All sources
60 references cited across the entry
- 1How does GPT-4 work and how can you start using it in ChatGPT?Mohammed Haddad
- 2Generative AI and FutureLuhui Hu — November 15, 2022
- 4Generative AI: a game-changer society needs to be ready forJanuary 9, 2023
- 5MagazineThe A to Z of Artificial IntelligenceApril 13, 2023
- 7NewsAn understanding of AI's limitations is starting to sink inJune 11, 2020
- 8JournalWhy Does Unsupervised Pre-training Help Deep Learning?Dumitru Erhan et al. — JMLR Workshop and Conference Proceedings — March 31, 2010
- 9Magazine8 Google Employees Invented Modern AI. Here's the Inside StorySteven Levy
- 10JournalHPEGPrSumm: a transformer-based text summarization with prompt tuningVaishali et al. — November 2025
- 11JournalA new transformer-based generative chatbot using CycleGAN approachNura Esfandiari et al. — November 2025
- 12JournalTransformer-Based Natural Language Processing Model for Automated Clinical Diagnosis and Electronic Health Record SummarizationRashmi Jain et al. — 2026
- 13Improving Language Understanding by Generative Pre-TrainingAlec Radford et al. — June 11, 2018
- 14JournalGenerative Artificial Intelligence Models: A SurveyManal Almuammar et al. — 2026
- 15JournalChatGPT: A comprehensive review on background, applications, key challenges, bias, ethics, limitations and future scopePartha Pratim Ray — 2023
- 16JournalLanguage models are unsupervised multitask learnersAlec Radford et al. — February 14, 2019
- 17OpenAI's new multitalented AI writes, translates, and slandersJames Vincent — February 14, 2019
- 18OpenAI has published the text-generating AI it said was too dangerous to shareJames Vincent — November 7, 2019
- 19MagazineWeb Semantics: Microsoft Project Turing introduces Turing Natural Language Generation (T-NLG)Bruce Sterling — February 13, 2020
- 20Language Models are Few-Shot LearnersTom B. Brown et al. — May 28, 2020
- 21MagazineOpenAI Releases GPT-3, The Largest Model So FarRam Sagar — June 3, 2020
- 22JournalHow does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their SourcesYao Fu et al. — 2022
- 23OpenAI's GPT-4 exhibits "human-level performance" on professional benchmarksBenj Edwards — March 14, 2023
- 24GPT-4 Technical ReportOpenAI — March 15, 2023
- 25GPT-4 takes the world by storm - List of companies that integrated the chatbotAman Gupta — March 21, 2023
- 26EleutherAI Open-Sources Six Billion Parameter GPT-3 Clone GPT-JAnthony Alford — July 13, 2021
- 27OpenAI unveils GPT-4o, a fresh multimodal AI flagship modelThomas Colburn — May 13, 2024
- 28How OpenAI's o3, Grok 3, DeepSeek R1, Gemini 2.0, and Claude 3.7 Differ in Their Reasoning ApproachesDr Tehseen Zia — 2025-03-29
- 29Introducing the Center for Research on Foundation Models (CRFM)August 18, 2021
- 30Reflections on Foundation ModelsOctober 18, 2021
- 31Multimodal Language Models: The Future of Artificial Intelligence (AI)Arham Islam — March 27, 2023
- 32How Do DALL·E 2, Stable Diffusion, and Midjourney Work?Arham Islam — November 14, 2022
- 33Google Launches Muse, A New Text-to-Image Transformer ModelShritama Saha — January 4, 2023
- 34Visual ChatGPTChenfei Wu (et-al) — March 8, 2023
- 35Attention Is All You NeedAshish Vaswani et al. — 2017
- 36JournalEfficient Transformers: A SurveyYi Tay et al. — 2022
- 37Big Bird: Transformers for Longer SequencesManzil Zaheer et al. — 2020
- 38Reformer: The Efficient TransformerNikita Kitaev et al. — 2020
- 39Flash Attention: Revolutionizing Transformer EfficiencyAayush Mittal — 2024-07-17
- 40Scaling Laws for Neural Language ModelsJared Kaplan et al. — 2020
- 41Training Compute-Optimal Large Language ModelsJordan Hoffmann — 2022
- 42Emergent Abilities of Large Language ModelsJason Wei — 2022
- 43JournalA Survey of Large Language ModelsWayne Xin Zhao — 2026
- 44ChatGPT creator OpenAI is asking startups to remove 'GPT' from their namesWilliam Hicks — May 10, 2023
- 45Brand GuidelinesOpenAI — April 24, 2023
- 47Introducing GPTSMarch 13, 2024
- 48NewsOpenAI Unsuccessful At Speeding Up Its Attempt To Trademark 'GPT'Alexa Heah — April 26, 2023
- 49NewsOpenAI's Effort to Trademark 'GPT' Crushed by FedsJody Serrano — February 16, 2024
- 52OpenAI sichert sich in der Schweiz "GPT" als MarkennameReto Vogt — 2024-02-20
- 53China rejects OpenAI's GPT-5 trademark applicationBen Jiang — August 12, 2025
- 56On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?Emily M. Bender et al. — 2021
- 57Taxonomy of Risks posed by Language ModelsLaura Weidinger et al. — 2022
- 58On the Risk of Misinformation Pollution with Large Language ModelsYikang Pan et al. — 2023
- 59Energy and Policy Considerations for Deep Learning in NLPEmma Strubell et al. — 2019
- 60JournalReconciling the contrasting narratives on the environmental impact of large language modelsShaolei Ren et al. — 2024