Wang 2018 - Baselines and Benchmark Results

Summary

Baselines: a BiLSTM sentence encoder with optional attention, ELMo or CoVe embeddings, trained either single-task or multi-task; and five pre-trained sentence-to-vector encoders (CBoW, Skip-Thought, InferSent, DisSent, GenSen) with task-specific classifiers on top. Multi-task training beats single-task for attention or ELMo models (best: 70.0 vs 66.5), ELMo consistently helps, CoVe has mixed effects, and several tasks (WNLI, RTE, CoLA) remain essentially unsolved. The authors conclude “solving GLUE is beyond the capabilities of current models and methods.”

Overview

The baselines serve two purposes: establish reference scores and test whether the benchmark rewards cross-task sharing, as designed. Models are implemented in AllenNLP; code at nyu-mll/GLUE-baselines (a later version in jsalt18-sentence-repl/jiant).

Main Content

Architectures (Sec. 5)

  • Base model. Two-layer BiLSTM, 1500D per direction, max pooling, 300D GloVe (840B Common Crawl). Single-sentence tasks: encode sentence to vector, classify. Sentence-pair tasks: encode each sentence independently to and pass to the classifier, an MLP with a 512D hidden layer.
  • Attention variant. Attention (inspired by BiDAF, Seo et al.) between all pairs of words followed by a second BiLSTM with max pooling, so it is no longer sentence-to-vector. Implementation (Appendix B.1): for hidden states and compute ; attention weights ; context ; a second BiLSTM with max pooling over gives (and symmetrically ); then goes into the classifier.
  • Pre-training. ELMo (two-layer biLM on the Billion Word Benchmark; contextual embedding = linear combination of hidden states of each layer; used in place of other embeddings). CoVe (two-layer BiLSTM encoder trained for English-to-German translation; top-layer hidden state concatenated to GloVe).
  • Training. BiLSTM encoder and post-attention BiLSTMs shared across tasks, with separate classifiers per task. A task is sampled for each update with probability proportional to its number of training examples (Appendix B.2 also scales each task’s loss inversely to its number of examples). Adam, batch size 128, macro-average dev score as validation metric; stop when learning rate falls below or no improvement after 5 validation checks. Single-task models are configured identically but share no parameters (and are not tuned per task, so they are not state of the art).
  • Sentence-representation models (frozen encoders, task-specific classifiers only; SentEval defaults): CBoW (average of GloVe), Skip-Thought (Toronto Book Corpus), InferSent (BiLSTM max-pool trained on MNLI and SNLI), DisSent (predict discourse marker, 8-way, from TBC), GenSen (multi-task seq2seq: MNLI+SNLI, Skip-Thought on TBC, constituency parsing on Billion Word).
  • For each model, three runs were trained and the run with best dev macro-average evaluated (for single-task and sentence-representation models, the best run per task).

Table 4: test-set results (all x100)

