How Important Is Tokenization in French Medical Masked Language Models?
LIA, Avignon University(阿维尼翁大学计算机科学与人工智能实验室);Zenidoc(Zenidoc公司);Nantes Université(南特大学);École Centrale Nantes(南特中央理工学院);CNRS(法国国家科学研究中心);LS2N, UMR 6004(南特数字科学实验室)
Yanis Labrak, Adrien Bazoge, Beatrice Daille, Mickael Rouvier, Richard Dufour
Subword tokenization has become the prevailing standard in the field of natural language processing (NLP) over recent years, primarily due to the widespread utilization of pre-trained language models. This shift began with Byte-Pair Encoding (BPE) and was later followed by the adoption of SentencePiece and WordPiece. While subword tokenization consistently outperforms character and word-level tokenization, the precise factors contributing to its success remain unclear. Key aspects such as the optimal segmentation granularity for diverse tasks and languages, the influence of data sources on tokenizers, and the role of morphological information in Indo-European languages remain insufficiently explored. This is particularly pertinent for biomedical terminology, characterized by specific rules governing morpheme combinations. Despite the agglutinative nature of biomedical terminology, existing language models do not explicitly incorporate this knowledge, leading to inconsistent tokenization strategies for common terms. In this paper, we seek to delve into the complexities of subword tokenization in French biomedical domain across a variety of NLP tasks and pinpoint areas where further enhancements can be made. We analyze classical tokenization algorithms, including BPE and SentencePiece, and introduce an original tokenization strategy that integrates morpheme-enriched word segmentation into existing tokenization methods.
Wine is Not v i n. -- On the Compatibility of Tokenizations Across Languages
LMU Munich(慕尼黑大学)
词汇表的大小是大型预训练语言模型的核心设计选择,考虑到性能和内存需求。通常,使用诸如字节对编码和WordPiece的子字标记化算法。在这项工作中,我们调查的多语言静态和上下文嵌入空间的标记化的兼容性,并提出了一个措施,反映了跨语言的标记化的兼容性。我们的目标是防止不兼容的标记,例如,英语中的“wine”(词级)与法语中的“v i n”(字符级),这使得很难学习良好的多语言语义表示。我们表明,我们的兼容性措施允许系统设计人员创建跨语言的词汇表是兼容的-一个迫切需要,到目前为止,一直被忽视的多语言模型。
MVP-BERT: Redesigning Vocabularies for Chinese BERT and Multi-Vocab Pretraining
East China Normal University(华东师范大学)
尽管预训练语言模型(PLM)的发展显著提高了各种中文自然语言处理(NLP)任务的性能,但这些中文PLM的词汇仍然是Google Chinese BERT \cite{devlin2018bert}提供的基于汉字的词汇。第二,掩蔽语言模型预训练基于单个词汇,这限制了其下游任务性能。在这项工作中,我们首先提出了一种新的方法,\emph{seg\_tok},形成汉语BERT的词汇,与中文分词(CWS)和子词标记的帮助。然后,我们提出了三个版本的多词汇预训练(MVP),以提高模型的表达能力。实验表明:(a)与基于字符的词汇表相比,\emph{seg\_tok}不仅提高了中文PLM在句子级任务上的性能,而且还提高了效率:(b)MVP提高了PLM的下游性能,特别是提高了\emph{seg\_tok}在序列标注任务上的性能。
Quantitative Measurement of Language Distance among Closely Related Indo-European Languages Using Pretrained Language Models: A Case Study on the North Germanic Branch
The SIGMORPHON 2022 Shared Task on Morpheme Segmentation
National University of Mongolia(蒙古国立大学);University of Trento(特伦托大学);Georgetown University(乔治城大学);University of Vienna(维也纳大学);Graduate center, City University Of New York(纽约城市大学研究生中心);Charles University(查理大学);University of Ostrava(俄斯特拉发大学);ETH Zürich(苏黎世联邦理工学院);University of Melbourne(墨尔本大学)