Qtok: A Comprehensive Framework for Evaluating Multilingual Tokenizer Quality in Large Language Models

Iaroslav Chelombitko, Egor Safronov, Aleksey Komissarov
10/16/2024
cs.CLcs.AI

No official code found. Best implementation: nup-csai/Qtok (16 stars, MIT, last commit 2024-10-17).

Abstract

In the development of Large Language Models (LLMs), considerable attention has been given to the quality of training datasets. However, the role of tokenizers in the LLM training pipeline, particularly for multilingual models, has received less focus. The quality of tokenization can significantly impact a model's ability to handle diverse languages effectively. We introduce Qtok, a tool designed to assess tokenizer quality with a specific emphasis on their performance in multilingual contexts. Our research proposes a set of metrics for evaluating tokenizer quality, including measures of language coverage, token completeness, and distribution across languages and linguistic categories. Qtok applies these metrics to evaluate 13 distinct tokenizers from 58 publicly available models, analyzing their output across different linguistic contexts. Our analysis revealed significant variations in token distribution across languages and categories, highlighting potential biases and areas for improvement in current tokenization strategies. This research contributes to the field of tokenizer evaluation within multilingual LLM development by providing a systematic approach to assessing tokenizer quality. Our findings highlight the critical role of tokenization in multilingual LLM capability. The Qtok tool and our analysis methodology offer practical means for researchers to evaluate and improve tokenization strategies for multilingual applications. We offer a method to compare tokenizer quality across these metrics, which may be useful when selecting or adjusting tokenizers for specific multilingual LLM applications.

View on arXivView PDF

Code Implementations(1)

nup-csai/QtokCommunity100%
MIT
162Python, Jupyter NotebookAug 13, 20242 years agoMIT

Similar Papers

Cite this paper

@article{chelombitko2024qtok,
  title  = {Qtok: A Comprehensive Framework for Evaluating Multilingual Tokenizer Quality in Large Language Models},
  author = {Iaroslav Chelombitko and Egor Safronov and Aleksey Komissarov},
  year   = {2024},
  eprint = {2410.12989},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12989v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.12989.svg)](https://codeofpaper.com/paper/2410.12989)

Discussion