PaperPretrain, then fine-tune

ELMo (2018): deep contextualised word representations

Event date

On 15 February 2018 Matthew Peters and colleagues posted Deep contextualized word representations, which introduced ELMo. Instead of giving each word one fixed vector, ELMo computes a vector from the whole sentence using a pretrained bidirectional language model. It is on the timeline because it made context dependent pretrained representations standard.

Milestone 4 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

SQuAD F1, baseline vs with ELMo, reported by the authors
81.1 to 85.8arxiv.org
Named entity recognition F1, baseline vs with ELMo, reported by the authors
90.15 to 92.22arxiv.org
Biggest LSTM layers in the language model (units each)
4,096arxiv.org

What the paper proposed

Earlier word vectors such as word2vec gave a word the same representation wherever it appeared, so the word bank looked identical in a river sentence and a finance sentence. The authors proposed representations that depend on context and that capture both syntax and meaning.

The paper was submitted to arXiv on 15 February 2018 by Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee and Luke Zettlemoyer. The name refers to how the vectors are computed from the internal states of a language model rather than looked up in a fixed table. It was aimed at a weakness the authors named directly: words with several senses and usages that change across contexts.

Sources: arxiv.org

How it worked

ELMo, short for Embeddings from Language Models, uses a deep bidirectional LSTM language model trained to predict the next and previous words. The model has two bidirectional LSTM layers with 4,096 units each, and a character based input layer so it can handle words it has not seen. It was trained on the One Billion Word Benchmark, a corpus of roughly 30 million sentences.

A task model then takes a weighted combination of all the language model's layers for each word, not just the top one. The authors found this mattered, because different layers carry different kinds of information.

Sources: arxiv.org

What it showed and what came next

Adding ELMo vectors to existing systems improved results on six hard tasks: question answering on SQuAD, textual entailment, semantic role labelling, coreference resolution, named entity recognition and sentiment analysis. On SQuAD the reported F1 score rose from 81.1 to 85.8, and on named entity recognition from 90.15 to 92.22.

These figures are the authors' own, and the paper's relative error reduction figures are not fully consistent with each other, so this page quotes the absolute scores. The other reported gains were SNLI accuracy from 88.0 to 88.7, semantic role labelling F1 from 81.4 to 84.6, coreference F1 from 67.2 to 70.4 and five class sentiment accuracy from 51.4 to 54.7.

ELMo still fed vectors into task specific models. GPT-1 and BERT, later in 2018, instead fine-tuned the whole pretrained network for each task, using Transformer layers in place of LSTMs. The shift from ELMo to BERT is the shift from features to full model fine-tuning.

Sources: arxiv.org, arxiv.org, huggingface.co

Why it mattered

  • It showed that one pretrained language model could lift many different tasks.
  • It replaced one fixed vector per word with vectors that change with the sentence.
  • It demonstrated that combining all layers of a deep model gives better features than the top layer alone.
  • It set the baseline that BERT was compared with and then overtook.

Questions

What does ELMo stand for?
Embeddings from Language Models. It produces word vectors from the internal states of a pretrained bidirectional language model.
When was ELMo published?
The paper was first posted on arXiv on 15 February 2018.
How is ELMo different from word2vec?
Word2vec gives each word one fixed vector. ELMo computes a different vector for a word depending on the sentence it appears in.

About this page

Part of our LLM history timeline. The event happened on 15 February 2018; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Peters et al., Deep contextualized word representations (arXiv)
  2. Devlin et al., BERT (arXiv)
  3. Hugging Face model card, openai-gpt (GPT-1)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.