Proceedings

Subword Tokenization for Low- and Medium-Resource Languages: A Systematic Evaluation

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 5684-5692.

https://doi.org/10.24963/ijcai.2026/633

Abstract

Subword tokenization is a standard technique for pre-trained language models, mapping text into sequences of tokens from a fixed-size vocabulary. Despite its widespread use, the impact of tokenization algorithms and vocabulary sizes on downstream performance remains underexplored, particularly for low- and medium-resource languages, where suboptimal configurations are difficult to compensate with additional data. Prior studies have mainly focused on high-resource languages, individual tokenization algorithms, or fixed vocabulary sizes, limiting their scope. In this paper, we present a systematic evaluation of subword tokenization strategies in six diverse low- and medium-resource languages: Icelandic, Estonian, Basque, Galician, Nepali, and Tajik. We pre-trained monolingual TEAMS-Small models using WordPiece, BPE, and Unigram tokenizers with vocabulary sizes of 16k, 32k, and 64k, and additionally compared byte-level and character-level tokenization for Icelandic. Evaluation on a benchmark of NLP tasks revealed that Unigram tokenization with a 64k vocabulary consistently outperformed other configurations, with vocabulary size having a greater impact on downstream performance than algorithm choice. These gains were task-dependent, with statistically significant improvements for part-of-speech tagging, named entity recognition, and question answering, but not for dependency parsing and summarization. Finally, byte-level tokenization provided no measurable advantage in a monolingual setting, suggesting that its benefits are primarily relevant for multilingual models.

  1. [Adelani et al., 2024] David Adelani, Hannah Liu, Xiaoyu Shen, Nikita Vassilyev, Jesujoba Alabi, et al. SIB-200: A Simple, Inclusive, and Big Evaluation Dataset for Topic Classification in 200+ Languages and Dialects. In Yvette Graham and Matthew Purver, editors, Proceedings of EACL 2024, pages 226-245, St. Julian's, Malta, March 2024. ACL.
  2. [Agerri et al., 2018] Rodrigo Agerri, Xavier Gómez Guino- vart, German Rigau, and Miguel Anxo Solla Portela. De- veloping New Linguistic Resources and Tools for the Gali- cian Language. In Proceedings of LREC 2018, Miyazaki, Japan, May 2018. ELRA.
  3. [Alegria et al., 2004] Iñaki Alegria, Olatz Arregi, Irene Balza, Nerea Ezeiza, Izaskun Fernandez, et al. Design and Development of a Named Entity Recognizer for an Ag- glutinative Language. In First IJCNLP-04 Workshop on Named Entity Recognition, 2004.
  4. [Ali et al., 2024] Mehdi Ali, Michael Fromm, Klaudia Thell- mann, Richard Rutmann, Max Lübbering, et al. Tokenizer Choice For LLM Training: Negligible or Crucial? In Kevin Duh, Helena Gomez, and Steven Bethard, editors, Findings of ACL: NAACL 2024, pages 3907-3924, Mex- ico City, Mexico, June 2024. ACL.
  5. [Aranzabe et al., 2015] Maria Jesús Aranzabe, Aitziber Atutxa, Kepa Bengoetxea, Arantza Diaz de Ilarraza, Iakes Goenaga, et al. Automatic Conversion of the Basque Dependency Treebank to Universal Dependencies. In Markus Dickinsons, Erhard Hinrichs, Agnieszka Pate- juk, and Adam Przepiórkowski, editors, Proceedings of TLT14, pages 233-241, Warszawa, Poland, 2015. Institute of Computer Science of the Polish Academy of Sciences.
  6. [Arnardóttir et al., 2020] Þórunn Arnardóttir, Hinrik Haf- steinsson, Einar Freyr Sigurðsson, Kristín Bjarnadóttir, Anton Karl Ingason, et al. A Universal Dependencies Con- version Pipeline for a Penn-format Constituency Treebank. In Proceedings of UDW 2020, pages 16-25, Barcelona, Spain (Online), 2020. ACL.
  7. [Artetxe et al., 2022] Mikel Artetxe, Itziar Aldabe, Rodrigo Agerri, Olatz Perez-de Viñaspre, and Aitor Soroa. Does Corpus Quality Really Matter for Low-Resource Lan- guages? In Proceedings of EMNLP 2022, pages 7383- 7390, Abu Dhabi, United Arab Emirates, December 2022.
  8. ACL.
  9. [Attardi et al., 2021] Giuseppe Attardi, Daniele Sartiano, and Maria Simi. Biaffine Dependency and Semantic Graph Parsing for Enhanced Universal Dependencies. In Pro- ceedings of IWPT 2021, pages 184-188, Online, August 2021. ACL.
  10. [Bostrom and Durrett, 2020] Kaj Bostrom and Greg Durrett. Byte Pair Encoding is Suboptimal for Language Model Pretraining. In Trevor Cohn, Yulan He, and Yang Liu, ed- itors, Findings of ACL: EMNLP 2020, pages 4617-4624, Online, November 2020. ACL.
  11. [Brown et al., 2020] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, et al. Lan- guage Models are Few-Shot Learners. arXiv preprint arXiv:2005.14165, 2020.
  12. [Clark et al., 2020] Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators. In Proceedings of ICLR 2020, Addis Ababa, Ethiopia, 2020.
  13. [Daðason and Loftsson, 2022] Jón Friðrik Daðason and Hrafn Loftsson. Pre-training and Evaluating Transformer- based Language Models for Icelandic. In Proceedings of LREC 2022, pages 7386-7391, Marseille, France, June 2022. ELRA.
  14. [Daðason and Loftsson, 2024] Jón Daðason and Hrafn Loftsson. Unsupervised Outlier Detection for Language- Independent Text Quality Filtering. In Maite Melero, Sakriani Sakti, and Claudia Soria, editors, Proceedings of the 3rd Annual Meeting of the Special Interest Group on Under-resourced Languages @ LREC-COLING 2024, pages 383-393, Torino, Italia, May 2024. ELRA and ICCL.
  15. [Daðason et al., 2021] Jón Daðason, Hrafn Loftsson, Sa- lome Sigurðardóttir, and Þorsteinn Björnsson. IceSum: An Icelandic Text Summarization Corpus. In Proceedings of NAACL-HLT Student Research Workshop 2021, pages 9- 14, Online, June 2021. ACL.
  16. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Under- standing. In Proceedings of NAACL-HLT 2019: Volume 1 (Long and Short Papers, pages 4171-4186, Minneapolis, Minnesota, June 2019. ACL.
  17. [Garcia et al., 2018] Marcos Garcia, Carlos Gómez- Rodríguez, and Miguel A. Alonso. New Treebank or Repurposed? On the Feasibility of Cross-Lingual Parsing of Romance languages with Universal Dependencies. Natural Language Engineering, 24(1):91-122, 01 2018.
  18. [Hofmann et al., 2021] Valentin Hofmann, Janet Pierrehum- bert, and Hinrich Schütze. Superbizarre Is Not Superb: Derivational Morphology Improves BERT's Interpretation of Complex Words. In Chengqing Zong, Fei Xia, Wen- jie Li, and Roberto Navigli, editors, Proceedings of ACL- IJCNLP 2021, pages 3594-3608, Online, August 2021.
  19. ACL.
  20. Svanhvít L. Ingólfsdóttir, Ás- mundur A. Guðjónsson, and Hrafn Loftsson. Named Entity Recognition for Icelandic: Annotated Corpus and Models. In Luis Espinosa-Anke, Carlos Martín-Vide, and Irena Spasić, editors, Proceedings of SLSP 2020, pages 46-57, Cardiff, United Kingdom, 2020.
  21. [Kaya and Tantug, 2024] Yigit Bekir Kaya and A. Cüneyd Tantug. Effect of tokenization granularity for Turkish large language models. Intelligent Systems with Applications, 21:200335, 2024.
  22. [Koppel and Kallas, 2022] Kristina Koppel and Jelena Kallas. Eesti keele ühendkorpuste sari 2013-2021: mahukaim eestikeelsete digitekstide kogu. Eesti Rak- enduslingvistika Ühingu aastaraamat, 18:207-228, 2022.
  23. [Kudo and Richardson, 2018] Taku Kudo and John Richard- son. SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Pro- cessing. In Eduardo Blanco and Wei Lu, editors, Proceed- ings of EMNLP 2018: System Demonstrations, pages 66- 71, Brussels, Belgium, November 2018. ACL.
  24. [Kudo, 2018] Taku Kudo. Subword Regularization: Im- proving Neural Network Translation Models with Multiple Subword Candidates. In Proceedings of ACL 2018, pages 66-75, Melbourne, Australia, 2018.
  25. [Liu and Lapata, 2019] Yang Liu and Mirella Lapata. Text Summarization with Pretrained Encoders. In Proceedings of EMNLP-IJCNLP 2019, pages 3730-3740, Hong Kong, China, November 2019. ACL.
  26. [Liu et al., 2019] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, et al. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv preprint arXiv:1907.11692, 2019.
  27. [Loftsson et al., 2010] Hrafn Loftsson, Jökull H. Yngvason, Sigrún Helgadóttir, and Eiríkur Rögnvaldsson. Develop- ing a PoS-tagged corpus using existing tools. In Francis M. Tyers Sarasola, Kepa and Mikel L. Forcada, editors, Proceedings of 7th SaLTMiL Workshop on Creation and Use of Basic Lexical Resources for Less-Resourced Lan- guages, LREC 2010, Valetta, Malta, 2010.
  28. [Moi and Patry, 2023] Anthony Moi and Nicolas Patry. Hug- gingFace's Tokenizers, April 2023.
  29. [Muischnek et al., 2016] Kadri Muischnek, Kaili Müürisep, and Tiina Puolakainen. Estonian Dependency Treebank: from Constraint Grammar tagset to Universal Dependen- cies. In Proceedings of LREC 2016, pages 1558-1565, Portorož, Slovenia, May 2016. ELRA.
  30. [Niraula and Chapagain, 2022] Nobal Niraula and Jeevan Chapagain. Named Entity Recognition for Nepali: Data Sets and Algorithms. The International FLAIRS Confer- ence Proceedings, 35, May 2022.
  31. [OpenAI, 2024] OpenAI. GPT-4 Technical Report. arXiv preprint arXiv:2302.10198, 2024.
  32. [Pan et al., 2017] Xiaoman Pan, Boliang Zhang, Jonathan May, Joel Nothman, Kevin Knight, and Heng Ji. Cross- lingual Name Tagging and Linking for 282 Languages. In Regina Barzilay and Min-Yen Kan, editors, Proceedings of ACL 2017, pages 1946-1958, Vancouver, Canada, July 2017. ACL.
  33. [Qarah and Alsanoosy, 2024] Faisal Qarah and Tawfeeq Al- sanoosy. A Comprehensive Analysis of Various Tokeniz- ers for Arabic Large Language Models. Applied Sciences, 14(13), 2024.
  34. [Radford et al., 2019] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language Models are Unsupervised Multitask Learners, 2019.
  35. [Raffel et al., 2020] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, et al. Exploring the Limits of Transfer Learning with a Unified Text-to- Text Transformer. Journal of Machine Learning Research, 21(140):1-67, 2020.
  36. [Sennrich et al., 2016] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural Machine Translation of Rare Words with Subword Units. In Proceedings of ACL 2016, pages 1715-1725, Berlin, Germany, 2016.
  37. [Shen et al., 2021] Jiaming Shen, Jialu Liu, Tianqi Liu, Cong Yu, and Jiawei Han. Training ELECTRA Aug- mented with Multi-word Selection. In Chengqing Zong, Fei Xia, Wenjie Li, and Roberto Navigli, editors, Find- ings of ACL: ACL-IJCNLP 2021, pages 2475-2486, On- line, August 2021. ACL.
  38. [Sirts, 2023] Kairit Sirts. Estonian Named Entity Recogni- tion: New Datasets and Models. In Tanel Alumäe and Mark Fishel, editors, Proceedings of NoDaLiDa 2023, pages 752-761, Tórshavn, Faroe Islands, May 2023. Uni- versity of Tartu Library.
  39. [Skarphéðinsson et al., 2023] Njáll Skarphéðinsson, Breki Guðmundsson, Steinar Þ. Smári, Marta K. Lárusdóttir, Hafsteinn Einarsson, et al. GameQA: Gamified Mobile App Platform for Building Multiple-Domain Question- Answering Datasets. In Danilo Croce and Luca Soldaini, editors, Proceedings of EACL 2023: Systems Demonstra- tions, pages 152-160, Dubrovnik, Croatia, May 2023.
  40. ACL.
  41. [Steingrímsson et al., 2018] Steinþór Steingrímsson, Sigrún Helgadóttir, Eiríkur Rögnvaldsson, Starkaður Barkarson, and Jón Guðnason. Risamálheild: A Very Large Icelandic Text Corpus. In Proceedings of LREC 2018, Miyazaki, Japan, May 2018. ELRA.
  42. [Toraman et al., 2023] Cagri Toraman, Eyup Halit Yilmaz, Furkan Şahinuç, and Oguzhan Ozcelik. Impact of Tok- enization on Language Models: An Analysis for Turkish. ACM Transactions on Asian and Low-Resource Language Information Processing, 22(4), March 2023.
  43. [Warner et al., 2024] Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, et al. Smarter, Better, Faster, Longer: A Modern Bidirec- tional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference. arXiv preprint arXiv:2412.13663, 2024.
  44. [Wolf et al., 2020] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, et al. Trans- formers: State-of-the-Art Natural Language Processing. In Proceedings of EMNLP 2020: System Demonstrations, pages 38-45, Online, October 2020. ACL.
  45. [Wu et al., 2016] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, et al. Google's Neural Machine Translation System: Bridging the Gap be- tween Human and Machine Translation. arXiv preprint arXiv:1609.08144, 2016.
  46. [Xue et al., 2021] Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, et al. mT5: A Mas- sively Multilingual Pre-trained Text-to-Text Transformer. In Proceedings of NAACL-HLT 2021", pages 483-498, Online, June 2021. ACL.
  47. [Yadava et al., 2008] Yogendra P. Yadava, Andrew Hardie, Ram Raj Lohani, Bhim N. Regmi, Srishtee Gurung, et al. Construction and annotation of a corpus of contemporary Nepali. Corpora, 3(2):213-225, 2008.
  48. [Yang et al., 2019] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. XLNet: Generalized Autoregressive Pretraining for Lan- guage Understanding. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Sys- tems, volume 32.
  49. Curran Associates, Inc., 2019.
  50. [Yu et al., 2020] Hongkun Yu, Chen Chen, Xianzhi Du, Yeqing Li, Abdullah Rashwan, et al. TensorFlow Model Garden, 2020.
  51. [Zhang et al., 2020] Jingqing Zhang, Yao Zhao, Moham- mad Saleh, and Peter Liu. PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarization. In Hal Daumé III and Aarti Singh, editors, Proceed- ings of ICML 2020, volume 119 of Proceedings of Ma- chine Learning Research, pages 11328-11339. PMLR, July 2020.
  52. [Zhang et al., 2022] Shiyue Zhang, Vishrav Chaudhary, Na- man Goyal, James Cross, Guillaume Wenzek, et al. How Robust is Neural Machine Translation to Language Imbal- ance in Multilingual Tokenizer Training? In Kevin Duh and Francisco Guzmán, editors, Proceedings of AMTA 2022, pages 97-116, Orlando, USA, September 2022. As- sociation for Machine Translation in the Americas.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards