glue / README.md
albertvillanova's picture
Convert dataset sizes from base 2 to base 10 in the dataset card
7097b86
|
raw
history blame
27.9 kB
metadata
annotations_creators:
  - other
language_creators:
  - other
language:
  - en
license:
  - cc-by-4.0
multilinguality:
  - monolingual
size_categories:
  - 10K<n<100K
source_datasets:
  - original
task_categories:
  - text-classification
task_ids:
  - acceptability-classification
  - natural-language-inference
  - semantic-similarity-scoring
  - sentiment-classification
  - text-scoring
paperswithcode_id: glue
pretty_name: GLUE (General Language Understanding Evaluation benchmark)
configs:
  - ax
  - cola
  - mnli
  - mnli_matched
  - mnli_mismatched
  - mrpc
  - qnli
  - qqp
  - rte
  - sst2
  - stsb
  - wnli
tags:
  - qa-nli
  - coreference-nli
  - paraphrase-identification
dataset_info:
  - config_name: cola
    features:
      - name: sentence
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': unacceptable
              '1': acceptable
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 61049
        num_examples: 1063
      - name: train
        num_bytes: 489149
        num_examples: 8551
      - name: validation
        num_bytes: 60850
        num_examples: 1043
    download_size: 376971
    dataset_size: 611048
  - config_name: sst2
    features:
      - name: sentence
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': negative
              '1': positive
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 217556
        num_examples: 1821
      - name: train
        num_bytes: 4715283
        num_examples: 67349
      - name: validation
        num_bytes: 106692
        num_examples: 872
    download_size: 7439277
    dataset_size: 5039531
  - config_name: mrpc
    features:
      - name: sentence1
        dtype: string
      - name: sentence2
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': not_equivalent
              '1': equivalent
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 443498
        num_examples: 1725
      - name: train
        num_bytes: 946146
        num_examples: 3668
      - name: validation
        num_bytes: 106142
        num_examples: 408
    download_size: 1494541
    dataset_size: 1495786
  - config_name: qqp
    features:
      - name: question1
        dtype: string
      - name: question2
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': not_duplicate
              '1': duplicate
      - name: idx
        dtype: int32
    splits:
      - name: train
        num_bytes: 50901116
        num_examples: 363846
      - name: validation
        num_bytes: 5653794
        num_examples: 40430
      - name: test
        num_bytes: 55171431
        num_examples: 390965
    download_size: 41696084
    dataset_size: 111726341
  - config_name: stsb
    features:
      - name: sentence1
        dtype: string
      - name: sentence2
        dtype: string
      - name: label
        dtype: float32
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 170847
        num_examples: 1379
      - name: train
        num_bytes: 758394
        num_examples: 5749
      - name: validation
        num_bytes: 217012
        num_examples: 1500
    download_size: 802872
    dataset_size: 1146253
  - config_name: mnli
    features:
      - name: premise
        dtype: string
      - name: hypothesis
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': neutral
              '2': contradiction
      - name: idx
        dtype: int32
    splits:
      - name: test_matched
        num_bytes: 1854787
        num_examples: 9796
      - name: test_mismatched
        num_bytes: 1956866
        num_examples: 9847
      - name: train
        num_bytes: 74865118
        num_examples: 392702
      - name: validation_matched
        num_bytes: 1839926
        num_examples: 9815
      - name: validation_mismatched
        num_bytes: 1955384
        num_examples: 9832
    download_size: 312783507
    dataset_size: 82472081
  - config_name: mnli_mismatched
    features:
      - name: premise
        dtype: string
      - name: hypothesis
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': neutral
              '2': contradiction
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 1956866
        num_examples: 9847
      - name: validation
        num_bytes: 1955384
        num_examples: 9832
    download_size: 312783507
    dataset_size: 3912250
  - config_name: mnli_matched
    features:
      - name: premise
        dtype: string
      - name: hypothesis
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': neutral
              '2': contradiction
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 1854787
        num_examples: 9796
      - name: validation
        num_bytes: 1839926
        num_examples: 9815
    download_size: 312783507
    dataset_size: 3694713
  - config_name: qnli
    features:
      - name: question
        dtype: string
      - name: sentence
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': not_entailment
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 1376516
        num_examples: 5463
      - name: train
        num_bytes: 25677924
        num_examples: 104743
      - name: validation
        num_bytes: 1371727
        num_examples: 5463
    download_size: 10627589
    dataset_size: 28426167
  - config_name: rte
    features:
      - name: sentence1
        dtype: string
      - name: sentence2
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': not_entailment
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 975936
        num_examples: 3000
      - name: train
        num_bytes: 848888
        num_examples: 2490
      - name: validation
        num_bytes: 90911
        num_examples: 277
    download_size: 697150
    dataset_size: 1915735
  - config_name: wnli
    features:
      - name: sentence1
        dtype: string
      - name: sentence2
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': not_entailment
              '1': entailment
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 37992
        num_examples: 146
      - name: train
        num_bytes: 107517
        num_examples: 635
      - name: validation
        num_bytes: 12215
        num_examples: 71
    download_size: 28999
    dataset_size: 157724
  - config_name: ax
    features:
      - name: premise
        dtype: string
      - name: hypothesis
        dtype: string
      - name: label
        dtype:
          class_label:
            names:
              '0': entailment
              '1': neutral
              '2': contradiction
      - name: idx
        dtype: int32
    splits:
      - name: test
        num_bytes: 238392
        num_examples: 1104
    download_size: 222257
    dataset_size: 238392
