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

分词在法语医学掩码语言模型中有多重要?

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

AI总结:

本文研究法语生物医学领域中子词分词对掩码语言模型的影响,分析 BPE 和 SentencePiece 的不足,并提出融合语素信息的原创分词策略以改进下游 NLP 任务表现。

摘要:

近年来,子词分词已成为自然语言处理(NLP)领域的主流标准,这主要得益于预训练语言模型的广泛使用。这一转变始于字节对编码(BPE),随后又采用了 SentencePiece 和 WordPiece。尽管子词分词在性能上持续优于字符级和词级分词,但促成其成功的具体因素仍不清楚。诸如不同任务和语言的最佳分割粒度、数据来源对分词器的影响,以及形态学信息在印欧语言中的作用等关键方面仍未得到充分探索。这对于生物医学术语尤其重要,因为生物医学术语具有特定的语素组合规则。尽管生物医学术语具有黏着性,现有语言模型并未显式纳入这一知识,导致对常见术语的分词策略不一致。在本文中,我们试图深入探究法语生物医学领域中子词分词在各种 NLP 任务上的复杂性,并指出可以进一步改进的地方。我们分析了经典的分词算法,包括 BPE 和 SentencePiece,并提出了一种原创的分词策略,将富含语素的词分割集成到现有分词方法中。

英文摘要:

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.

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

↑