arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.02550cs.CL
收藏

您应该根据标记化的边际可能性来评估语言模型

You should evaluate your language model on marginal likelihood over tokenisations

DeepMind

Kris Cao, Laura Rimell

摘要:

神经语言模型通常将输入文本标记为子词单元以实现开放的词汇表。标准方法是在训练和测试时使用单个规范标记化。我们认为,这种方法是不能令人满意的,可能会瓶颈我们的评价语言模型的性能。仅使用一个最佳标记化忽略了标记化器对替代标记化的不确定性,这可能会损害模型的域外性能。在本文中,我们认为,相反,语言模型应评估其边际似然标记。我们比较了不同的估计的边际似然抽样的基础上,并表明,它是可行的,估计边际似然与可管理的样本数量。然后,我们评估预训练的英语和德语语言模型的最佳标记化和边际困惑,并表明边际困惑可以显着优于最佳标记化,特别是在域外数据上。我们将这种困惑的差异与标记器熵测量的标记器不确定性联系起来。我们讨论了我们的结果语言模型训练和评估的一些影响,特别是在标记鲁棒性方面。

英文摘要:

Neural language models typically tokenise input text into sub-word units to achieve an open vocabulary. The standard approach is to use a single canonical tokenisation at both train and test time. We suggest that this approach is unsatisfactory and may bottleneck our evaluation of language model performance. Using only the one-best tokenisation ignores tokeniser uncertainty over alternative tokenisations, which may hurt model out-of-domain performance. In this paper, we argue that instead, language models should be evaluated on their marginal likelihood over tokenisations. We compare different estimators for the marginal likelihood based on sampling, and show that it is feasible to estimate the marginal likelihood with a manageable number of samples. We then evaluate pretrained English and German language models on both the one-best-tokenisation and marginal perplexities, and show that the marginal perplexity can be significantly better than the one best, especially on out-of-domain data. We link this difference in perplexity to the tokeniser uncertainty as measured by tokeniser entropy. We discuss some implications of our results for language model training and evaluation, particularly with regard to tokenisation robustness.

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

↑