train-eval-index:
  - config: cola
    task: text-classification
    task_id: binary_classification
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence: text
      label: target
  - config: sst2
    task: text-classification
    task_id: binary_classification
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence: text
      label: target
  - config: mrpc
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence1: text1
      sentence2: text2
      label: target
  - config: qqp
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      question1: text1
      question2: text2
      label: target
  - config: stsb
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence1: text1
      sentence2: text2
      label: target
  - config: mnli
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation_matched
    col_mapping:
      premise: text1
      hypothesis: text2
      label: target
  - config: mnli_mismatched
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      premise: text1
      hypothesis: text2
      label: target
  - config: mnli_matched
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      premise: text1
      hypothesis: text2
      label: target
  - config: qnli
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      question: text1
      sentence: text2
      label: target
  - config: rte
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence1: text1
      sentence2: text2
      label: target
  - config: wnli
    task: text-classification
    task_id: natural_language_inference
    splits:
      train_split: train
      eval_split: validation
    col_mapping:
      sentence1: text1
      sentence2: text2
      label: target

Dataset Card for GLUE

Table of Contents

Dataset Description

Dataset Summary

GLUE, the General Language Understanding Evaluation benchmark (https://gluebenchmark.com/) is a collection of resources for training, evaluating, and analyzing natural language understanding systems.

Supported Tasks and Leaderboards

The leaderboard for the GLUE benchmark can be found at this address. It comprises the following tasks:

ax

A manually-curated evaluation dataset for fine-grained analysis of system performance on a broad range of linguistic phenomena. This dataset evaluates sentence understanding through Natural Language Inference (NLI) problems. Use a model trained on MulitNLI to produce predictions for this dataset.

cola

The Corpus of Linguistic Acceptability consists of English acceptability judgments drawn from books and journal articles on linguistic theory. Each example is a sequence of words annotated with whether it is a grammatical English sentence.

mnli

The Multi-Genre Natural Language Inference Corpus is a crowdsourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. The authors of the benchmark use the standard test set, for which they obtained private labels from the RTE authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) section. They also uses and recommend the SNLI corpus as 550k examples of auxiliary training data.

mnli_matched

The matched validation and test splits from MNLI. See the "mnli" BuilderConfig for additional information.

mnli_mismatched

The mismatched validation and test splits from MNLI. See the "mnli" BuilderConfig for additional information.

mrpc

