arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2105.13626cs.CL
收藏

ByT5:通过预训练的字节到字节模型实现无token的未来

ByT5: Towards a token-free future with pre-trained byte-to-byte models

Google Research(谷歌研究院)

Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel

摘要:

大多数广泛使用的预先训练的语言模型对与单词或子单词单元相对应的标记序列进行操作。相比之下,直接对原始文本(字节或字符)进行操作的无令牌模型有很多好处:它们可以开箱即用地处理任何语言的文本,它们对噪音更鲁棒,并且通过消除复杂和容易出错的文本预处理管道来最大限度地减少技术债务。由于字节或字符序列比令牌序列长,因此过去在无令牌模型上的工作经常引入新的模型架构,旨在分摊直接在原始文本上操作的成本。在本文中,我们表明,一个标准的Transformer架构,可以使用最小的修改,以处理字节序列。我们在参数计数,训练FLOPs和推理速度方面进行了权衡,并表明字节级模型与令牌级模型相比具有竞争力。我们还证明了字节级模型对噪声的鲁棒性更强,并且在对拼写和发音敏感的任务上表现得更好。作为我们贡献的一部分,我们发布了一组新的基于T5架构的预训练字节级Transformer模型,以及我们实验中使用的所有代码和数据。

英文摘要:

Most widely-used pre-trained language models operate on sequences of tokens corresponding to word or subword units. By comparison, token-free models that operate directly on raw text (bytes or characters) have many benefits: they can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Since byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with minimal modifications to process byte sequences. We characterize the trade-offs in terms of parameter count, training FLOPs, and inference speed, and show that byte-level models are competitive with their token-level counterparts. We also demonstrate that byte-level models are significantly more robust to noise and perform better on tasks that are sensitive to spelling and pronunciation. As part of our contribution, we release a new set of pre-trained byte-level Transformer models based on the T5 architecture, as well as all code and data used in our experiments.

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

↑