Wang 2018 - Evaluation Protocol and Scoring
Summary
GLUE follows the SemEval/Kaggle model: run a system on the provided test inputs, upload predictions to gluebenchmark.com, and receive per-task scores plus an unweighted macro-average that ranks the leaderboard. Multi-metric tasks are first averaged over their metrics. Private labels for four test sets and a two-submissions-per-day cap protect against overfitting to the test data. The protocol is model-agnostic.
Overview
Scoring is deliberately simple so that a single number can order submissions, but the paper keeps per-task scores and diagnostic results visible. This note defines the aggregate precisely and records the anti-gaming mechanics.
Main Content
GLUE score
Let the tasks be . Task has reported metrics with values (e.g. MRPC: accuracy and ; STS-B: Pearson and Spearman; MNLI: matched and mismatched accuracy; others ). The task score is the unweighted average of its metrics, and the leaderboard score is the unweighted macro-average over tasks:
Per-task metrics (Table 1): Matthews correlation (CoLA); accuracy (SST-2, QNLI, RTE, WNLI); accuracy and (MRPC, QQP); Pearson and Spearman (STS-B); matched and mismatched accuracy (MNLI).
Matthews correlation coefficient
For a binary confusion matrix with counts ,
with equal to uninformed guessing; used because CoLA is unbalanced. The diagnostic set uses the three-class generalization (Gorodkin 2004).
Platform mechanics.
- Users run on the provided test data and upload results; the site shows per-task scores and the macro-average that determines leaderboard position, plus fine- and coarse-grained diagnostic results.
- Private test labels for four of the datasets (the test sets “that have never been made public in any form”) “will be used to ensure that the benchmark is used fairly”.
- Submission limit: at most two submissions per day “in order to avoid overfitting to the private test data”. Because users cannot see test labels, development-set results (Table 6) are the reference for tuning.
- Tech stack (Appendix D): React, Redux, TypeScript front end; Google Firebase storage; Google Cloud Functions run the grading script on each submission. The leaderboard has an expanded view per submission with a brief prose description and parameter count.
- Model-agnostic: any system able to produce predictions on all nine tasks can be scored; there is no requirement for a vector representation.
Properties and caveats of the scoring rule
- Equal task weights. A 146-example test (WNLI) counts as much as a 391k-example test (QQP).
- Mixed scales. CoLA’s MCC (range to , here reported ) and accuracy percentages are averaged directly, though their chance levels differ (0 vs about 50).
- Averaging correlations and accuracies treats them as commensurable.
- Distribution mismatch is possible: QQP’s test label distribution differs from training; WNLI’s test (65% not-entailment) differs from training (balanced) and its dev set is adversarial.
Examples
Reproducing leaderboard averages from Table 4
Using the test-set table in Wang 2018 - Baselines and Benchmark Results, the GenSen row gives CoLA 7.7, SST-2 83.1, MRPC , QQP , STS-B , MNLI , QNLI 78.6, RTE 59.2, WNLI 65.1. Their mean is , matching the printed Avg. The CBoW row gives the same way.
import numpy as np
def glue_score(task_scores):
"""task_scores: dict task -> list of metric values (already x100)."""
per_task = [np.mean(v) for v in task_scores.values()]
return float(np.mean(per_task))
genSen = {
"CoLA":[7.7], "SST-2":[83.1], "MRPC":[76.6,83.0], "QQP":[82.9,59.8],
"STS-B":[79.3,79.2], "MNLI":[71.4,71.3], "QNLI":[78.6], "RTE":[59.2], "WNLI":[65.1]}
print(round(glue_score(genSen), 1)) # 66.2
# sensitivity: what if WNLI were dropped?
print(round(np.mean([np.mean(v) for k,v in genSen.items() if k!="WNLI"]), 1))Connections
- The private-test-label and submission-cap design is a defense against test-set overfitting; the broader selection problem is analyzed in Researcher Degrees of Freedom and Garden of Forking Paths.
- Aggregating into one number invites Goodhart effects: see Manheim Garrabrant 2018 - Variants of Goodhart’s Law - Overview.
- Liang 2022 - Holistic Evaluation Framework and Taxonomy moves from this scalar-per-task macro-average to a scenarios-by-metrics matrix and reports head-to-head win rates as an aggregation.
Relevance to marketing measurement. When comparing MMM or incrementality methods across many campaigns, a macro-average of a single error metric hides heterogeneity; keep per-campaign results and consider rank-based aggregation. A capped-submissions, withheld-ground-truth setup is also the right protocol for a fair method bake-off, see Experimental Benchmarks for Observational Ad Measurement.