AI Logic

Datasets and Benchmarks

SuperGLUE

Updated:

SuperGLUE tasks and how the score is computed. Left: the eight tasks grouped into three categories (question answering, entailment inference, and word sense and coreference), with what each predicts, the training set size, and the metric. Right: the flow in which a model predicts on the test inputs, the predictions are sent to the evaluation server, and the per-task scores are averaged into the SuperGLUE score, along with the two diagnostic datasets not included in the score.

Overview

SuperGLUE is a benchmark that collects eight English understanding tasks harder than GLUE and compares models with a single score. The same authors as GLUE published it in 2019 (NeurIPS 2019). It consists of tasks in question answering, entailment inference, word sense disambiguation, and coreference resolution (what a pronoun refers to), and it was used as the standard benchmark for comparing pretrained language models from BERT onward.

It was created because GLUE no longer separated models. In early July 2019, the best model's GLUE score (XLNet, 88.4) exceeded human performance (87.1) by 1.3, and models had surpassed humans on four of the nine tasks. The paper argues that the original GLUE was no longer suitable as a measure of progress, and while keeping GLUE's approach, it made the following changes.

  • Choose harder tasks: The two hardest GLUE tasks (RTE and WSC) were kept, and the others were selected from publicly solicited tasks that were difficult for methods of the time.
  • Broaden task formats: GLUE had only single- and two-sentence classification; SuperGLUE adds coreference resolution and question answering, including tasks that require reading entire paragraphs.
  • Provide human performance for every task: The authors confirmed that there is a sufficient gap between BERT-based baselines and human performance.
  • Provide tools: The jiant toolkit, built on PyTorch and AllenNLP, is distributed together with the baseline implementations.
  • Revise the usage rules: To ensure fair competition, rules govern which data may be used and how often submissions can be made, and the authors of the original datasets are properly credited.

Tasks were solicited from researchers, yielding about 30 proposals, which were narrowed down by six criteria: the task tests understanding and reasoning about English text; it is solvable by college-educated English speakers but difficult for state-of-the-art models of the time; it has an automatic metric that correlates well with human judgment; it has public training data; its input and output formats are simple; and its license allows use and redistribution for research purposes. BERT and human baselines were run on the remaining tasks, and tasks too hard for humans or too easy for machines were removed.

The SuperGLUE score is the equally weighted average of the scores of the eight tasks. Metrics are expressed multiplied by 100 (as percentages), and for tasks with two metrics, the two are averaged first. Results on the two diagnostic datasets are not included in this score.

Contents: the eight tasks and the diagnostic datasets

The eight tasks fall into four types according to what they test. Nearly half of the eight have fewer than 1,000 training examples, and all but one have fewer than 10,000. Having many tasks with little training data is another characteristic of this benchmark.

TypeTaskSource textWhat to predictTrainValidationTestMetric
Question answeringBoolQGoogle search queries and WikipediaRead a paragraph and answer a yes/no question9,4273,2703,245Accuracy
Question answeringCOPABlogs, a photography encyclopediaChoose the cause (or effect) of a premise from two candidates400100500Accuracy
Question answeringMultiRCSeven domains, including news, fiction, and historical textWhether each candidate answer to a paragraph and question is correct5,1009531,800F1a and EM
Question answeringReCoRDNews (CNN, Daily Mail)Choose from the article the named entity that fills a blank in a summary sentence101k10k10kF1 and EM
InferenceCBWall Street Journal, fiction, telephone conversationsWhether the content of an embedded clause follows (entailment, contradiction, or neutral)25057250Accuracy and F1
InferenceRTENews, WikipediaWhether the second sentence follows from the first2,500278300Accuracy
Word senseWiCWordNet, VerbNet, WiktionaryWhether the same word in two sentences is used in the same sense6,0006381,400Accuracy
CoreferenceWSCFictionWhether a pronoun in a sentence refers to a marked noun554104146Accuracy

