二次预测能告诉我们什么?用SQuAD-v2 .0进行问答的探讨
What Can Secondary Predictions Tell Us? An Exploration on Question-Answering with SQuAD-v2.0
摘要:
自然语言处理的性能,特别是问答任务的性能,通常是通过比较模型最有信心的(主要)预测和黄金答案(地面真相)来衡量的。我们正在证明,即使对于失败的例子,量化模型预测正确答案的接近程度也是有用的。我们将一个例子的黄金排名(GR)定义为与地面事实完全匹配的最有信心的预测的排名,并展示了为什么这样的匹配总是存在。对于我们分析的16个Transformer模型,次级预测空间中大多数完全匹配的黄金答案都非常接近顶级。我们将次要预测称为那些在置信概率降序中排名在0以上的预测。我们演示了如何GR可以用来分类的问题,并可视化他们的难度谱,从持久的接近成功的持续极端失败。我们在整个测试集上推导出一个新的聚合统计量,称为黄金秩插值中位数(GRIM),它量化了失败预测与模型所做的最佳选择的接近程度。为了开发一些直觉并探索这些指标的适用性,我们使用了斯坦福问答数据集(SQuAD-2)和Hugging Face中心的一些流行的Transformer模型。我们首先证明GRIM与F1和精确匹配(EM)分数不直接相关。然后,我们计算和可视化这些分数为各种Transformer架构,探索其适用性的错误分析聚类失败的预测,并比较它们如何与其他训练诊断,如EM和F1分数。最后,我们提出了各种研究目标,如扩大这些指标的数据汇集及其在对抗训练中的可能用途。
英文摘要:
Performance in natural language processing, and specifically for the question-answer task, is typically measured by comparing a modelś most confident (primary) prediction to golden answers (the ground truth). We are making the case that it is also useful to quantify how close a model came to predicting a correct answer even for examples that failed. We define the Golden Rank (GR) of an example as the rank of its most confident prediction that exactly matches a ground truth, and show why such a match always exists. For the 16 transformer models we analyzed, the majority of exactly matched golden answers in secondary prediction space hover very close to the top rank. We refer to secondary predictions as those ranking above 0 in descending confidence probability order. We demonstrate how the GR can be used to classify questions and visualize their spectrum of difficulty, from persistent near successes to persistent extreme failures. We derive a new aggregate statistic over entire test sets, named the Golden Rank Interpolated Median (GRIM) that quantifies the proximity of failed predictions to the top choice made by the model. To develop some intuition and explore the applicability of these metrics we use the Stanford Question Answering Dataset (SQuAD-2) and a few popular transformer models from the Hugging Face hub. We first demonstrate that the GRIM is not directly correlated with the F1 and exact match (EM) scores. We then calculate and visualize these scores for various transformer architectures, probe their applicability in error analysis by clustering failed predictions, and compare how they relate to other training diagnostics such as the EM and F1 scores. We finally suggest various research goals, such as broadening data collection for these metrics and their possible use in adversarial training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。