ModelAvgCoLASST-2MRPC (acc/F1)QQP (acc/F1)STS-B (Pear/Spear)MNLI (m/mm)QNLIRTEWNLI
Single-task training
BiLSTM63.915.785.969.3/79.481.7/61.466.0/62.870.3/70.875.752.865.1
+ELMo66.435.090.269.0/80.885.7/65.664.0/60.272.9/73.471.750.165.1
+CoVe64.014.588.573.4/81.483.3/59.467.2/64.164.5/64.875.453.565.1
+Attn63.915.785.968.5/80.383.5/62.959.3/55.874.2/73.877.251.965.1
+Attn, ELMo66.535.090.268.8/80.286.5/66.155.5/52.576.9/76.776.750.465.1
+Attn, CoVe63.214.588.568.6/79.784.1/60.157.2/53.671.6/71.574.552.765.1
Multi-task training
BiLSTM64.211.682.874.3/81.884.2/62.570.3/67.865.4/66.174.657.465.1
+ELMo67.732.189.378.0/84.782.6/61.167.2/67.970.3/67.875.557.465.1
+CoVe62.918.581.971.5/78.784.9/60.664.4/62.765.4/65.770.852.765.1
+Attn65.618.683.076.2/83.982.4/60.172.8/70.567.6/68.374.358.465.1
+Attn, ELMo70.033.690.478.0/84.484.3/63.174.2/72.374.1/74.579.858.965.1
+Attn, CoVe63.18.380.771.8/80.083.4/60.569.8/68.468.1/68.672.956.065.1
Pre-trained sentence representation models
CBoW58.90.080.073.4/81.579.1/51.461.2/58.756.0/56.472.154.165.1
Skip-Thought61.30.081.871.7/80.882.2/56.471.8/69.762.9/62.872.953.165.1
InferSent63.94.585.174.1/81.281.7/59.175.9/75.366.1/65.772.758.065.1
DisSent62.04.983.774.1/81.782.6/59.566.1/64.858.7/59.173.956.465.1
GenSen66.27.783.176.6/83.082.9/59.879.3/79.271.4/71.378.659.265.1

Note: Table 4 as printed shows the single-task “+Attn” row equal to the BiLSTM row for CoLA and SST-2 (and likewise ELMo rows duplicate each other, CoVe rows duplicate each other); this appears to reflect that those tasks ignore the attention component in the single-task setup (single-sentence tasks have no pair to attend over). WNLI is 65.1 for every row because predictions are replaced by the most-frequent-class baseline.

Findings from Table 4 (Sec. 6)

  1. Multi-task helps when the model can use it. Overall scores are better with multi-task training for models with attention or ELMo. Attention generally has negligible or negative aggregate effect in single-task training but helps in multi-task training. For example, +Attn,ELMo: 66.5 single-task vs 70.0 multi-task.
  2. ELMo gives consistent improvements over GloVe or CoVe, particularly on single-sentence tasks (CoLA 15.7 to 35.0 single-task).
  3. CoVe has mixed effects.
  4. Sentence-representation models improve fairly consistently from CBoW to Skip-Thought to InferSent and GenSen. InferSent is competitive with models trained on GLUE; GenSen (66.2) beats all but the two best.
  5. Per-task patterns: sentence-representation models do far worse on CoLA than models trained directly on it (e.g. 7.7 vs 35.0), but on STS-B directly trained models lag far behind the best encoder (GenSen 79.3/79.2 vs 74.2/72.3 best trained).
  6. No model beats majority-class on WNLI (65.1); predictions are substituted with the majority baseline. RTE and the aggregate also leave much room.

Examples

Does multi-task training help? A paired comparison

Compute the multi-task minus single-task difference in macro-average for the models available in both settings: BiLSTM ( vs ), +ELMo ( vs ), +CoVe ( vs ), +Attn ( vs ), +Attn,ELMo ( vs ), +Attn,CoVe ( vs ). Four of the six differences are positive, two are negative, and the benefit concentrates in the models with attention or ELMo. The best of three runs (chosen on dev) is reported for each configuration, so these are single-selection differences without uncertainty estimates, a limitation the paper does not address.

single = {"BiLSTM":63.9,"+ELMo":66.4,"+CoVe":64.0,"+Attn":63.9,"+Attn,ELMo":66.5,"+Attn,CoVe":63.2}
multi  = {"BiLSTM":64.2,"+ELMo":67.7,"+CoVe":62.9,"+Attn":65.6,"+Attn,ELMo":70.0,"+Attn,CoVe":63.1}
for k in single: print(f"{k:12s} {multi[k]-single[k]:+.1f}")

Connections

Relevance to marketing measurement. The paper’s “multi-task beats single-task” finding for data-scarce tasks is the empirical counterpart of partial pooling across campaigns or markets (see Partial Pooling as Multiple Comparisons Correction). The caution about unquantified single-run differences applies equally to comparing MMM variants.

See Also