(Counts are from Table 1 of the paper.)

Each task adapts its original dataset for SuperGLUE as follows.

  • BoolQ: Yes/no questions actually entered into Google search, paired with Wikipedia paragraphs that contain the answer.
  • CB (CommitmentBank): Predict, as three-class entailment, whether the writer believes the content of a clause embedded in a sentence is true. Only examples with annotator agreement above 80% are used. Because "neutral" is rare and the classes are imbalanced, it is evaluated by accuracy and the unweighted average of per-class F1 (macro F1).
  • COPA: Causal reasoning, such as choosing between "The sun was rising" and "The grass was cut" for "My body cast a shadow over the grass. What was the cause?" All examples were written by people.
  • MultiRC: A question may have several correct answers, and answering requires gathering facts from multiple sentences in the paragraph. Each candidate answer is labeled correct or incorrect, and evaluation uses F1 over all candidates (F1a) and the fraction of questions for which the entire set of correct answers is predicted (EM, exact match).
  • ReCoRD: One named entity is hidden in a summary sentence of an article and must be predicted from candidates in the article. If the same entity appears in the article under different surface forms, all are treated as correct. Evaluation uses the maximum token-level F1 over all correct surface forms, and EM.
  • RTE: The same data and format as GLUE. Data from the RTE1, 2, 3, and 5 challenges are combined into two classes: "entailment" and "not entailment."
  • WiC: A word sense disambiguation task that asks whether a polysemous word is used in the same sense in two sentences.
  • WSC (Winograd Schema Challenge): Pronoun resolution problems designed to require everyday knowledge and common sense. GLUE used WNLI, recast as inference, but SuperGLUE makes it a binary classification of "whether the marked pronoun refers to the marked noun." Because WNLI was problematic in that the same sentences appeared in train and validation with different labels, SuperGLUE ensures that train, validation, and test do not share sentences.

In addition, there are two diagnostic datasets for analyzing models. Neither has a training set; they are solved directly by a model trained on RTE.

