arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.09912cs.CL
收藏

分词一致性对抽取式NLP任务中的生成模型至关重要

Tokenization Consistency Matters for Generative Models on Extractive NLP Tasks

AWS AI Labs(AWS AI 实验室);Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院)

Kaiser Sun, Peng Qi, Yuhao Zhang, Lan Liu, William Yang Wang, Zhiheng Huang

AI总结:

本文指出生成模型在抽取式任务中存在的分词不一致问题,提出一种简单有效的修复方法,实验证明一致的分词能显著提升模型性能、加快收敛并减少幻觉。

摘要:

生成模型已被广泛应用于解决抽取式任务,即提取输入的部分内容以形成所需的输出,并取得了显著成功。例如,在抽取式问答(QA)中,生成模型不断取得最先进的结果。在本研究中,我们指出了在训练这些模型时通常被忽视的分词不一致问题。当分词器对输入和输出进行不一致的分词后,这一问题会破坏这些任务的抽取本质,从而导致性能下降以及幻觉现象。我们针对该问题提出了一种简单而有效的修复方法,并在抽取式QA上进行了案例研究。我们表明,在一致的分词下,模型在域内和域外数据集上均表现更好;当 BART 模型在 SQuAD 上训练并在8个QA数据集上评估时,获得了平均 +1.7 F2 的显著提升。此外,模型收敛更快,且生成脱离上下文答案的可能性降低。基于这些发现,我们呼吁在解决抽取式任务时更多关注应如何进行分词,并建议在训练期间应用一致的分词。

英文摘要:

Generative models have been widely applied to solve extractive tasks, where parts of the input is extracted to form the desired output, and achieved significant success. For example, in extractive question answering (QA), generative models have constantly yielded state-of-the-art results. In this work, we identify the issue of tokenization inconsistency that is commonly neglected in training these models. This issue damages the extractive nature of these tasks after the input and output are tokenized inconsistently by the tokenizer, and thus leads to performance drop as well as hallucination. We propose a simple yet effective fix to this issue and conduct a case study on extractive QA. We show that, with consistent tokenization, the model performs better in both in-domain and out-of-domain datasets, with a notable average of +1.7 F2 gain when a BART model is trained on SQuAD and evaluated on 8 QA datasets. Further, the model converges faster, and becomes less likely to generate out-of-context answers. With these findings, we would like to call for more attention on how tokenization should be done when solving extractive tasks and recommend applying consistent tokenization during training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