orb-eval
ORB: An Open Reading Benchmark for Comprehensive Evaluation of Machine Reading Comprehension — Dua et al. (2019) (arXiv:1912.12598, 2019)
What this evaluates
Evaluates machine reading comprehension models across diverse linguistic phenomena such as coreference resolution, temporal logic, and causal inference. It tests generalization capabilities by applying synthetic out-of-distribution augmentations to questions, ensuring models rely on reading comprehension rather than external information retrieval.
Datasets
- ORB Benchmark (NewsQA, Quoref, DROP, SQuAD 1.1, SQuAD 2.0, ROPES, DuoRC, NarrativeQA) — total ?; splits: dev (-1), test (-1)
Metrics
EM (primary) — range: [0, 1]
- 1.0 if the predicted answer exactly matches the gold answer (case-insensitive), 0.0 otherwise. Averaged across all instances.
Token F1 — range: [0, 1]
- Harmonic mean of token-level precision and recall between predicted and gold answers. Precision = common tokens / predicted tokens. Recall = common tokens / gold tokens. Averaged across instances.
Input / output format
Input: A context passage and a natural language question.
Output: Predicted answer span (start and end token indices in the context) or free-form text. For free-form datasets, training uses the context span with the highest ROUGE-L to the gold answer, but evaluation uses the original gold answer.
Scoring recipe
from collections import Counter
def compute_em_f1(preds, golds):
em_scores = []
f1_scores = []
for pred, gold in zip(preds, golds):
pred_tokens = pred.lower().split()
gold_tokens = gold.lower().split()
em_scores.append(1.0 if pred_tokens == gold_tokens else 0.0)
if len(gold_tokens) == 0:
f1_scores.append(0.0)
continue
common = Counter(pred_tokens) & Counter(gold_tokens)
num_same = sum(common.values())
precision = num_same / len(pred_tokens) if len(pred_tokens) > 0 else 0.0
recall = num_same / len(gold_tokens)
f1 = (2 * precision * recall) / (precision + recall) if (precision + recall) > 0 else 0.0
f1_scores.append(f1)
return sum(em_scores) / len(em_scores), sum(f1_scores) / len(f1_scores)
Common pitfalls
- Catastrophic forgetting occurs when sampling randomly from pooled datasets; requires uniform per-dataset sampling initially.
- Free-form answers in DuoRC/NarrativeQA are converted to ROUGE-L best spans for training labels, but evaluation uses original gold answers.
- Performance is heavily dominated by SQuAD 1.1, masking weaknesses on other datasets.
Evidence (verbatim from paper)
This helped improve the performance on several dataset by 3 - 4% in EM, however, there is still a lot of room for improvement on this front.
Citation
@misc{dua2019orb,
title={ORB: An Open Reading Benchmark for Comprehensive Evaluation of Machine Reading Comprehension},
author={Dua et al. (2019)},
year={2019},
note={arXiv:1912.12598}
}
1---2name: orb-eval3description: Evaluates machine reading comprehension models across diverse linguistic phenomena such as coreference resolution, temporal logic, and causal inference. It tests generalization capabilities by applying synthetic out-of-distribution augmentations to questions, ensuring models rely on reading comprehension rather than external information retrieval. Use when the user wants to benchmark on ORB Benchmark (NewsQA, Quoref, DROP, SQuAD 1.1, SQuAD 2.0, ROPES, DuoRC, NarrativeQA), or asks about evaluating this task. Reports EM.4---56# orb-eval78> ORB: An Open Reading Benchmark for Comprehensive Evaluation of Machine Reading Comprehension — Dua et al. (2019) (arXiv:1912.12598, 2019)910## What this evaluates1112Evaluates machine reading comprehension models across diverse linguistic phenomena such as coreference resolution, temporal logic, and causal inference. It tests generalization capabilities by applying synthetic out-of-distribution augmentations to questions, ensuring models rely on reading comprehension rather than external information retrieval.1314## Datasets1516- **ORB Benchmark (NewsQA, Quoref, DROP, SQuAD 1.1, SQuAD 2.0, ROPES, DuoRC, NarrativeQA)** — total ?; splits: dev (-1), test (-1)1718## Metrics1920- `EM` **(primary)** — range: [0, 1]21 - 1.0 if the predicted answer exactly matches the gold answer (case-insensitive), 0.0 otherwise. Averaged across all instances.22- `Token F1` — range: [0, 1]23 - Harmonic mean of token-level precision and recall between predicted and gold answers. Precision = common tokens / predicted tokens. Recall = common tokens / gold tokens. Averaged across instances.2425## Input / output format2627**Input**: A context passage and a natural language question.2829**Output**: Predicted answer span (start and end token indices in the context) or free-form text. For free-form datasets, training uses the context span with the highest ROUGE-L to the gold answer, but evaluation uses the original gold answer.3031## Scoring recipe3233```python34from collections import Counter35def compute_em_f1(preds, golds):36 em_scores = []37 f1_scores = []38 for pred, gold in zip(preds, golds):39 pred_tokens = pred.lower().split()40 gold_tokens = gold.lower().split()41 em_scores.append(1.0 if pred_tokens == gold_tokens else 0.0)42 if len(gold_tokens) == 0:43 f1_scores.append(0.0)44 continue45 common = Counter(pred_tokens) & Counter(gold_tokens)46 num_same = sum(common.values())47 precision = num_same / len(pred_tokens) if len(pred_tokens) > 0 else 0.048 recall = num_same / len(gold_tokens)49 f1 = (2 * precision * recall) / (precision + recall) if (precision + recall) > 0 else 0.050 f1_scores.append(f1)51 return sum(em_scores) / len(em_scores), sum(f1_scores) / len(f1_scores)52```5354## Common pitfalls5556- Catastrophic forgetting occurs when sampling randomly from pooled datasets; requires uniform per-dataset sampling initially.57- Free-form answers in DuoRC/NarrativeQA are converted to ROUGE-L best spans for training labels, but evaluation uses original gold answers.58- Performance is heavily dominated by SQuAD 1.1, masking weaknesses on other datasets.5960## Evidence (verbatim from paper)6162> This helped improve the performance on several dataset by 3 - 4% in EM, however, there is still a lot of room for improvement on this front.6364## Citation6566```bibtex67@misc{dua2019orb,68 title={ORB: An Open Reading Benchmark for Comprehensive Evaluation of Machine Reading Comprehension},69 author={Dua et al. (2019)},70 year={2019},71 note={arXiv:1912.12598}72}73```7475- arXiv: 1912.12598