分词是大型语言模型(LLMs)的关键预处理步骤,直接影响训练效率和下游性能。通用分词器主要针对英语和拉丁文字语言训练,对形态丰富的语言如阿拉伯语表现不佳,导致分词序列膨胀和压缩效率降低。在本工作中,我们提出了AraToken,一种基于SentencePiece Unigram算法的阿拉伯语优化分词器,配备全面的规范化流程,解决阿拉伯语特有的拼写变异,包括阿利夫变体、附加符号和阿拉伯-印度数字。我们系统地比较了BPE、WordPiece和SentencePiece算法在多种配置下的表现,证明SentencePiece配合规范化可将生育率降低18%(1.199 vs 1.35 tokens/word)相比未规范的基线。此外,我们引入了语言扩展流程(LEP),一种将优化分词器整合到Qwen3-0.6B中的方法,通过词汇扩展与均值子词初始化和选择性变压器层解冻实现。我们的实验表明,LEP在10万阿拉伯语样本上800次训练步骤内,将评估损失从8.28降至2.43。我们发布了分词器、训练脚本和模型检查点,以促进阿拉伯语NLP研究。
英文摘要:
Tokenization is a critical preprocessing step for large language models (LLMs), directly impacting training efficiency and downstream performance. General-purpose tokenizers trained predominantly on English and Latin-script languages exhibit suboptimal performance on morphologically rich languages such as Arabic, resulting in inflated token sequences and reduced compression efficiency. In this work, we present AraToken, an Arabic-optimized tokenizer built on SentencePiece Unigram algorithm with a comprehensive normalization pipeline addressing Arabic-specific orthographic variations including Alif variants, diacritics, and Arabic-Indic numerals. We systematically compare BPE, WordPiece, and SentencePiece algorithms across multiple configurations, demonstrating that SentencePiece with normalization achieves 18% lower fertility (1.199 vs 1.35 tokens/word) compared to unnormalized baselines. Furthermore, we introduce the Language Extension Pipeline (LEP), a method for integrating the optimized tokenizer into Qwen3-0.6B through vocabulary extension with mean subtoken initialization and selective transformer layer unfreezing. Our experiments show that LEP reduces evaluation loss from 8.28 to 2.43 within 800 training steps on 100K Arabic samples. We release our tokenizer, training scripts, and model checkpoints to facilitate Arabic NLP research.
Morphemes Without Borders: Evaluating Root-Pattern Morphology in Arabic Tokenizers and LLMs
Saudi Data & AI Authority (SDAIA)(沙特数据与人工智能局);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);Princess Nourah Bint Abdulrahman University (PNU)(普罗瑟·努拉·本·阿卜杜勒拉赫曼大学)
Measuring the Tokenization Premium: A Cost Audit for Underserved Language Communities
John Jay College of Criminal Justice, City University of New York(纽约城市大学约翰杰刑事司法学院);The City College of New York, City University of New York(纽约城市大学城市学院);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)
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(柏林工业大学)
Splintering Nonconcatenative Languages for Better Tokenization
Department of Computer Science(计算机科学系);Data Science Research Center(数据科学研究中心);Bar-Ilan University(巴伊兰大学);Ben-Gurion University of the Negev(贝内-约瑟夫大学(内盖夫分校));δ DICTA, Jerusalem, Israel(δ DICTA,耶路撒冷,以色列)
The State of Large Language Models for African Languages: Progress and Challenges
University of Gondar(贡德大学);AIMS Research and Innovation Centre(AIMS研究与创新中心);Bahir Dar University(巴赫达尔大学);Bayero University Kano(卡诺巴耶罗大学);Addis Ababa University(亚的斯亚贝巴大学);Imperial College London(伦敦帝国学院);University of Hamburg(汉堡大学)
ZAEBUC-Spoken: A Multilingual Multidialectal Arabic-English Speech Corpus
New York University Abu Dhabi(纽约大学阿布扎比分校);University of Stuttgart(斯图加特大学);University of Tübingen(蒂宾根大学);United Arab Emirates University(阿联酋大学);Zayed University(扎耶德大学)
Domain-Adaptive Pre-Training for Arabic Aspect-Based Sentiment Analysis: A Comparative Study of Domain Adaptation and Fine-Tuning Strategies
Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziza University, Jeddah, Saudi Arabia(计算机科学系,计算与信息技术学院,国王阿卜杜勒阿齐兹大学,沙特阿拉伯吉达)
A Systematic Benchmark of Machine Transliteration Models for the Tajik-Farsi Language Pair: A Comparative Study from Rule-Based to Transformer Architectures
Institute of Computational Mathematics and Information Technologies(计算数学与信息科技学院);Kazan Federal University(卡兹安联邦大学)