数据不平衡自然语言处理任务的骰子损失
Dice Loss for Data-imbalanced NLP Tasks
AI总结:
针对数据不平衡的自然语言处理任务,提出用基于索伦森 - 戴斯系数或特沃斯基指数的骰子损失取代交叉熵目标,并给训练示例关联动态权重,在多种任务上显著提升性能。
摘要:
许多自然语言处理任务面临严重数据不平衡问题,常用的交叉熵准则在训练和测试时存在差异。本文提出用骰子损失取代标准交叉熵目标用于数据不平衡的自然语言处理任务。骰子损失基于索伦森 - 戴斯系数或特沃斯基指数,对正负例重视程度相似。还提出给训练示例关联动态调整权重以减轻易负例影响,实验表明该策略缩小了评估F1分数与训练骰子损失间差距,在多种任务上显著提升性能。
英文摘要:
Many NLP tasks such as tagging and machine reading comprehension are faced with the severe data imbalance issue: negative examples significantly outnumber positive examples, and the huge number of background examples (or easy-negative examples) overwhelms the training. The most commonly used cross entropy (CE) criteria is actually an accuracy-oriented objective, and thus creates a discrepancy between training and test: at training time, each training instance contributes equally to the objective function, while at test time F1 score concerns more about positive examples. In this paper, we propose to use dice loss in replacement of the standard cross-entropy objective for data-imbalanced NLP tasks. Dice loss is based on the Sorensen-Dice coefficient or Tversky index, which attaches similar importance to false positives and false negatives, and is more immune to the data-imbalance issue. To further alleviate the dominating influence from easy-negative examples in training, we propose to associate training examples with dynamically adjusted weights to deemphasize easy-negative examples.Theoretical analysis shows that this strategy narrows down the gap between the F1 score in evaluation and the dice loss in training. With the proposed training objective, we observe significant performance boost on a wide range of data imbalanced NLP tasks. Notably, we are able to achieve SOTA results on CTB5, CTB6 and UD1.4 for the part of speech tagging task; SOTA results on CoNLL03, OntoNotes5.0, MSRA and OntoNotes4.0 for the named entity recognition task; along with competitive results on the tasks of machine reading comprehension and paraphrase identification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。