Diagnostic datasetContentsMetricHuman performance (paper's estimate)
AXb (broad-coverage diagnostics)GLUE's diagnostic dataset (inference sentence pairs built for each linguistic phenomenon), converted to two classes by merging "contradiction" and "neutral"Matthews correlation coefficient (MCC)Accuracy 88%, MCC 0.77
AXg (Winogender)Sentence pairs differing only in the pronoun's gender, used to examine gender bias in coreference decisionsAccuracy and gender parity (fraction of pairs with the same prediction)Accuracy 99.7%, parity 0.99

The counts in the version distributed on Hugging Face (aps/super_glue) differ slightly from Table 1 of the paper. For example, WiC has 5,428 training examples, CB has 56 validation examples, and RTE has 3,000 test examples. MultiRC has one row per candidate answer, with 27,243 training rows. When reporting counts, be consistent about which counting is used.

Evaluation rules

SuperGLUE is evaluated with almost the same procedure as GLUE.

  1. Obtain the eight tasks and two diagnostic datasets from the official site (super.gluebenchmark.com) or with the jiant scripts. The test sets have no labels.
  2. Generate model predictions for the test sets of the eight tasks and the two diagnostic datasets. The diagnostic datasets are usually solved with the RTE model.
  3. Submit the predictions to the evaluation server for scoring. To prevent overfitting to the test set, submissions are limited to twice a day and six times a month.
  4. Multiply each task's metric by 100; for tasks with two metrics (CB, MultiRC, and ReCoRD), average the two to get the task's score.
  5. The equally weighted average of the eight task scores is the SuperGLUE score.

As a formula, with the metrics of task tt as mt,1,…,mt,ktm_{t,1}, \dots, m_{t,k_t} (ktk_t is 1 or 2),

SuperGLUE score=18∑t=181kt∑j=1kt100 mt,j\text{SuperGLUE score} = \frac{1}{8} \sum_{t=1}^{8} \frac{1}{k_t} \sum_{j=1}^{k_t} 100\, m_{t,j}

The paper explains that all tasks are weighted equally because there is no principled way to set fair per-task weights. CB with 250 examples and ReCoRD with 100,000 contribute equally to the score.

To appear on the leaderboard, the following rules must be followed.

  • Use the version of the data distributed by SuperGLUE: Some tasks have different train/validation/test splits from versions published elsewhere.
  • Do not use test inputs for development: Training on the unlabeled test sentences is also prohibited, and mechanisms that share information across test examples are not allowed.
  • Do not use WiC's original dictionary example sentences in structured form: Using the example sentences from WordNet, VerbNet, and Wiktionary together with sense IDs and the like gives an unfair advantage on WiC. Using them as plain sentences is fine.
  • Cite all datasets used: SuperGLUE is built on existing datasets, so papers cite not only SuperGLUE but also the original datasets of the tasks used.

There are no restrictions on model architecture; separate models per task, or even methods that do not use machine learning, are allowed.

Usage and historical significance

After models surpassed humans on GLUE, SuperGLUE was used as a benchmark for comparing how well pretrained language models perform with fine-tuning.

The paper's baseline is bert-large-cased fine-tuned separately for each task (Adam, learning rate 10−510^{-5}, up to 10 epochs). For two-sentence classification tasks, the two sentences are joined with [SEP] and the [CLS] representation is classified; for COPA, MultiRC, and ReCoRD, the text and each candidate answer are concatenated and each candidate is scored. BERT++ is first trained on related data before fine-tuning (MultiNLI for CB, RTE, and BoolQ; SWAG for COPA).

The test results (Table 3 of the paper) are as follows.

ModelScoreBoolQCB (F1/Acc.)COPAMultiRC (F1a/EM)ReCoRD (F1/EM)RTEWiCWSC
Always predict the majority class47.162.321.7/48.450.061.1/0.333.4/32.550.350.065.1
Averaged word vectors (CBoW)44.362.149.0/71.251.60.0/0.414.0/13.649.753.065.1
BERT69.077.475.7/83.670.670.0/24.072.0/71.371.669.564.3
BERT++71.579.084.7/90.473.870.0/24.172.0/71.379.069.564.3
Human (estimated)89.889.095.8/98.9100.081.8/51.991.7/91.393.680.0100.0

BERT is about 25 points higher on average than the simple baselines, but even the best, BERT++, is nearly 20 points below humans, and the gap is largest on WSC at 35 points. BERT on WSC scores lower than always predicting the majority class because the data is small and no data augmentation was used. The paper concludes that closing this gap will likely require advances in multi-task learning, transfer learning, and self-supervised learning.

Scores then rose rapidly. The test-set values scored by the evaluation server, as listed in Table 5 of the DeBERTa paper, are as follows.

ModelSuperGLUE score
RoBERTa-Large84.6
T5 (11B parameters)89.3
Human89.8
DeBERTa (1.5B parameters, fine-tuned with SiFT)89.9
DeBERTa (ensemble)90.3

According to the DeBERTa paper, a single model first surpassed humans as of December 29, 2020. About a year and a half after its release, SuperGLUE too had almost no room left to measure the gap to humans. The fact that human performance on GLUE and SuperGLUE was matched so quickly also prompted the creation of next-generation benchmarks such as MMLU, which tests knowledge acquired during pretraining across a wide range of subjects.

Caveats

License: SuperGLUE is not newly created data; it is based on existing datasets.

There is no license that covers SuperGLUE as a whole. The official FAQ asks users to refer to the license of each original dataset and states that "it is our understanding that use and redistribution for research purposes is permitted." Commercial use is not guaranteed, so check the terms of each task's original dataset before use. When writing a paper, cite all original datasets of the tasks you used.

Match the data version: SuperGLUE was released as a preliminary version (v1.9) in May–June 2019 and became the official version (v2.0) in July. In the official version, BoolQ and ReCoRD joined the main tasks, Winogender was added to the diagnostic datasets, and the MultiRC, WiC, and diagnostic dataset files were corrected. The preliminary MultiRC cannot be used, so if you have old data, download it again.

Scores on small tasks are unstable: CB (250 training examples), COPA (400), and WSC (554) have little training data, and their test sets have only a few hundred examples. Changing just the random seed can change scores significantly, yet they count with the same weight in the score as ReCoRD with 100,000 examples. When comparing on validation, also look at the mean and variance over several training runs.

Check which split a paper's numbers are from: Test scores can be obtained only from the evaluation server, so papers often report validation scores. Table 4 in the paper's appendix also gives baseline validation scores (BERT 72.2, BERT++ 74.6), which differ from the test scores (69.0, 71.5). Match test or validation when comparing.

The gender parity score of AXg (Winogender) is perfect if the model predicts the same class for every example. The paper's baselines have near-perfect parity precisely because their accuracy is about as low as random guessing. Parity is meaningful only when accuracy is high. Also, low parity indicates bias, but high parity does not prove the absence of bias.

Surpassing humans ≠ understanding language: The DeBERTa paper also states that surpassing humans on SuperGLUE does not mean reaching human-level intelligence. On GLUE's diagnostic dataset, even the best model at the time of the paper achieved an R3R_3 of 0.42, far below the human 0.80, and on phenomena such as disjunction and downward monotonicity it performed at or below chance.

Comparison with similar benchmarks

Benchmarks for measuring language understanding compare as follows from the same perspective.

BenchmarkNumber and format of tasksWhat it measuresHow it is evaluatedBest suited for
GLUENine, all single- or two-sentence classification (STS-B is regression)Sentence understanding, such as sentiment, paraphrase, and inferenceTest predictions scored on a server; average of nine tasksComparison with models from around 2018–2019, such as BERT and GPT
SuperGLUEEight: classification plus question answering and coreference resolutionReasoning, reading comprehension, word sense, and common sense harder than GLUETest predictions scored on a server; average of eight tasksComparing fine-tuning of models that GLUE no longer separates
SQuADOne: extract the answer span from a paragraphReading comprehension and question answeringExact match and F1Comparisons focused on reading comprehension and question answering
MMLUFour-choice questions across 57 subjectsKnowledge and reasoning acquired during pretrainingAccuracyComparing large language models used without fine-tuning

(Details of GLUE, SQuAD, and MMLU are from their respective articles.)

Rough guidelines for choosing:

  • To compare under the same conditions as fine-tuned models such as RoBERTa, T5, and DeBERTa, report per-task validation scores and the test SuperGLUE score.
  • To compare with models from before or around the time of BERT, use GLUE. SuperGLUE's RTE uses the same data as GLUE, so it can also serve as a common yardstick for both.
  • To compare the knowledge of large language models without fine-tuning, use MMLU or similar, since SuperGLUE hardly separates them.
  • To examine gender bias or weaknesses on specific linguistic phenomena, report AXg and AXb results separately from the score.

PyTorch example

Show code
python
import numpy as np
import torch
from collections import defaultdict
from datasets import load_dataset

"""
Load SuperGLUE tasks with Hugging Face datasets and compute validation scores with the official metrics
Task names: 'boolq' 'cb' 'copa' 'multirc' 'record' 'rte' 'wic' 'wsc.fixed' (diagnostics: 'axb' 'axg')
Test labels are not public (label is -1). Test scores are obtained by submitting predictions to super.gluebenchmark.com
"""

ds = load_dataset('aps/super_glue', 'cb')
print(ds)              # train 250 / validation 56 / test 250
print(ds['train'][0])  # {'premise': ..., 'hypothesis': ..., 'idx': ..., 'label': 0-2} (0 entailment, 1 contradiction, 2 neutral)


def macro_f1(pred, gold, n_classes):
  """F1 for CB: unweighted average of per-class F1"""
  f1s = []
  for c in range(n_classes):
    tp = np.sum((pred == c) & (gold == c))
    p = tp / max(np.sum(pred == c), 1); r = tp / max(np.sum(gold == c), 1)
    f1s.append(0.0 if p + r == 0 else 2 * p * r / (p + r))
  return float(np.mean(f1s))


def multirc_scores(rows, pred):
  """MultiRC: F1a is binary F1 over all candidate answers; EM is the fraction of questions with all candidates correct"""
  gold = np.array([r['label'] for r in rows]); pred = np.asarray(pred)
  tp = np.sum((pred == 1) & (gold == 1))
  p = tp / max(np.sum(pred == 1), 1); r = tp / max(np.sum(gold == 1), 1)
  f1a = 0.0 if p + r == 0 else 2 * p * r / (p + r)
  by_q = defaultdict(list)                               # idx = {'paragraph', 'question', 'answer'}
  for row, y in zip(rows, pred == gold):
    by_q[(row['idx']['paragraph'], row['idx']['question'])].append(y)
  em = np.mean([all(v) for v in by_q.values()])
  return f1a, em


def task_score(metrics):
  """Task score: multiply metrics by 100 and average if there are two. The SuperGLUE score is the simple average of the 8 task_scores"""
  return 100 * float(np.mean(metrics))


# evaluation on validation (CB example; model is a 3-class classifier, tokenizer is from the pretrained model)
# model.eval()                                          # disable Dropout
# preds = []
# with torch.no_grad():
#   for i in range(0, len(ds['validation']), 32):
#     b = ds['validation'][i:i + 32]
#     enc = tokenizer(b['premise'], b['hypothesis'], padding=True, truncation=True, return_tensors='pt')
#     preds.append(model(**enc).logits.argmax(-1).numpy())
# pred = np.concatenate(preds); gold = np.array(ds['validation']['label'])
# print('CB', task_score([np.mean(pred == gold), macro_f1(pred, gold, 3)]))

FAQ

Q. How is the SuperGLUE score calculated?
A.

Each of the eight tasks gets a score by multiplying its metric by 100, and these are averaged with equal weight. For tasks with two metrics, such as CB (accuracy and macro F1), MultiRC (F1a and EM), and ReCoRD (F1 and EM), the two are averaged first. The diagnostic datasets AXb and AXg are not included.

Q. How do GLUE and SuperGLUE differ?
A.

SuperGLUE collects tasks harder than GLUE and broadens the task formats from single- and two-sentence classification to question answering and coreference resolution. Only two tasks were kept from GLUE: RTE and WSC (in WNLI form in GLUE). In addition, every task comes with human performance, and submissions are limited to six per month. See also the GLUE article for details.

Q. Now that models have surpassed humans, is SuperGLUE no longer useful?
A.

It is no longer suited to measuring differences among the best models, but it is still used to compare fine-tuning methods and smaller models under the same conditions as past papers. Diagnostic datasets such as AXb and AXg can also reveal which phenomena and biases a model is weak on. To compare the knowledge of large language models broadly, use it together with MMLU and others.

References

  1. Wang, A., Pruksachatkun, Y., Nangia, N., Singh, A., Michael, J., Hill, F., Levy, O., & Bowman, S. R. (2019). SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems. NeurIPS 2019.
  2. Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., & Bowman, S. R. (2018). GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. ICLR 2019.
  3. He, P., Liu, X., Gao, J., & Chen, W. (2020). DeBERTa: Decoding-enhanced BERT with Disentangled Attention. ICLR 2021.
  4. SuperGLUE Benchmark (official site, FAQ, and leaderboard).
  5. aps/super_glue (Hugging Face dataset card).