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

学习深入了解:使用更高级信息增强基于Token的编码器

Learning to Look Inside: Augmenting Token-Based Encoders with Character-Level Information

Georgia Institute of Technology(佐治亚理工学院);Bloomberg(彭博);Johns Hopkins University(约翰斯·霍普金斯大学);Google Research(谷歌研究院)

Yuval Pinter, Amanda Stent, Mark Dredze, Jacob Eisenstein

摘要:

常用的Transformer语言模型依赖于标记化模式,该标记化模式在预训练之前设置不可改变的子词词汇表,该子词词汇表注定被应用于所有下游任务,而不管域转移、新颖的单词构成或词汇表不匹配的其他来源。最近的工作表明,“无令牌”模型可以直接在字符或字节上训练,但从头开始训练这些模型需要大量的计算资源,这意味着要丢弃许多在令牌上训练的特定于域的模型。在本文中,我们提出了XRayEmb,改造现有的基于令牌的模型与字符级信息的方法。XRayEmb由一个计算字符序列的矢量表示的字符级“编码器”和一个从内部表示解码为字符序列的生成组件组成。我们表明,将XRayEmb的学习向量结合到预先训练的令牌嵌入序列中有助于自回归和掩蔽的预先训练的Transformer架构以及序列级和序列标记任务的性能,特别是在非标准英语文本上。

英文摘要:

Commonly-used transformer language models depend on a tokenization schema which sets an unchangeable subword vocabulary prior to pre-training, destined to be applied to all downstream tasks regardless of domain shift, novel word formations, or other sources of vocabulary mismatch. Recent work has shown that "token-free" models can be trained directly on characters or bytes, but training these models from scratch requires substantial computational resources, and this implies discarding the many domain-specific models that were trained on tokens. In this paper, we present XRayEmb, a method for retrofitting existing token-based models with character-level information. XRayEmb is composed of a character-level "encoder" that computes vector representations of character sequences, and a generative component that decodes from the internal representation to a character sequence. We show that incorporating XRayEmb's learned vectors into sequences of pre-trained token embeddings helps performance on both autoregressive and masked pre-trained transformer architectures and on both sequence-level and sequence tagging tasks, particularly on non-standard English text.

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

↑