arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.10508cs.CLcs.LG
收藏

在单词和字符之间:开放词汇建模和NLP中的Tokenization简史

Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLP

Johns Hopkins University(约翰霍普金斯大学);HuggingFace;King Fahd University of Petroleum and Minerals(法赫德国王石油矿产大学);SAP(SAP公司);Naver Labs Europe;Institute for Infocomm Research, A*STAR Singapore(新加坡科技研究局资讯通信研究院);University of Maryland(马里兰大学);BigScience Workshop(BigScience研讨会);Inria Paris(法国国家信息与自动化研究所巴黎中心);Salesforce Research Asia(Salesforce亚洲研究院);National University of Singapore(新加坡国立大学)

Sabrina J. Mielke, Zaid Alyafeai, Elizabeth Salesky, Colin Raffel, Manan Dey, Matthias Gallé, Arun Raja, Chenglei Si, Wilson Y. Lee, Benoît Sagot, Samson Tan

摘要:

我们要建模的文本单元是什么?从字节到多词表达式,文本可以以多种粒度进行分析和生成。直到最近,大多数自然语言处理(NLP)模型都是在单词上运行的,将单词视为离散和原子标记,但从字节对编码(BPE)开始,基于子词的方法在许多领域都占据主导地位,支持小词汇表,同时仍然允许快速推理。路的尽头是字符级模型还是字节级处理?在这项调查中,我们连接了前神经和神经时代的几条工作线,通过展示如何提出和评估单词和字符的混合方法以及基于学习分割的基于子词的方法。我们得出的结论是,对于所有应用程序来说,永远不会有一个银弹单一解决方案,并且认真考虑令牌化对许多应用程序仍然很重要。

英文摘要:

What are the units of text that we want to model? From bytes to multi-word expressions, text can be analyzed and generated at many granularities. Until recently, most natural language processing (NLP) models operated over words, treating those as discrete and atomic tokens, but starting with byte-pair encoding (BPE), subword-based approaches have become dominant in many areas, enabling small vocabularies while still allowing for fast inference. Is the end of the road character-level model or byte-level processing? In this survey, we connect several lines of work from the pre-neural and neural era, by showing how hybrid approaches of words and characters as well as subword-based approaches based on learned segmentation have been proposed and evaluated. We conclude that there is and likely will never be a silver bullet singular solution for all applications and that thinking seriously about tokenization remains important for many applications.

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

↑