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

Charformer:通过基于角色的子字Tokenization实现快速角色Transformers

Charformer: Fast Character Transformers via Gradient-based Subword Tokenization

Google Research(谷歌研究院);DeepMind(深度思维)

Yi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Gupta, Hyung Won Chung, Dara Bahri, Zhen Qin, Simon Baumgartner, Cong Yu, Donald Metzler

摘要:

自然语言处理中最先进的模型依赖于单独的刚性子词标记化算法,这限制了它们的泛化能力和对新设置的适应。在本文中,我们提出了一个新的模型归纳偏见,学习一个子词标记化端到端的模型的一部分。为此,我们引入了一个软的基于梯度的子词标记化模块(GBST),自动学习潜在的子词表示字符的数据驱动的方式。具体地说,GBST枚举候选子字块,并学习使用块评分网络以位置方式对其进行评分。我们还介绍了Charformer,一个深度的Transformer模型,它集成了GBST并在字节级别上运行。通过对英语GLUE,多语言和嘈杂文本数据集的广泛实验,我们表明Charformer优于一系列有竞争力的字节级基线,同时通常表现相当,有时优于基于子词的模型。此外,Charformer速度很快,将普通字节级和子字级Transformers的速度提高了28%-100%,同时保持了具有竞争力的质量。我们相信这项工作为完全端到端训练的高性能无令牌模型铺平了道路。

英文摘要:

State-of-the-art models in natural language processing rely on separate rigid subword tokenization algorithms, which limit their generalization ability and adaptation to new settings. In this paper, we propose a new model inductive bias that learns a subword tokenization end-to-end as part of the model. To this end, we introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. Concretely, GBST enumerates candidate subword blocks and learns to score them in a position-wise fashion using a block scoring network. We additionally introduce Charformer, a deep Transformer model that integrates GBST and operates on the byte level. Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28%-100% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.

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

↑