Paper commentary
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
- Problem NLU models above the word level are usually built for one task and struggle on out-of-domain text, so the field lacks a way to measure whether one model shares linguistic knowledge across tasks.
- Method GLUE combines nine English sentence and sentence-pair tasks, a model-agnostic online platform with private test labels, and a hand-built diagnostic NLI set. Baselines share a BiLSTM encoder across tasks and are compared with per-task models.
- Results The best multi-task baseline, a BiLSTM with attention and ELMo, reached an average GLUE score of 70.0, against 66.5 for its single-task counterpart.
Why shared NLU knowledge is hard to measure
NLU models above the word level are usually built around one task, and they tend to break when the input moves outside their training domain. The authors argue that moving past matching surface patterns between inputs and outputs requires one unified model that handles many linguistic tasks across domains.
Training data is uneven across tasks: some tasks have plenty of it, while others have little or come from a genre unlike the test set. A benchmark built this way rewards representations that let a model learn from few examples and transfer knowledge from one task to another. GLUE accepts any architecture that can read one sentence or a sentence pair and produce predictions for it.
How GLUE is assembled and scored
GLUE draws its nine English tasks from existing datasets rather than building new corpora, because the NLP community already regards those datasets as challenging and interesting. Four of the datasets have privately held test labels, and users who want a score submit their predictions to the website. Each submission receives per-task scores and a macro-average across tasks; where a task has two metrics, they are averaged without weights before the macro-average is taken.
The benchmark is meant to reward a model that keeps shared parameters across all tasks while retaining some task-specific components. The authors expect the data-scarce tasks to make a separate model per task uncompetitive, although such per-task training is not ruled out.
Nine tasks across three families
Table 1 gives the task type, metric, split sizes and domain for each corpus; the single-sentence tasks are CoLA and SST-2, the similarity and paraphrase tasks are MRPC, STS-B and QQP, and the inference tasks are MNLI, QNLI, RTE and WNLI.
CoLA asks whether a sentence is grammatical English, using acceptability judgments taken from linguistics books and journal articles. It is scored with the Matthews correlation coefficient, which stays informative on unbalanced binary classification and runs from -1 to 1, with 0 for uninformed guessing. SST-2 uses only sentence-level sentiment labels from movie reviews, with a two-way positive and negative split.
MRPC pairs come from online news and are labelled for semantic equivalence; 68% are positive, so accuracy is reported alongside F1. QQP pairs are Quora questions; 63% are negative, the test labels are private, and the test label distribution differs from the training set. STS-B asks for similarity scores from 1 to 5 for each sentence pair, scored with Pearson and Spearman correlation.
MNLI has three classes and is evaluated on matched and mismatched test sections; SNLI is also recommended as 550k examples of auxiliary training data. QNLI recasts question answering as classifying whether a context sentence contains the answer, and pairs with low lexical overlap are filtered out. Framing the task as sentence-pair classification drops the need to select the exact answer, and it also drops two shortcuts: that the answer is always present and that lexical overlap is a dependable signal.
RTE merges RTE1, RTE2, RTE3 and RTE5, and neutral and contradiction are collapsed into not entailment for three-class sources. WNLI replaces the ambiguous pronoun with each candidate referent to form pairs; its test set is 65% not entailment, and its development set is adversarial to memorized training hypotheses.
Building the diagnostic set
The diagnostic set is a small collection of NLI sentence pairs, each tagged with the phenomena it shows; the tags fall into four coarse categories, Lexical Semantics, Predicate-Argument Structure, Logic and Knowledge. NLI is used because it can probe a wide set of skills, from syntactic ambiguity to pragmatic reasoning with world knowledge.
The source sentences come from several domains, including news, Reddit, Wikipedia and academic papers.
Each example starts from a source sentence that easily shows a target phenomenon, and two minimal edits produce a sentence pair with high lexical and structural overlap. Each pair is labelled in both directions, giving 1100 labelled examples; where possible, several pairs share one source sentence with different labels. The label mix is 42% entailment, 35% neutral and 23% contradiction.
Because the class distribution is unbalanced, predictions are scored with R3, a three-class generalization of the Matthews correlation coefficient. To check for hypothesis-only artifacts, two fastText classifiers see only the hypothesis and are trained on SNLI and MNLI; they reach 32.7% and 36.4% on the diagnostic data, which is near chance.
Six NLP researchers annotated 50 sentence pairs, which yield 100 entailment examples; their Fleiss's κ is 0.73 and their average R3 is 0.80, above every baseline system.
Baseline encoders and training
The simplest baseline is a sentence-to-vector model: a two-layer BiLSTM with 1500D per direction and max pooling, reading 300D GloVe vectors from the 840B Common Crawl version. For single sentences, the encoded vector goes to a classifier; for sentence pairs, each sentence is encoded separately and the classifier receives [u;v;|u−v|;u∗v], through an MLP with a 512D hidden layer.
This keeps the two sentences apart until the classifier, which fits the sentence-to-vector paradigm but does not test structures with more complex interactions.
The attention variant adds attention between every word pair across the two sentences, followed by a second BiLSTM with max pooling, so it models cross-sentence interaction and falls outside the sentence-to-vector paradigm.
ELMo uses two-layer neural language models trained on the Billion Word Benchmark; each word gets a contextual vector formed as a linear combination of the hidden states of each layer, and ELMo replaces the other embeddings in the baseline. CoVe comes from a two-layer BiLSTM trained for English-to-German translation; the top-layer hidden state of each word is concatenated to its GloVe vector.
The shared BiLSTM encoder and post-attention BiLSTMs are updated by all tasks, while each task keeps its own classifier; each update samples a task with probability proportional to its number of training examples. Training uses Adam with initial learning rate 10−4 and batch size 128, the macro-average on the validation set serves as the validation metric, and training stops when the learning rate drops below 10−5 or when performance does not improve after 5 validation checks.
Single-task models use the same configuration and training procedure but share no parameters across tasks; settings were not tuned per task, so these models do not represent the best result for each task.
CBoW, Skip-Thought, InferSent, DisSent and GenSen are pre-trained sentence representation models; for these, only the task-specific classifiers are trained on the representations they produce.
GLUE test-set scores
Each model was trained in three runs, and the run with the best development macro-average was evaluated; single-task and sentence representation models were evaluated per task on their best run.
Multi-task training gave better overall scores than single-task training for models with attention or ELMo: the BiLSTM with attention and ELMo averaged 70.0 multi-task and 66.5 single-task. The plain BiLSTM averaged 64.2 multi-task and 63.9 single-task, and the ELMo variant averaged 67.7 multi-task and 66.4 single-task. Because single-task models were not tuned per task, these pairs compare identically configured models rather than each task's best system.
Attention had a negligible or negative aggregate effect in single-task training, where the BiLSTM with and without attention both averaged 63.9, but it helped in multi-task training, where the average rose from 64.2 to 65.6.
Replacing GloVe or CoVe with ELMo improved results, most clearly on the single-sentence tasks: SST-2 rose from 82.8 to 89.3 for the multi-task BiLSTM. The effect of CoVe over GloVe alone was mixed.
InferSent was competitive with the GLUE-trained models, and GenSen outperformed all but the two best of them.
On CoLA, the sentence representation models scored between 0.0 and 7.7, while the GLUE-trained models reached up to 35.0 Matthews correlation. On STS-B, the best GLUE-trained model scored 74.2/72.3 Pearson/Spearman, while GenSen scored 79.3/79.2.
No WNLI model exceeded the 65.1 most-frequent-class score, so the most-frequent baseline replaces the model predictions on WNLI. RTE and the overall average still leave room for improvement, which the authors read as evidence that GLUE is beyond current models and methods.
What the diagnostic scores show
Each baseline's MNLI classifier was run on the diagnostic set, and scores are R3 scaled by 100. The highest total score was 28, which is still poor in absolute terms.
On the diagnostic set, multi-task models were almost always outperformed by their single-task counterparts; the authors attribute this to likely destructive interference between MNLI and the other tasks.
Scores were higher on Predicate-Argument Structure and lower on Logic, though the numbers are not closely comparable across categories. Attention affected diagnostic scores more than ELMo or CoVe did, which points to attention as especially relevant for NLI generalization in these results.
Universal quantification was handled well by most models, and lexical cues such as "all" often sufficed; morphological negation examples also responded to lexical cues.
Restrictivity examples were especially difficult for almost all models.
Limits of the benchmark and the analysis
Its scores should be compared between models, not between categories, and the set is described as small at 1100 examples.
On WNLI the baselines do not exceed majority-class guessing, and the test set is 65% not entailment.
The simplest baseline does not test models with more complex structures, and the single-task models were configured identically without per-task tuning.
The hypothesis-only artifact audit uses only fastText classifiers trained on SNLI and MNLI, and the human baseline uses six researchers on 50 sentence pairs, so both checks are narrow. Four datasets have private test labels, and the QQP test label distribution differs from its training set.
Paper info
- Authors
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, Samuel R. Bowman
- Venue
- arXiv · Preprint
- First published
- 2018-4-20
- Added
- 2026-10-20
- Updated
- 2019-2-22
- Version
- v3
- arXiv
- 1804.07461
- Category
- cs.CL
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, Samuel R. Bowman (2018). GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. arXiv:1804.07461v3. https://arxiv.org/abs/1804.07461v3
BibTeX
@misc{wang2018glue,
title = {{GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding}},
author = {Alex Wang and Amanpreet Singh and Julian Michael and Felix Hill and Omer Levy and Samuel R. Bowman},
year = {2018},
eprint = {1804.07461},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1804.07461v3}
}