GPT-2
Written by GPT-6 Luna from the web 24 of 70 sentences cited
An AI wrote this article, and it can be wrong.
GPT-2 is a family of autoregressive language models developed by OpenAI and introduced in 2019. It generates text by predicting the next token from the tokens that came before, a training objective that can support many kinds of text continuation without requiring a separate model for each task.1
The largest GPT-2 model has about 1.5 billion parameters and was trained on WebText, a collection of text extracted from links shared on Reddit. GPT-2 drew attention both for its ability to produce coherent passages and for OpenAI’s decision to release it in stages, initially withholding the largest version over concerns about possible misuse. The full model was made public in November 2019, making the staged release a prominent case in debates over how AI research should be published.23
Origins and release
OpenAI announced GPT-2 on February 14, 2019, in a blog post titled “Better language models and their implications,” alongside the research paper “Language Models are Unsupervised Multitask Learners.” The work followed the original GPT model, extending the approach of pretraining a Transformer on text and then using its learned representations for language tasks. The researchers’ central question was whether a model trained simply to predict text could display useful performance on tasks it had not been specifically trained to perform.12
The paper described four model sizes, reported as approximately 117 million, 345 million, 762 million and 1.542 billion parameters. OpenAI later noted that errors in the original parameter counts led to the smaller models being widely referred to as 124 million, 355 million and 774 million instead. In February 2019, the company released only the smallest model and the research paper; the larger weights were initially withheld.41
OpenAI subsequently released the models in stages: a medium version in May, a 774-million-parameter version on August 20, and the 1.5-billion-parameter version on November 5, 2019. Along the way, it also published sample outputs and a detection baseline, and worked with outside researchers on questions about potential benefits and misuse. The November release included the largest model’s code and weights, completing the staged plan.53
Training data
GPT-2 learned from WebText, a corpus OpenAI assembled from text on webpages linked by users of Reddit. The paper says the source collection comprised 45 million links; after text extraction, deduplication and heuristic cleaning, the version used in the study contained slightly more than eight million documents and about 40 gigabytes of text. The data excluded links created after December 2017, so the model’s training information did not include later events.2
The corpus was not simply a collection of Reddit posts: it contained text from external pages to which Reddit users had linked. OpenAI said it applied a blocklist to exclude links from some subreddits, including ones associated with sexually explicit or otherwise offensive content. The company published a list of prominent WebText domains, among them news organizations, blogs, reference sites and code-hosting services.6
WebText itself was not released in full with GPT-2. This means that the public received the model and implementation materials, but not the complete training corpus needed to reproduce the original training process exactly. OpenAI did release a portion of the WebText data and a dataset of model outputs during the staged process, which allowed some study of the system without making the complete corpus available.57
Architecture and operation
GPT-2 is a decoder-only Transformer: it processes a sequence from left to right and estimates the probability of the next token given the preceding context. During training, the system repeatedly adjusted its parameters to make its predictions more likely to match the next token in WebText. At generation time, it uses the input prompt and its learned probability distribution to select successive tokens, extending the text one step at a time.2
The largest model has 48 Transformer layers, a model width of 1,600 and a context length of 1,024 tokens, according to the paper’s architecture table. GPT-2 also used byte-level byte-pair encoding, a way of dividing text into tokens that can represent common sequences compactly while retaining the ability to process unusual strings. The researchers chose this representation to avoid relying on a fixed word vocabulary and to handle text across different formats.2
The same next-token objective was used for all inputs; the model was not given a separate supervised training procedure for every task reported in the paper. Instead, task cues could be supplied in the text itself—for example, a passage followed by a question, or an English sentence followed by a prompt for a translation. This made the model’s performance dependent on what it had learned from its training text and how the task was presented in the prompt.2
Capabilities
OpenAI evaluated GPT-2 on language modeling benchmarks and on several tasks presented through text prompts, without task-specific fine-tuning. The paper reported that the largest model achieved state-of-the-art results on seven of eight tested language-modeling datasets at the time of publication. The result on the remaining benchmark was notably weaker, and the authors said the models still underfit their own training corpus.2
The authors also tested reading comprehension, translation, summarization and question answering. On the CoQA reading-comprehension benchmark, they reported a score of 55 F1 for the largest model, which matched or exceeded three of four comparison systems without using CoQA’s more than 127,000 training examples. These results illustrated the paper’s claim that a general language model could sometimes perform tasks from patterns in its training data and the prompt, even though it had not been trained directly on the task’s labeled examples.2
GPT-2’s outputs could be fluent and topically consistent for extended passages, particularly when given a suitable prompt. But fluency did not guarantee factual accuracy, sound reasoning or reliable task completion. OpenAI’s model card warned that the outputs could be subtly inaccurate or incoherent, and advised users to evaluate the model carefully, especially in applications where reliability mattered.64
Release debate
OpenAI initially withheld the largest GPT-2 model because it was concerned that the technology could be used to generate deceptive, biased or abusive text at scale. The company characterized the staged release as an experiment in responsible disclosure: releasing smaller models first would, it argued, allow researchers and the public time to examine their properties and discuss possible impacts before the most capable version became widely available.1
The decision prompted debate about whether restricting access was justified, whether it would meaningfully reduce risks, and who should decide when research is safe to publish. In a 2019 discussion organized with the Partnership on AI, participants expressed differing views: some favored openness, some considered prior review potentially useful, and others supported sharing with trusted groups. The organization reported that its small, informal survey of 20 researchers did not show consensus on the appropriate publication norm.8
OpenAI’s later release announcement described research it had undertaken with partner organizations. Cornell researchers surveyed people’s judgments of generated passages, while researchers at the Middlebury Institute of International Studies demonstrated that fine-tuning GPT-2 could produce propaganda associated with several ideological positions. OpenAI also released a detector it said achieved about 95% accuracy on a particular test of GPT-2-generated text, while cautioning that it was not reliable enough to be used on its own. These findings informed the company’s decision, but did not settle the broader argument over how to balance openness and precaution.3
Limitations and risks
GPT-2 could reproduce biases present in its training material, and its broad training data included factual errors as well as biased text. OpenAI’s model card reported that its own probes examined gender, race and religion, but described them as qualitative and incomplete rather than a comprehensive assessment. It cautioned against deploying the model in systems that interact with people without first studying biases relevant to the intended use.63
Researchers later demonstrated a privacy risk associated with large language models: by querying GPT-2, they extracted hundreds of verbatim text sequences from its training data. The extracted examples included publicly available personal information and other material that appeared in only one training document. The study showed that training on publicly accessible webpages did not, by itself, prevent a model from memorizing and reproducing some of their contents.9
Automated detection of generated text also proved difficult. OpenAI reported that detector performance depended on the model’s sampling method and that fine-tuning could make detection less accurate; it therefore recommended combining statistical methods with human judgment and other information about a text’s origin. Such findings reflected a broader limitation of the model: its outputs could appear plausible while remaining difficult to verify from style alone.35
Significance and legacy
GPT-2 became an influential example of scaling a general-purpose language model and using it across tasks without first training a separate task-specific system. Its paper presented this as “zero-shot” task transfer, although later work noted that some of the reported setups included examples or task cues in the prompt. The distinction between zero-shot use and learning from examples in context became more explicit in subsequent language-model research.210
In 2020, OpenAI’s GPT-3 paper described its approach as similar to GPT-2’s while scaling the model to 175 billion parameters and systematically testing zero-shot, one-shot and few-shot performance. GPT-2 thus formed a step in the progression toward larger models whose tasks could be specified through prompts, even as GPT-3’s authors continued to document weaknesses and methodological concerns.10
GPT-2’s history also made model-release decisions part of public discussion about AI research. The staged approach gave researchers a period to study possible harms and benefits before the largest weights were published, but it also raised questions about the effectiveness and legitimacy of unilateral release restrictions. The case helped bring attention to proposals for shared standards on evaluating high-stakes AI publications, without producing a universal agreement on when open release should be delayed.118
OpenAI published GPT-2’s code and model weights, but not the full WebText training corpus, so “open-source” describes the public availability of important model materials rather than complete reproducibility of training. The project’s public GitHub repository, which contains code and documentation, was archived by its owner on April 8, 2026, and is now read-only. Its model card continues to advise users to assess the model’s limitations and suitability for their particular applications.412
References
12 sourcesGPT-2: 6-month follow-upopenai.com· cited 3×
gpt-2/model_card.md at master · openai/gpt-2github.com· cited 3×
GPT 2 August Reportcdn.openai.com
When Is It Appropriate to Publish High-Stakes AI Research? - Partnership on AIpartnershiponai.orgApr 2, 2019· cited 2×
Extracting Training Data from Large Language Modelsarxiv.orgDec 14, 2020
proceedings.neurips.cc/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdfproceedings.neurips.cc· cited 2×
Release Strategies and the Social Impacts of Language Modelsarxiv.orgAug 24, 2019
Releases · openai/gpt-2github.com