LIVE
Diagram of the Transformer architecture
Image: Daniel Voigt Godoy
Retrospective · Milestones

The language model breakthrough: GPT-1, BERT and the year computers learned to read

· AInu-redaktionen

In 2018 ULMFiT, ELMo, OpenAI's GPT-1 and Google's BERT showed that a model which first reads huge amounts of text can solve almost any language task. It was the start of the era that led to ChatGPT.

Retrospective written in 2026 by the AInu editors with the help of AI, based on the sources below.

When ChatGPT launched in November 2022 it looked like a bolt from the blue. But the groundwork was laid four years earlier, in a single year when several research groups independently showed the same thing: a model first trained to predict words in large amounts of ordinary text learns something general about language, and that knowledge can then be used for almost anything. In July 2018 the researcher Sebastian Ruder wrote that natural language processing’s “ImageNet moment” had arrived (The Gradient).

The problem before 2018

Computer vision had already learned a trick. A network trained on the 1.2 million images in ImageNet could be reused for other image tasks, because it had already learned to recognise edges, shapes and objects. You only needed to fine-tune it a little.

Language technology had no equivalent. The closest thing was word vectors such as word2vec, where each word got a fixed set of numbers. But they gave “bank” the same representation whether the sentence was about money or a riverbank, and the rest of the model still had to be trained from scratch for every new task. That required lots of hand-labelled data, which was expensive and scarce.

Four steps in one year

ULMFiT (January). Jeremy Howard and Sebastian Ruder showed that a pre-trained language model could be fine-tuned for text classification. Errors fell by 18 to 24 percent on most datasets, and with only 100 labelled examples the method matched training from scratch on a hundred times more data (arXiv).

ELMo (February). Researchers at the Allen Institute for AI and the University of Washington used a bidirectional language model to create word representations that depend on context. The same word got a different representation in different sentences. Adding ELMo improved the state of the art on six hard language tasks (arXiv).

GPT-1 (June). OpenAI’s Alec Radford, Karthik Narasimhan, Tim Salimans and Ilya Sutskever took the Transformer from 2017 and trained a twelve-layer version to predict the next word in BooksCorpus, a collection of more than 7,000 unpublished books. The model was then fine-tuned on different tasks. It beat purpose-built models on 9 of the 12 tasks tested, including by 8.9 percentage points on a commonsense reasoning test (OpenAI paper). The code was published on GitHub on 11 June (GitHub). Nobody called it GPT-1 at the time; the name came later, once the sequels arrived.

BERT (October). On 11 October Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova at Google published BERT (arXiv). BERT set new records on eleven language tasks and raised the score on the GLUE benchmark collection to 80.5 percent, an improvement of 7.7 points. On the SQuAD 1.1 question-answering test it reached an F1 score of 93.2, above the measured human level of 91.2 (Google Research). On 2 November Google released the code and pre-trained models openly.

How it works

The basic idea is simple. Take a large amount of text and hide part of it. Then let the model guess what is missing. To get good at that, the model has to learn grammar, word meanings, facts about the world and how arguments usually go. No human needs to label anything; the text is its own answer key.

GPT and BERT chose different variants:

In both cases a second step follows: fine-tuning. You add a small extra layer and train briefly on a specific task, such as deciding whether a review is positive or finding the answer to a question in a text. According to Google, anyone could fine-tune BERT into a state-of-the-art question-answering system in about 30 minutes on a single Cloud TPU.

The reception

It was BERT that made the big splash in 2018 and 2019. The model was open, easy to use and beat everything else. In the following years a long line of variants and models for languages other than English appeared.

GPT-1 got less attention. But it was OpenAI’s line that turned out to have the greatest potential. Because GPT is trained to write the next word, it can be scaled up and used to generate text without fine-tuning. GPT-2 in February 2019 was considerably larger, and GPT-3 in 2020 showed that a big enough model can solve tasks just from a few examples in the prompt (GPT-3 and the scaling laws). From there, the step to ChatGPT was a matter of fine-tuning with human feedback, a method OpenAI and DeepMind had already described in 2017.

What we know now

Seen from 2026, 2018 was the year language technology changed paradigm. Pre-training on large amounts of text followed by adaptation to specific tasks is still the basic recipe for every large language model. The difference is scale: GPT-1 was trained on a few thousand books, today’s models on a large share of all the text that exists in digital form.

The benchmarks of 2018, such as GLUE, soon became too easy. That has become a pattern: whenever researchers build a test meant to measure language understanding, it takes only a few years before the models pass it.

Read more about the year in The year 2018.

Sources