NLP · GPT-1 · 2018 / OpenAI
Improving Language Understanding by Generative Pre-Training
A structured reading of the paper that turned generative language-model pretraining into a general recipe for natural language understanding.
Overview
Read GPT-1 as a paper about a change in interface. Before this line of work, many NLP systems were built around task-specific architectures: one design for entailment, another for question answering, another for sentiment, another for paraphrase detection. GPT-1 proposes a different center of gravity: first train one large language model on raw text, then adapt many tasks to that model.
The paper's headline idea is now familiar: use on unlabeled text, then use on labeled tasks. But in 2018, this was not yet the default NLP recipe. The default mental model was still closer to: build a good supervised model for a specific dataset, perhaps initialize it with pretrained word embeddings, and tune the architecture around that task.
GPT-1 changes that story. Its question is not simply, "Can we improve one benchmark?" It asks whether a single language model, trained only to predict the next token, can become a general backbone for .
This is why the paper is a bridge between classic NLP and large language models. It still evaluates on classic NLU benchmarks such as GLUE, RACE, SNLI, and CoLA. But the organizing idea is already the LLM idea: language modeling on large-scale text can produce a reusable base model, and downstream tasks should be expressed through that base model's text interface.
Why this paper appeared
GPT-1 did not appear from nowhere. It was the meeting point of several earlier observations. The paper should be read as a synthesis: word embeddings had shown that unlabeled text was useful; semi-supervised pretraining had shown that unsupervised objectives could improve supervised learning; OpenAI's sentiment-neuron work suggested that language modeling could learn surprisingly high-level semantic features; and the Transformer provided an architecture that could carry these ideas at a larger scale.
| Precursor | What it already showed | What was still missing | How GPT-1 uses it |
|---|---|---|---|
| Word embeddings | Word2Vec and GloVe showed that unlabeled text could produce useful word-level representations. | They mainly transfer word-level information, not a full contextual language processor. | GPT-1 asks whether the whole model, not only embeddings, can be pretrained and transferred. |
| Unsupervised pretraining in deep learning | Earlier deep-learning work used unsupervised objectives to find good initializations. | The idea existed, but it was not yet a general-purpose NLP recipe across many understanding tasks. | GPT-1 turns initialization into a scalable language-understanding strategy. |
| Sentiment neuron | A character-level language model trained on reviews unexpectedly learned a strong sentiment feature. | It was a striking single-domain phenomenon, not yet a broad NLU framework. | GPT-1 asks whether language modeling can learn many high-level features, not only sentiment. |
| ULMFiT and LM fine-tuning | Language-model pretraining followed by fine-tuning had already shown strong results for text classification. | Most evidence was still concentrated on classification and LSTM-style models. | GPT-1 expands the pattern to entailment, QA, similarity, commonsense reasoning, and classification. |
| Transformer | Self-attention made long-range token interactions easier and training more parallelizable than recurrent networks. | The original Transformer was introduced for sequence-to-sequence translation. | GPT-1 keeps the causal decoder stack and uses it as a general-purpose language model backbone. |
The most story-like precursor is the . OpenAI had trained a language model to predict the next character in Amazon reviews and found that the model developed a feature strongly aligned with sentiment. The important lesson was not merely that sentiment analysis worked. The lesson was that prediction-only training could create semantic structure inside the model. See OpenAI's Unsupervised sentiment neuron ↗ blog post.
GPT-1 turns that clue into a broader program. If a language model can learn sentiment while only predicting text, maybe a larger Transformer language model trained on long books can learn many kinds of linguistic and world knowledge: syntax, coreference, entailment, discourse, commonsense, and answer plausibility. OpenAI's own GPT-1 blog explicitly frames the work as following from the sentiment-neuron result; see Improving language understanding with unsupervised learning ↗ .
GPT-1 sits at a fork in the post-Transformer NLP timeline. Transformer made large attention-based language models practical. GPT-1 then explored the causal, decoder-only branch: train a model to predict the next token, and reuse the same model for language understanding through fine-tuning. BERT later pushed a different branch: bidirectional, encoder-only pretraining designed especially for NLU. This contrast makes GPT-1 easier to place historically: it is the generative pretraining route that later leads naturally to GPT-2, GPT-3, and modern decoder-only LLMs.
The paper's thesis
The paper begins from a data asymmetry. Labeled task datasets are small and expensive, but raw text is abundant. A purely supervised NLU model must learn both language and task behavior from limited annotations. GPT-1 separates these two jobs. First, learn broad language knowledge from raw text. Then, use labeled data only to teach the model how to map that knowledge into a task-specific decision.
Large gains on language-understanding tasks can be achieved by first training a language model on a diverse unlabeled corpus and then fine-tuning it on each supervised task, while making only minimal changes to the model architecture.
This is a paper because it uses both unlabeled and labeled data. But its deeper claim is about representation and transfer. The authors do not want a feature extractor that gives word vectors to many separate systems. They want the full pretrained neural network to become the reusable object.
Old center
The task architecture is central. Pretrained features, if used, are added to a supervised system designed for one task.
GPT-1 center
The pretrained language model is central. Tasks are converted into token sequences that the same model can read.
Later LLM center
The model interface becomes natural language itself. Many tasks are handled by prompting, instruction tuning, or lightweight adaptation rather than separate architectures.
Method
The method has two main stages and one interface trick. The stages are pretraining and fine-tuning. The interface trick is : convert every task into a text sequence that a causal Transformer can process.
| Stage | Data | Objective | What comes out |
|---|---|---|---|
| 1. Generative pre-training | Large unlabeled text corpus: BooksCorpus | Predict each token from previous tokens. | A decoder-only Transformer whose parameters encode transferable language knowledge. |
| 2. Discriminative fine-tuning | Task-specific labeled datasets such as SNLI, RACE, SST-2, CoLA, and others | Predict task labels or answer choices using a small output layer on top of the pretrained model. | A task-adapted model that still uses almost the same architecture. |
| Optional auxiliary LM during fine-tuning | The same labeled task examples, treated also as token sequences | Optimize the task loss plus a weighted language-model loss. | Regularization and sometimes faster convergence, especially on larger datasets. |
The paper uses for pretraining. That choice matters. Books are long, contiguous sequences, so the model can learn dependencies across many sentences. A shuffled sentence corpus can teach local language statistics, but it destroys many long-range structures that matter for narrative, discourse, reference, and commonsense reasoning.
During fine-tuning, the paper adds only a small number of task-specific parameters: the output layer for the target labels and embeddings for special delimiter tokens. This is why the paper calls the model task-agnostic. The model is not completely identical across tasks, but the Transformer body is reused.
Mathematical core
The mathematical framework is easiest to understand if we separate training stages from
training objectives. GPT-1 has two main stages: first, unsupervised language-model pretraining;
second, supervised fine-tuning on downstream tasks. The paper writes these objectives as L₁,
L₂, and L₃.
L₁ is the language-model objective. L₂ is the supervised task objective.
L₃ is not a third training stage; it is the fine-tuning objective when the authors add
an auxiliary language-model term during supervised fine-tuning.
| Objective | Where it is used | What it trains the model to do | Intuition |
|---|---|---|---|
L₁ | Pretraining; also reused as an auxiliary term during fine-tuning | Predict the next token from previous tokens | Learn general language structure from unlabeled text. |
L₂ | Supervised fine-tuning | Predict the correct downstream task label | Adapt the pretrained model to a specific NLU task. |
L₃ | Fine-tuning with an auxiliary objective | Optimize the task label objective and the language-model objective together | Learn the task while preserving general language-model ability. |
1. Language-model pretraining: L₁
The unlabeled corpus is treated as a long sequence of tokens:
U = {u₁, u₂, ..., uₙ}
GPT-1 trains the model to predict each token from the previous k tokens:
L₁(U) = Σᵢ log P(uᵢ | uᵢ₋ₖ, ..., uᵢ₋₁; Θ)
Here, Θ means all parameters of the Transformer language model. The objective is maximized,
so the model is rewarded when it assigns high probability to the real next token. In ordinary deep-learning
code, this is often implemented by minimizing the negative log-likelihood, but the idea is the same.
Suppose the text is The movie was surprisingly good. A language model learns to predict
movie after seeing The, then was after seeing The movie,
and so on. This looks simple, but to do it well across billions of words, the model must learn syntax,
semantics, topic, style, entities, and long-range dependencies.
This is the heart of : the model learns from raw text without task labels by predicting what comes next.
2. Transformer language model
Before the tokens enter the Transformer blocks, GPT-1 turns them into vectors. The initial hidden representation combines token embeddings and positional embeddings:
h₀ = U Wₑ + Wₚ Wₑ is the token embedding matrix. It maps each token into a vector. Wₚ is the
position embedding matrix. It tells the model where each token appears in the sequence. Position information
is necessary because self-attention alone does not know whether a word came first, last, or in the middle.
hₗ = transformer_block(hₗ₋₁)
Each Transformer block applies masked self-attention and a feed-forward network. The mask is important:
when predicting token uᵢ, the model can attend only to earlier tokens, not future tokens.
This is why GPT-1 is a decoder-only, autoregressive language model.
P(u) = softmax(hₙ Wₑᵀ) After the final Transformer layer, the hidden state is projected back to the vocabulary. The softmax produces a probability distribution over possible next tokens.
3. Supervised fine-tuning: L₂
After pretraining, the model knows how to model text, but it does not yet know the label space of a specific
task. For a supervised dataset C, each example contains an input sequence
x¹, ..., xᵐ and a label y.
GPT-1 feeds the whole input sequence into the pretrained Transformer, takes the final hidden representation,
and uses a new linear layer Wᵧ to predict the task label:
P(y | x¹, ..., xᵐ) = softmax(hₗᵐ Wᵧ) The supervised fine-tuning objective is:
L₂(C) = Σ₍ₓ,ᵧ₎ log P(y | x¹, ..., xᵐ) L₂ rewards the model for assigning high probability to the correct label. For sentiment classification,
the label might be positive or negative. For natural language inference, the label might be
entailment, contradiction, or neutral.
GPT-1 does not train only the final classifier. The pretrained Transformer parameters are also updated. Pretraining gives the model a strong initialization; fine-tuning adapts that model to the labeled task.
4. Fine-tuning with an auxiliary language-model objective: L₃
The authors also found it useful to keep a language-model objective during fine-tuning. This produces the combined objective:
L₃(C) = L₂(C) + λ L₁(C)
The main task objective is L₂(C). The auxiliary term is L₁(C), which means the model
continues to do next-token prediction on the downstream task's input text. The coefficient λ is the weight
that controls how strongly the auxiliary language-model objective influences fine-tuning.
L₂(C)
The model learns the task label. For example, it learns that a given movie review should be classified as
positive.
λ L₁(C)
The model continues to model the task text as language. This provides token-level training signals and acts like a regularizer.
L₃(C)
The model learns the supervised task while being encouraged not to forget the language-modeling ability learned during pretraining.
The core GPT-1 recipe is pretrain with L₁, then fine-tune with L₂. The auxiliary
language-model objective is an extra fine-tuning choice. In the paper's ablation study, removing it does not
destroy performance, which shows that the main source of GPT-1's improvement is generative pretraining itself,
not the auxiliary term.
In one sentence: L₁ teaches the model general language modeling, L₂ teaches the model
the downstream task, and L₃ combines task learning with an auxiliary language-modeling signal during
fine-tuning.
Why decoder-only is enough
A common question is: if GPT-1 is a decoder-only generative model, why can it do understanding tasks? The answer is that GPT-1 changes the task interface. A causal decoder can only look left, but if all the information needed for a decision is placed before a final decision position, that final position can attend to the entire input.
In the original encoder-decoder Transformer, the encoder reads a source sequence and the decoder generates a target sequence. GPT-1 does not need the encoder because its pretraining target is not translation. It only needs an autoregressive model of text:
P(x) = P(x₁) P(x₂ | x₁) P(x₃ | x₁, x₂) ... P(xₙ | x₍<n₎)
The makes sure token i cannot attend to
future tokens. This is exactly the constraint needed for next-token prediction. The same constraint does not prevent NLU
fine-tuning, because the final extraction position is placed after the premise, hypothesis, question, document, or answer
option.
Decoder-only is not saying the model only generates and cannot understand. It says the model's universal operation is causal sequence modeling. Understanding tasks become possible when their inputs are serialized into a sequence and the decision is made at the end.
This is one of GPT-1's most important ideological moves. Rather than forcing the architecture to match every task's structure, the paper forces the task to match the model's sequence interface.
Architecture and task interface
GPT-1 uses one pretrained causal Transformer as the shared text-processing engine. The important design move is not to build a separate architecture for every NLU task. Instead, the paper rewrites each task into a token sequence that a decoder-only language model can read from left to right.
Instead of asking, "What special model should we design for entailment, similarity, or QA?" GPT-1 asks, "How can we frame this task as a sequence so the same pretrained Transformer can solve it?"
The same decoder-only model works for understanding tasks because GPT-1 places the information to be judged before a final decision position. That final representation can attend to the whole framed input on its left, so it can be used for classification or answer selection.
| Task type | Original structure | GPT-1 transformation | How the decision is made | Concrete intuition |
|---|---|---|---|---|
| Text classification | One text sequence | <Start> text <Extract> | Use the final extraction representation to predict the class label. | SST-2: <Start> The movie was surprisingly good. <Extract> → positive |
| Textual entailment / NLI | Premise + hypothesis | <Start> premise <Delim> hypothesis <Extract> | Predict entailment, contradiction, or neutral from the final representation. | Premise: A man is playing guitar. Hypothesis: A person is performing music. → entailment |
| Semantic similarity | Sentence A + sentence B, with no natural order | Run both orders: A <Delim> B and B <Delim> A, then add the two representations. | Predict whether the sentences are paraphrases or assign a similarity score. | Are 'How do I learn Python?' and 'What is the best way to study Python?' semantically similar? |
| Question answering / commonsense reasoning | Document or story + question + candidate answers | For each candidate answer: document; question <Delim> answer_k | Score each candidate independently and apply softmax over answer choices. | RACE: passage + question + option A/B/C/D → choose the best option. |
This table is the practical reason GPT-1 can be both generative and useful for NLU. Textual entailment, semantic similarity, and multiple-choice QA are not naturally single-string classification problems. GPT-1 makes them look like sequence-processing problems. Once the task is framed as a sequence, the same pretrained Transformer can be reused.
Experiments
The experiments are designed to prove breadth. The paper evaluates four task families: natural language inference, question answering and commonsense reasoning, semantic similarity, and text classification.
Model and training setup
The hyperparameters matter mainly because they show that GPT-1 is already recognizably a modern Transformer language model: deep decoder stack, BPE tokens, learned positional embeddings, dropout, Adam, warmup, and short supervised fine-tuning after a much larger unsupervised pretraining stage.
| Setup item | Value |
|---|---|
| Architecture | 12-layer decoder-only Transformer with masked self-attention |
| Hidden size | 768-dimensional states |
| Attention heads | 12 heads |
| Feed-forward inner dimension | 3072 |
| Context length | 512 tokens during pretraining |
| Tokenizer | BPE vocabulary with 40,000 merges |
| Pretraining corpus | BooksCorpus, more than 7,000 unpublished books |
| Optimizer | Adam with maximum learning rate 2.5e-4 |
| Fine-tuning | Usually 3 epochs, batch size 32, learning rate 6.25e-5 |
| Auxiliary objective weight | λ = 0.5 |
Tasks and datasets
| Task family | Dataset full name | Input | Label / target | Intuitive example |
|---|---|---|---|---|
| Natural language inference | SNLI — Stanford Natural Language Inference | Premise and hypothesis sentence pair | entailment / contradiction / neutral | Premise: A child is playing in the snow. Hypothesis: A kid is outdoors. Label: entailment. |
| Natural language inference | MNLI / MultiNLI — Multi-Genre Natural Language Inference | Sentence pairs from multiple genres such as fiction, speech, and government text | entailment / contradiction / neutral | Premise: The committee rejected the proposal. Hypothesis: The proposal was accepted. Label: contradiction. |
| Natural language inference | QNLI — Question Natural Language Inference | Question and sentence, reformulated as entailment | answerable / not answerable, or entailment-style decision | Question: Where was Tesla born? Sentence: Nikola Tesla was born in Smiljan. Label: entailment. |
| Natural language inference | RTE — Recognizing Textual Entailment | Premise and hypothesis pair | entailment / not entailment | Premise: The company acquired the startup. Hypothesis: The startup was bought. Label: entailment. |
| Natural language inference | SciTail — Science Textual Entailment | Science-domain premise and hypothesis pairs | entails / neutral | Premise: Plants need sunlight to make food. Hypothesis: Sunlight is used in photosynthesis. Label: entails. |
| Question answering | RACE — ReAding Comprehension Dataset From Examinations | Passage, question, and multiple answer options from middle- and high-school English exams | Correct answer option | Passage about a historical event + question: Why did the person leave? Options A-D. Label: one correct option. |
| Commonsense reasoning | Story Cloze Test | Four-sentence story context and two possible endings | Correct story ending | Tom forgot his umbrella. The sky got dark. It started raining. Tom ran outside. Ending A: He got wet. Ending B: He flew to the moon. Label: A. |
| Semantic similarity / paraphrase | MRPC — Microsoft Research Paraphrase Corpus | Two news sentences | paraphrase / not paraphrase | Sentence 1: The company posted a profit. Sentence 2: The firm reported earnings. Label: paraphrase. |
| Semantic similarity / paraphrase | QQP — Quora Question Pairs | Two questions from Quora | duplicate / not duplicate | Q1: How can I learn machine learning? Q2: What is the best way to study ML? Label: duplicate. |
| Semantic similarity | STS-B — Semantic Textual Similarity Benchmark | Two sentences | Similarity score, usually treated as a regression/correlation task | Sentence 1: A man is playing a guitar. Sentence 2: A person plays an instrument. Label: high similarity. |
| Text classification | SST-2 — Stanford Sentiment Treebank, binary version | Movie-review sentence | positive / negative sentiment | Text: A charming and beautifully acted film. Label: positive. |
| Text classification | CoLA — Corpus of Linguistic Acceptability | Single sentence | grammatically acceptable / unacceptable | Text: The book was read by the student. Label: acceptable. Text: The book was readed. Label: unacceptable. |
This task spread is central to the paper's argument. If GPT-1 only improved one dataset, it could be dismissed as a clever model for that dataset. By testing twelve datasets across different task types, the authors argue for a general transfer-learning recipe.
Results and baselines
The headline result is that GPT-1 reaches new state-of-the-art results on 9 of the 12 evaluated datasets. But the more important reading is comparative: the model often beats systems with architectures specifically designed for a given task, while GPT-1 keeps a mostly shared model body.
| Task group | Main reported outcome | Interpretation |
|---|---|---|
| NLI | GPT-1 improves MNLI, SNLI, SciTail, and QNLI over listed baselines; RTE is the exception. | The model transfers sentence-pair reasoning from language modeling, but very small datasets remain difficult. |
| Question answering and commonsense reasoning | GPT-1 reaches 86.5 on Story Cloze and 59.0 overall on RACE, beating strong ensemble baselines. | Long contiguous pretraining text and Transformer attention help with multi-sentence contexts and answer selection. |
| Semantic similarity | GPT-1 obtains state-of-the-art results on STS-B and QQP, while MRPC is competitive but not best. | The model can compare meanings across sentence pairs, though some datasets still favor other architectures. |
| Text classification | GPT-1 makes a large jump on CoLA and is competitive on SST-2. | The CoLA result suggests that language modeling teaches grammatical acceptability and syntax-sensitive judgments. |
| GLUE average | GPT-1 reports 72.8, above the previous listed GLUE baseline of 68.9. | The main claim is broad transfer, not dominance on every single dataset. |
What were the baselines?
The table below groups the most important models by what they were used to test.
| Baseline / comparison method | Type | Where it appears | Why it matters |
|---|---|---|---|
| ESIM + ELMo | NLI baseline with contextual word representations | SNLI comparison | ELMo provides deep contextualized word representations, but the downstream architecture is still task-specific. |
| CAFE | Compare-aggregate style model for NLI | MultiNLI, SNLI, SciTail | A strong architecture designed for sentence-pair comparison rather than a general task-agnostic model. |
| Stochastic Answer Network | NLI model | MultiNLI | A strong task-specific sentence inference baseline used to compare GPT-1's NLI performance. |
| GenSen | General sentence representation model | GLUE-style NLI comparisons | A universal sentence representation baseline; useful for asking whether GPT-1 learns stronger transferable representations. |
| Multi-task BiLSTM + Attention | Recurrent sequence model trained across tasks | QNLI, RTE, GLUE comparisons | It performs especially well on RTE, where GPT-1 underperforms, showing that GPT-1 is not uniformly best on small datasets. |
| Dynamic Fusion Net | Reading comprehension model | RACE | A task-specific machine reading model; GPT-1 beats even ensemble versions on RACE overall. |
| BiAttention MRU | Machine reading model with bidirectional attention | RACE | Another strong QA baseline; useful for showing that GPT-1 is competitive with specialized reading-comprehension systems. |
| Single-task / Multi-task BiLSTM + ELMo + Attention | GLUE baseline | CoLA, SST-2, MRPC, STS-B, QQP, GLUE average | Combines recurrent modeling with ELMo representations. GPT-1 improves the overall GLUE score over these baselines. |
| Sparse byte mLSTM | Character/byte-level language model baseline | SST-2 | A strong sentiment baseline; GPT-1 is competitive but not best on SST-2. |
The RTE result is worth keeping. GPT-1 does not win everything. RTE is small, and a multi-task BiLSTM baseline does better. This matters because it prevents an overly simple reading. The paper's claim is broad transfer from generative pretraining, not that GPT-1 automatically dominates every low-resource dataset.
Analysis
The strongest empirical result is not only that GPT-1 gets good benchmark scores. The deeper question is where the improvement comes from. Is the model better because it uses a Transformer? Because it keeps a language-modeling objective during fine-tuning? Or because unsupervised pretraining has already built useful linguistic machinery before the model ever sees task labels?
The answer is that the model's ability is distributed across the pretrained Transformer itself. GPT-1 is not merely using pretrained word vectors. It transfers a whole stack of contextual computation: token representations, attention patterns, intermediate abstractions, and higher-level sequence features. This is why the paper matters historically. It moves NLP from pretrained embeddings toward pretrained models.
1. The whole pretrained model matters
Earlier NLP systems often transferred only word embeddings. That helped, but it meant the downstream model still had to learn most of the task-specific reasoning from labeled data. GPT-1 tests a more ambitious idea: after a language model has been trained on large amounts of text, every layer of the network may contain reusable language-processing ability.
When more pretrained layers are transferred into downstream tasks, performance keeps improving. Transferring embeddings is useful, but transferring deeper Transformer blocks is even better. Full transfer gives the strongest result. The lesson is that the pretrained model has learned more than word meaning; it has learned contextual operations that downstream tasks can reuse.
GPT-1 changes the unit of transfer. The reusable object is no longer just a vector for each word. It is a trained sequence-processing system that can be adapted to classification, entailment, similarity, and multiple-choice reasoning.
2. Task behavior appears before task training
GPT-1 is still mainly a fine-tuning paper. It is not yet a prompting paper in the later GPT-3 sense. But the authors notice something important: even before supervised fine-tuning, the pretrained language model already shows weak but meaningful task-relevant behavior.
This is tested with simple heuristics. The model is not given a task-specific classifier. Instead, the researchers ask whether language-model probabilities themselves can be used as a crude decision rule. If a sentence is grammatical, the language model should assign it higher probability. If an answer makes sense after a passage and question, the model should assign that continuation higher probability. If a sentiment completion is more likely after a review, that probability can be treated as a sentiment signal.
| Task | Zero-shot heuristic | Why this makes sense for a language model |
|---|---|---|
| CoLA | Use the average token log-probability assigned by the language model and threshold it. | A grammatical sentence should look more probable to a good language model than an ungrammatical sentence. |
| SST-2 | Append a cue such as 'very' and compare the model's probability for 'positive' versus 'negative'. | Sentiment classification is turned into a constrained language-completion problem. |
| RACE | Condition on document and question, then choose the answer with the highest average token log-probability. | A correct answer should form a more natural continuation of the passage-question context. |
| Winograd-style pronoun resolution | Replace the pronoun with each possible referent and compare continuation probabilities. | The model's probability can reveal which referent makes the sentence more coherent. |
These heuristic scores generally improve as language-model pretraining continues. That does not mean GPT-1 is already a strong zero-shot system. The more important point is that next-token prediction appears to create pieces of task behavior as a byproduct. The model learns patterns that look like grammar judgment, sentiment recognition, answer selection, and coreference resolution because those abilities help it predict text.
This is one of the bridges from GPT-1 to later GPT systems. GPT-1 still relies on fine-tuning, but it already suggests that sufficiently trained language models contain latent task abilities before explicit task training.
3. What actually causes the improvement?
The ablations separate three possible explanations. Maybe a Transformer is already strong enough without pretraining. Maybe the auxiliary language-modeling objective during fine-tuning is the key. Or maybe the main source is the initial generative pretraining on unlabeled text.
| Variant | Average score | What it tells us |
|---|---|---|
| Full Transformer with auxiliary LM | 74.7 | The default setup: pretrained Transformer plus supervised fine-tuning and auxiliary language-model objective. |
| Transformer without pretraining | 59.9 | The largest drop. The same architecture trained from scratch on labeled tasks lacks the language knowledge learned from BooksCorpus. |
| Transformer without auxiliary LM | 75.0 | Auxiliary LM is helpful on some large tasks but is not the central reason GPT-1 works. |
| LSTM with auxiliary LM | 69.1 | Pretraining still helps, but the recurrent architecture transfers less effectively than the Transformer. |
The largest drop happens when pretraining is removed. A Transformer trained only on supervised task data performs far worse than the pretrained version. This shows that the architecture alone is not enough. The model needs the broad linguistic knowledge and strong initialization produced by language modeling on large unlabeled text.
Replacing the Transformer with an LSTM also hurts, which supports the choice of self-attention. The LSTM can be pretrained, but it does not transfer as well. Long-range attention gives the Transformer a better way to store and reuse dependencies across tokens, sentences, and structured inputs.
Removing the auxiliary language-modeling objective during fine-tuning is much less decisive. It helps some larger tasks, but it is not the main reason the system works. The central mechanism is still the same: pretrain a high-capacity causal Transformer on unlabeled text, then adapt the whole model to supervised tasks.
The evidence points to a clear hierarchy. Generative pretraining is the main source of transfer. The Transformer is the right carrier for that transfer. The auxiliary language-modeling objective is a useful training detail, but not the core discovery.
Why it became a bridge
GPT-1 is still an NLP paper in its benchmarks and evaluation style. It fine-tunes on supervised datasets and reports task-specific scores. But it is already an LLM paper in its worldview: the most important artifact is the pretrained language model, and the most important training signal is large-scale text prediction.
Its immediate legacy is the pretrain-then-fine-tune recipe. Its deeper legacy is the belief that next-token prediction is not merely a generation trick; it can be a general-purpose representation-learning objective. GPT-2 scaled this idea and emphasized zero-shot transfer more strongly. GPT-3 scaled it further and made in-context learning central. Scaling laws later studied how predictable improvements emerge as model size, data, and compute increase.
This is why GPT-1 is so useful in a classic-paper library. It is not only a model checkpoint or a benchmark result. It is a conceptual pivot: instead of treating language models as auxiliary tools for NLP systems, it treats the language model as the system that downstream NLP tasks should adapt to.
Takeaways
- GPT-1 is best read as a transition paper: it moves NLP from task-specific supervised systems toward a general pretrained language-model interface.
- The method is simple but historically powerful: generative pretraining on unlabeled text, then discriminative fine-tuning on labeled tasks.
- Decoder-only is not a limitation for NLU if the whole task input is placed before a final decision position.
- The paper's input transformations are as important as the architecture because they make many tasks look like one sequence-processing problem.
- The experiments show broad transfer across NLI, QA, similarity, commonsense reasoning, and classification, not merely better sentiment classification.
- The analysis shows that pretraining is the main source of the gain, Transformer is a better carrier than LSTM, and auxiliary LM is helpful but not fundamental.
- The zero-shot analysis is a historical clue: even before GPT-2 and GPT-3, researchers could see task-relevant behavior emerging from language modeling alone.
- The paper's legacy is not just GPT-1 as a model; it is the recipe that later scaling work would amplify.