The Microsoft Research Paraphrase Corpus (Dolan & Brockett, 2005) is a corpus of sentence pairs automatically extracted from online news sources, with human annotations for whether the sentences in the pair are semantically equivalent.

qnli

The Stanford Question Answering Dataset is a question-answering dataset consisting of question-paragraph pairs, where one of the sentences in the paragraph (drawn from Wikipedia) contains the answer to the corresponding question (written by an annotator). The authors of the benchmark convert the task into sentence pair classification by forming a pair between each question and each sentence in the corresponding context, and filtering out pairs with low lexical overlap between the question and the context sentence. The task is to determine whether the context sentence contains the answer to the question. This modified version of the original task removes the requirement that the model select the exact answer, but also removes the simplifying assumptions that the answer is always present in the input and that lexical overlap is a reliable cue.

qqp

The Quora Question Pairs2 dataset is a collection of question pairs from the community question-answering website Quora. The task is to determine whether a pair of questions are semantically equivalent.

rte

The Recognizing Textual Entailment (RTE) datasets come from a series of annual textual entailment challenges. The authors of the benchmark combined the data from RTE1 (Dagan et al., 2006), RTE2 (Bar Haim et al., 2006), RTE3 (Giampiccolo et al., 2007), and RTE5 (Bentivogli et al., 2009). Examples are constructed based on news and Wikipedia text. The authors of the benchmark convert all datasets to a two-class split, where for three-class datasets they collapse neutral and contradiction into not entailment, for consistency.

sst2

The Stanford Sentiment Treebank consists of sentences from movie reviews and human annotations of their sentiment. The task is to predict the sentiment of a given sentence. It uses the two-way (positive/negative) class split, with only sentence-level labels.

stsb

The Semantic Textual Similarity Benchmark (Cer et al., 2017) is a collection of sentence pairs drawn from news headlines, video and image captions, and natural language inference data. Each pair is human-annotated with a similarity score from 1 to 5.

wnli

The Winograd Schema Challenge (Levesque et al., 2011) is a reading comprehension task in which a system must read a sentence with a pronoun and select the referent of that pronoun from a list of choices. The examples are manually constructed to foil simple statistical methods: Each one is contingent on contextual information provided by a single word or phrase in the sentence. To convert the problem into sentence pair classification, the authors of the benchmark construct sentence pairs by replacing the ambiguous pronoun with each possible referent. The task is to predict if the sentence with the pronoun substituted is entailed by the original sentence. They use a small evaluation set consisting of new examples derived from fiction books that was shared privately by the authors of the original corpus. While the included training set is balanced between two classes, the test set is imbalanced between them (65% not entailment). Also, due to a data quirk, the development set is adversarial: hypotheses are sometimes shared between training and development examples, so if a model memorizes the training examples, they will predict the wrong label on corresponding development set example. As with QNLI, each example is evaluated separately, so there is not a systematic correspondence between a model's score on this task and its score on the unconverted original task. The authors of the benchmark call converted dataset WNLI (Winograd NLI).

Languages

The language data in GLUE is in English (BCP-47 en)

Dataset Structure

Data Instances

ax

  • Size of downloaded dataset files: 0.22 MB
  • Size of the generated dataset: 0.24 MB
  • Total amount of disk used: 0.46 MB

An example of 'test' looks as follows.

{
  "premise": "The cat sat on the mat.",
  "hypothesis": "The cat did not sit on the mat.",
  "label": -1,
  "idx: 0
}

cola

  • Size of downloaded dataset files: 0.38 MB
  • Size of the generated dataset: 0.61 MB
  • Total amount of disk used: 0.99 MB

An example of 'train' looks as follows.

{
  "sentence": "Our friends won't buy this analysis, let alone the next one we propose.",
  "label": 1,
  "id": 0
}

mnli

  • Size of downloaded dataset files: 312.78 MB
  • Size of the generated dataset: 82.47 MB
  • Total amount of disk used: 395.26 MB

An example of 'train' looks as follows.

{
  "premise": "Conceptually cream skimming has two basic dimensions - product and geography.",
  "hypothesis": "Product and geography are what make cream skimming work.",
  "label": 1,
  "idx": 0
}

