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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chelombitko, Iaroslav, Safronov, Egor, Komissarov, Aleksey
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912075102552064
author Chelombitko, Iaroslav
Safronov, Egor
Komissarov, Aleksey
author_facet Chelombitko, Iaroslav
Safronov, Egor
Komissarov, Aleksey
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_12989
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Qtok: A Comprehensive Framework for Evaluating Multilingual Tokenizer Quality in Large Language Models
Chelombitko, Iaroslav
Safronov, Egor
Komissarov, Aleksey
Computation and Language
Artificial Intelligence
I.2.7; I.2.6; H.3.3
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.
title Qtok: A Comprehensive Framework for Evaluating Multilingual Tokenizer Quality in Large Language Models
topic Computation and Language
Artificial Intelligence
I.2.7; I.2.6; H.3.3
url https://arxiv.org/abs/2410.12989