数据集:
MRQA 2019共享任务关注的是问答中的泛化性能。一个有效的问答系统不仅应该能够通过训练集来插值回答来自相同分布的测试样例,还应该能够推广到超出分布范围的样例,这是一个更具挑战性的问题。
该数据集是18个现有QA数据集(精心选择的子集)的集合,并转换为相同的格式(SQuAD格式)。在这18个数据集中,六个数据集用于训练,六个数据集用于开发,最后的六个数据集用于测试。该数据集作为MRQA 2019共享任务的一部分发布。
根据官方仓库:
该任务的格式是抽取式问答。给定一个问题和上下文段落,系统必须找到最佳答案。虽然这种格式有些限制,但可以利用许多现有的数据集,并且其简单性有助于我们关注域外泛化,而不是其他重要但与此无关的挑战。
我们已经针对我们的统一抽取式设置调整了几个现有数据集。最重要的改动如下:
如果答案进行了与SQuAD数据集一致的规范化处理,那么标记为跨度的字符串将被认为是完全匹配。具体来说:
答案使用精确匹配和标记级F1指标进行评估。可参考 mrqa_official_eval.py 进行评估。
数据集中的文本为英文。对应的BCP-47代码为en。
一个示例的样子如下:
{
'qid': 'f43c83e38d1e424ea00f8ad3c77ec999',
'subset': 'SQuAD'
'context': 'CBS broadcast Super Bowl 50 in the U.S., and charged an average of $5 million for a 30-second commercial during the game. The Super Bowl 50 halftime show was headlined by the British rock group Coldplay with special guest performers Beyoncé and Bruno Mars, who headlined the Super Bowl XLVII and Super Bowl XLVIII halftime shows, respectively. It was the third-most watched U.S. broadcast ever.',
'context_tokens': {
'offsets': [0, 4, 14, 20, 25, 28, 31, 35, 39, 41, 45, 53, 56, 64, 67, 68, 70, 78, 82, 84, 94, 105, 112, 116, 120, 122, 126, 132, 137, 140, 149, 154, 158, 168, 171, 175, 183, 188, 194, 203, 208, 216, 222, 233, 241, 245, 251, 255, 257, 261, 271, 275, 281, 286, 292, 296, 302, 307, 314, 323, 328, 330, 342, 344, 347, 351, 355, 360, 361, 366, 374, 379, 389, 393],
'tokens': ['CBS', 'broadcast', 'Super', 'Bowl', '50', 'in', 'the', 'U.S.', ',', 'and', 'charged', 'an', 'average', 'of', '$', '5', 'million', 'for', 'a', '30-second', 'commercial', 'during', 'the', 'game', '.', 'The', 'Super', 'Bowl', '50', 'halftime', 'show', 'was', 'headlined', 'by', 'the', 'British', 'rock', 'group', 'Coldplay', 'with', 'special', 'guest', 'performers', 'Beyoncé', 'and', 'Bruno', 'Mars', ',', 'who', 'headlined', 'the', 'Super', 'Bowl', 'XLVII', 'and', 'Super', 'Bowl', 'XLVIII', 'halftime', 'shows', ',', 'respectively', '.', 'It', 'was', 'the', 'third', '-', 'most', 'watched', 'U.S.', 'broadcast', 'ever', '.']
},
'question': "Who was the main performer at this year's halftime show?",
'question_tokens': {
'offsets': [0, 4, 8, 12, 17, 27, 30, 35, 39, 42, 51, 55],
'tokens': ['Who', 'was', 'the', 'main', 'performer', 'at', 'this', 'year', "'s", 'halftime', 'show', '?']
},
'detected_answers': {
'char_spans': [
{
'end': [201],
'start': [194]
}, {
'end': [201],
'start': [194]
}, {
'end': [201],
'start': [194]
}
],
'text': ['Coldplay', 'Coldplay', 'Coldplay'],
'token_spans': [
{
'end': [38],
'start': [38]
}, {
'end': [38],
'start': [38]
}, {
'end': [38],
'start': [38]
}
]
},
'answers': ['Coldplay', 'Coldplay', 'Coldplay'],
}
训练数据
| Dataset | Number of Examples |
|---|---|
| 1233321 | 86,588 |
| 1234321 | 74,160 |
| 1235321 | 61,688 |
| 1236321 | 117,384 |
| 1237321 | 72,928 |
| 1238321 | 104,071 |
开发数据
这些域内数据可用于帮助开发模型。
| Dataset | Examples |
|---|---|
| 1233321 | 10,507 |
| 1234321 | 4,212 |
| 1235321 | 7,785 |
| 1236321 | 16,980 |
| 1237321 | 5,904 |
| 1238321 | 12,836 |
测试数据
最终的测试数据仅包含域外数据。
| Dataset | Examples |
|---|---|
| 12315321 | 1,504 |
| 12316321 | 1,503 |
| 12317321 | 1,501 |
| 12318321 | 674 |
| 12319321 | 2,948 |
| 12320321 | 1,503 |
根据官方仓库:
注意:如前所述,域外数据集已经根据原始设置进行了修改,以适应统一的MRQA共享任务模式。从高层次来看,进行了以下两个主要修改:
1. 所有QA-上下文对都是抽取式的。也就是说,答案是从上下文中选择的,而不是通过多项选择等方式。
2. 所有上下文都被限制在最多800个令牌。因此,对于较长的上下文(如维基百科文章),我们只考虑答案出现在前800个令牌中的示例。
因此,一些拆分比原始数据集更困难(例如,在RACE中移除了多项选择),而另一些更容易(例如,在NaturalQuestions中限制了上下文长度——我们使用了短答案选择)。因此,如果与之前在这些数据集上的工作进行比较,应该预期不同的性能范围。
根据官方仓库:
训练和测试数据集的格式都是上述描述的相同格式,但在以下一些方面可能有所不同:
[需要更多信息]
初始数据收集和规范化[需要更多信息]
源语言生产者是谁?[需要更多信息]
[需要更多信息]
注释过程[需要更多信息]
注释者是谁?[需要更多信息]
[需要更多信息]
[需要更多信息]
[需要更多信息]
[需要更多信息]
[需要更多信息]
未知
@inproceedings{fisch2019mrqa,
title={{MRQA} 2019 Shared Task: Evaluating Generalization in Reading Comprehension},
author={Adam Fisch and Alon Talmor and Robin Jia and Minjoon Seo and Eunsol Choi and Danqi Chen},
booktitle={Proceedings of 2nd Machine Reading for Reading Comprehension (MRQA) Workshop at EMNLP},
year={2019},
}
感谢 @jimmycode 、 @VictorSanh 添加了这个数据集。