arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.00894cs.CLcs.AI
收藏

MorphBPE:一种桥接语言复杂性以实现跨词法高效LLM训练的形态感知分词器

MorphBPE: A Morpho-Aware Tokenizer Bridging Linguistic Complexity for Efficient LLM Training Across Morphologies

Qatar Computing Research Institute (QCRI)(卡塔尔计算研究所);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Technical University of Berlin(柏林工业大学)

Ehsaneddin Asgari, Yassine El Kheir, Mohammad Ali Sadraei Javaheri

AI总结:

本文提出形态感知分词器MorphBPE,通过将语言结构整合到子词分词中提升LLM训练效率,并引入两项形态评估指标,实验证明其在多语种和不同规模模型中能降低损失、加速收敛并改善形态对齐。

摘要:

分词是自然语言处理(NLP)的基础,直接影响模型效率和语言保真度。尽管Byte Pair Encoding(BPE)在大型语言模型(LLM)中被广泛使用,但它经常忽略语素边界,导致分割效果欠佳,在形态丰富的语言中尤为明显。我们提出了MorphBPE,一种BPE的形态感知扩展,它将语言结构整合到子词分词中,同时保持统计效率。此外,我们提出了两项基于形态的评估指标:(i)形态一致性F1分数(Morphological Consistency F1-Score),量化语素共享与词元共享之间的一致性,有助于LLM训练收敛;以及(ii)形态编辑距离(Morphological Edit Distance),衡量关于可解释性的语素与词元之间的对齐程度。在英语、俄语、匈牙利语和阿拉伯语上,针对300M和1B参数的LLM进行的实验表明,MorphBPE持续降低交叉熵损失,加速收敛,并提高形态对齐分数。MorphBPE与现有LLM流程完全兼容,只需极少修改即可集成。MorphBPE代码库和分词器测试平台将提供于:https://github.com/llm-lab-org/MorphBPE 和 https://tokenizer.llm-lab.org

英文摘要:

Tokenization is fundamental to Natural Language Processing (NLP), directly impacting model efficiency and linguistic fidelity. While Byte Pair Encoding (BPE) is widely used in Large Language Models (LLMs), it often disregards morpheme boundaries, leading to suboptimal segmentation, particularly in morphologically rich languages. We introduce MorphBPE, a morphology-aware extension of BPE that integrates linguistic structure into subword tokenization while preserving statistical efficiency. Additionally, we propose two morphology-based evaluation metrics: (i) Morphological Consistency F1-Score, which quantifies the consistency between morpheme sharing and token sharing, contributing to LLM training convergence, and (ii) Morphological Edit Distance, which measures alignment between morphemes and tokens concerning interpretability. Experiments on English, Russian, Hungarian, and Arabic across 300M and 1B parameter LLMs demonstrate that MorphBPE consistently reduces cross-entropy loss, accelerates convergence, and improves morphological alignment scores. Fully compatible with existing LLM pipelines, MorphBPE requires minimal modifications for integration. The MorphBPE codebase and tokenizer playground will be available at: https://github.com/llm-lab-org/MorphBPE and https://tokenizer.llm-lab.org

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

↑