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

Toucan:令牌感知的字符级语言建模

Toucan: Token-Aware Character Level Language Modeling

Johns Hopkins University(约翰霍普金斯大学)

William Fleshman, Benjamin Van Durme

AI总结:

针对字符级语言模型效率低的问题,提出Toucan增强方法,使其令牌感知,在字符生成上显著加速且不损性能,并发现动态分词优于固定词汇方案。

摘要:

字符级语言模型无需单独训练分词器,但效率因更长的序列长度而受损。学习将字符表示组合成令牌已使这些模型的训练更加高效,但它们仍需逐个解码字符。我们提出Toucan,一种对字符级模型的增强,使其“令牌感知”。将我们的方法与先前工作进行比较,我们展示了在字符生成上的显著加速,且不损失语言建模性能。随后,我们探讨了所学得的字符序列动态分词与流行的固定词汇解决方案(如字节对编码和WordPiece)之间的差异,发现我们的方法导致更多较长的序列被分词为单个项目。我们的项目和代码可在 https://nlp.jhu.edu/nuggets/ 获取。

英文摘要:

Character-level language models obviate the need for separately trained tokenizers, but efficiency suffers from longer sequence lengths. Learning to combine character representations into tokens has made training these models more efficient, but they still require decoding characters individually. We propose Toucan, an augmentation to character-level models to make them "token-aware". Comparing our method to prior work, we demonstrate significant speed-ups in character generation without a loss in language modeling performance. We then explore differences between our learned dynamic tokenization of character sequences with popular fixed vocabulary solutions such as Byte-Pair Encoding and WordPiece, finding our approach leads to a greater amount of longer sequences tokenized as single items. Our project and code are available at https://nlp.jhu.edu/nuggets/.

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

↑