
CDial-GPT (Chinese Dialogue GPT)
Language541 ops95.5M params
GPT-2 is a decoder-only Transformer trained on WebText that picks up many language tasks with no explicit supervision.
Language · 541 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
GPT-2 is a Transformer language model trained on WebText, a new dataset of millions of webpages, and the paper's claim is that such a model begins to learn tasks like question answering, translation and summarization without any explicit supervision. The largest model has 1.5B parameters and reaches state of the art on 7 of 8 tested language modeling datasets zero-shot, while still underfitting WebText. The authors' motivation is a move away from narrow experts toward general systems that perform many tasks without a hand-labelled dataset for each.
Architecturally it largely follows the OpenAI GPT model with a few modifications. Layer normalization moves to the input of each sub-block, like a pre-activation residual network, and an extra layer normalization is added after the final self-attention block. A modified initialization accounts for the accumulation on the residual path as the model gets deeper. The vocabulary is expanded to 50,257 and the context size from 512 to 1024 tokens. Four sizes were trained: 117M, 345M, 762M and 1542M parameters, with 12, 24, 36 and 48 layers and model widths from 768 to 1600. The smallest is equivalent to the original GPT and the second smallest to the largest BERT.
The paper's headline demonstration is reading comprehension: conditioned on a document plus questions, the model's answers reach 55 F1 on CoQA, matching or exceeding 3 of 4 baseline systems without using the 127,000+ training examples. Even so, all four models still underfit WebText, with held-out perplexity still improving given more training time.
Key idea. GPT-2 shows that a high-capacity Transformer language model trained on WebText performs downstream tasks zero-shot, with performance improving log-linearly in capacity across tasks.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@article{gpt22019,
title = {Language Models are Unsupervised Multitask Learners},
author = {Alec Radford and Jeffrey Wu and Rewon Child and David Luan and Dario Amodei and Ilya Sutskever},
year = {2019},
journal = {OpenAI technical report}
}