mnli_matched

  • Size of downloaded dataset files: 312.78 MB
  • Size of the generated dataset: 3.69 MB
  • Total amount of disk used: 316.48 MB

An example of 'test' looks as follows.

{
  "premise": "Hierbas, ans seco, ans dulce, and frigola are just a few names worth keeping a look-out for.",
  "hypothesis": "Hierbas is a name worth looking out for.",
  "label": -1,
  "idx": 0
}

mnli_mismatched

  • Size of downloaded dataset files: 312.78 MB
  • Size of the generated dataset: 3.91 MB
  • Total amount of disk used: 316.69 MB

An example of 'test' looks as follows.

{
  "premise": "What have you decided, what are you going to do?",
  "hypothesis": "So what's your decision?,
  "label": -1,
  "idx": 0
}

mrpc

More Information Needed

qnli

More Information Needed

qqp

More Information Needed

rte

More Information Needed

sst2

More Information Needed

stsb

More Information Needed

wnli

More Information Needed

Data Fields

The data fields are the same among all splits.

ax

  • premise: a string feature.
  • hypothesis: a string feature.
  • label: a classification label, with possible values including entailment (0), neutral (1), contradiction (2).
  • idx: a int32 feature.

cola

  • sentence: a string feature.
  • label: a classification label, with possible values including unacceptable (0), acceptable (1).
  • idx: a int32 feature.

mnli

  • premise: a string feature.
  • hypothesis: a string feature.
  • label: a classification label, with possible values including entailment (0), neutral (1), contradiction (2).
  • idx: a int32 feature.

mnli_matched

  • premise: a string feature.
  • hypothesis: a string feature.
  • label: a classification label, with possible values including entailment (0), neutral (1), contradiction (2).
  • idx: a int32 feature.

mnli_mismatched

  • premise: a string feature.
  • hypothesis: a string feature.
  • label: a classification label, with possible values including entailment (0), neutral (1), contradiction (2).
  • idx: a int32 feature.

mrpc

More Information Needed

qnli

More Information Needed

qqp

More Information Needed

rte

More Information Needed

sst2

More Information Needed

stsb

More Information Needed

wnli

More Information Needed

Data Splits

ax

test
ax 1104

cola

train validation test
cola 8551 1043 1063

mnli

train validation_matched validation_mismatched test_matched test_mismatched
mnli 392702 9815 9832 9796 9847

mnli_matched

validation test
mnli_matched 9815 9796

mnli_mismatched

validation test
mnli_mismatched 9832 9847

mrpc

More Information Needed

qnli

More Information Needed

qqp

More Information Needed

rte

More Information Needed

sst2

More Information Needed

stsb

More Information Needed

wnli

More Information Needed

Dataset Creation

Curation Rationale

More Information Needed

Source Data

Initial Data Collection and Normalization

More Information Needed

Who are the source language producers?

More Information Needed

Annotations

Annotation process

More Information Needed

Who are the annotators?

More Information Needed

Personal and Sensitive Information

More Information Needed

Considerations for Using the Data

Social Impact of Dataset

More Information Needed

Discussion of Biases

More Information Needed

Other Known Limitations

More Information Needed

Additional Information

Dataset Curators

More Information Needed

Licensing Information

More Information Needed

Citation Information

@article{warstadt2018neural,
  title={Neural Network Acceptability Judgments},
  author={Warstadt, Alex and Singh, Amanpreet and Bowman, Samuel R},
  journal={arXiv preprint arXiv:1805.12471},
  year={2018}
}
@inproceedings{wang2019glue,
  title={{GLUE}: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding},
  author={Wang, Alex and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R.},
  note={In the Proceedings of ICLR.},
  year={2019}
}

Note that each GLUE dataset has its own citation. Please see the source to see
the correct citation for each contained dataset.

Contributions

Thanks to @patpizio, @jeswan, @thomwolf, @patrickvonplaten, @mariamabarham for adding this dataset.