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

MANTa:一种高效的基于递归的Tokenization,用于健壮的端到端语言建模

MANTa: Efficient Gradient-Based Tokenization for Robust End-to-End Language Modeling

Inria(法国国家信息与自动化研究所);Sorbonne Université(索邦大学)

Nathan Godey, Roman Castagné, Éric de la Clergerie, Benoît Sagot

摘要:

静态子词标记化算法已经成为语言建模的重要组成部分。然而,它们的静态性质导致了重要的缺陷,降低了模型的下游性能和鲁棒性。在这项工作中,我们提出了MANTa,一个自适应神经令牌化模块。MANTa是一个端到端使用语言模型训练的可区分标记器。由此产生的系统提供了字节级模型的表达能力和使用子字标记化训练的模型的速度之间的权衡。此外,我们的tokenizer是高度可解释的,因为它产生了一个明确的序列分割成块。我们在来自不同领域的几个英语数据集以及合成噪声上评估了我们的预训练模型。我们发现,MANTa提高了字符扰动和域外数据的鲁棒性。然后,我们表明,MANTa执行其他模型的一般域GLUE基准。最后,我们证明了它比严格的字节级模型快得多。

英文摘要:

Static subword tokenization algorithms have been an essential component of recent works on language modeling. However, their static nature results in important flaws that degrade the models' downstream performance and robustness. In this work, we propose MANTa, a Module for Adaptive Neural TokenizAtion. MANTa is a differentiable tokenizer trained end-to-end with the language model. The resulting system offers a trade-off between the expressiveness of byte-level models and the speed of models trained using subword tokenization. In addition, our tokenizer is highly explainable since it produces an explicit segmentation of sequences into blocks. We evaluate our pre-trained model on several English datasets from different domains as well as on synthetic noise. We find that MANTa improves robustness to character perturbations and out-of-domain data. We then show that MANTa performs comparably to other models on the general-domain GLUE benchmark. Finally, we show that it is considerably faster than strictly byte-level models.

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

↑