Language Model Tokenizers Introduce Unfairness Between Languages

Recent language models have shown impressive multilingual performance, even when not explicitly trained for it. Despite this, there are concerns about the quality of their outputs across different languages. In this paper, we show how disparity in the treatment of different languages arises at the tokenization stage, well before a model is even invoked. The same text translated into different languages can have drastically different tokenization lengths, with differences up to 15 times in some cases. These disparities persist even for tokenizers that are intentionally trained for multilingual support. Character-level and byte-level models also exhibit over 4 times the difference in the encoding length for some language pairs. This induces unfair treatment for some language communities in regard to the cost of accessing commercial language services, the processing time and latency, as well as the amount of content that can be provided as context to the models. Therefore, we make the case that we should train future language models using multilingually fair subword tokenizers.

Paper

Similar papers

Peer review

Reviewer okDv6/10 · confidence 4/52023-07-04

Summary

The paper studies the discrepancy in the tokenization length in different languages. It shows the unfairness of utilizing tokenization in different languages due to the cost, latency, and long-term language dependencies. The paper evaluates the unfairness between different tokenization strategies and model architectures. The paper's motivation is clear, and it provides an extensive analysis of multiple languages, showing the significance of the study and why it is essential in research and practical perspectives.

Strengths

**Originality** - The paper introduces an important issue on utilizing LLM in different languages and investigates the aspects of cost, latency, and long-dependency. The problem formulation is important for multilingual researchers and practitioners in deciding what tokenization strategies are cost-effective. **Quality / Significance** - The paper shows a comprehensive analysis of how the different tokenization on different languages was done in different tokenization strategies (byte-based, Unicode-based, and subword-based) on the wide range of pre-trained LLM (on encoder-only, encoder-decoder, and decoder-only) and provides the quantitative evidence on the processing time of each language compared to English. **Clarity** - The paper is well-written, and the examples (in Japanese and Shan) give a high-level idea of why the problem introduced in the paper is important.

Weaknesses

- Besides the aspects mentioned by the paper, it is unclear if the choice of the tokenization strategies would impact the performance of LLM in particular languages. - The suggestion of "building a multilingually fair parallel corpus" is vague. It would be great if the authors could give a more straightforward and practical solution.

Questions

**Questions** - Does the tokenization lengths impact the performance on languages (e.g., Shan)? **Typo** Line 177: XML-R => XLM-R

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

Yes.

Reviewer qshy7/10 · confidence 4/52023-07-06

Summary

Tokenization is a crucial, yet underappreciated component of language models. This paper presents a welcome investigation into the effects of tokenization choices across languages. The paper introduces the notion of premium for language A relative to B which measures the ratio of the average number of tokens for translations of the same sentence in the two languages. The authors show that the premium relative to English can be over 10 for certain low resource languages. The paper then highlights the negative effects of having a high premium, which include: cost, latency, and the ability to fit less content in the fixed context window of an LM. Based on these findings, the authors make a case for developing multilingually fair tokenizers where the premiums are close to one across languages.

Strengths

1. Tokenization is, in my view, an underappreciated problem and this work provides an insightful analysis on the effects of the tokenizer selection. 2. The discrepancies presented in the paper across languages are surprisingly large. As such, this paper may stimulate new research in the field to address the discrepancies. 3. The paper is very well written and a pleasure to read.

Weaknesses

1. The paper doesn’t discuss how to achieve the goal of training multilingually fair tokenizers, apart from providing an overview of previous approaches to developing multilingual tokenizers. An obvious solution is to reserve more tokens for the languages with high premiums. However, this would mean that the number of tokens for other languages would need to be reduced to keep the vocabulary size fixed. This in turn will likely hurt the performance on high-resource languages such as English and it may even end up hurting the performance for the rest of the languages if there is less cross-lingual transfer from high-resource languages (NB: The paper states that “multilingual models struggle to deliver on the promises of deep transfer learning” but I’m not aware of works suggesting that there’s zero transfer happening across languages.) 2. The paper lacks discussion on the potential negative effects of using a fair tokenizer (such as the one presented above) and discussion on the potential means of developing fair tokenizers. Yet, it argues strongly why the switch to fair tokenizers is necessary. This makes the paper seem a bit like a position paper (which doesn’t reduce the value of the paper in my view but makes me wonder a bit whether NeurIPS is an ideal venue for it). 3. An obvious explanation for the tokenization length differences is the widely varying amounts of available training datasets across languages. However, another possible explanation is inherent differences between languages in terms of characteristics such as morphological richness of a language. Discussion of the different explanations seems to be missing from the paper.

Questions

Could you elaborate on the following sentence “training a model from scratch with this fair tokenizer is necessary, despite potential suboptimal performance in individual languages due to vocabulary limitations”? What are the potential suboptimalities you’re referring to? Are you arguing for using a fair tokenizer regardless of any potential negative side effects?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

4 excellent

Contribution

3 good

Limitations

Yes.

Reviewer Qimt4/10 · confidence 4/52023-07-07

Summary

This paper investigates the disparities between languages caused by tokenization policies used in large language models (LLMs). The authors compare the numbers of tokens needed to represent the translations of the same sentence in different languages and observe that the number of tokens needed in one language can be an order of magnitude larger than that in the target language (mostly English). They argue that these disparities have significant real-world implications such as the increased cost and performance degradations in using LLMs.

Strengths

- I think investigating the disparities of the cost and performance in using LLMs between different languages is an important topic. - The approach taken by the authors (i.e., the use of the FLORES-200 parallel corpus) seems sound. - The observations made in their experiments are informative.

Weaknesses

- There is little technical novelty in the work. - The authors point out the problems caused by the disparities but do not present a concrete solution. They argue that LLMs should be trained from scratch with a multilingually fair subword tokenizer but do not provide any experimental results towards that solution. I would be interested to see how much the performance and efficiency of an LLM in English needs to be sacrificed to achieve the parity.

Questions

- Would it be difficult to conduct some (preliminary) experiments regarding the proposals discussed in Section 6?

Rating

4: Borderline reject: Technically solid paper where reasons to reject, e.g., limited evaluation, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

Yes

Reviewer EmCj5/10 · confidence 3/52023-07-11

Summary

The paper proposes the concept of tokenizer parity as a way to measure the fairness of tokenization across different languages in natural language processing. The authors argue that achieving tokenizer parity is necessary to improve the performance of multilingual models and address potential unfairness in the cost of accessing commercial language services, processing time and latency, and the amount of content that can be provided as context to the models. The paper suggests that training language models from scratch with a multilingually fair subword tokenizer is the only approach that can effectively address tokenization unfairness and achieve tokenizer parity. The authors provide several examples to demonstrate the effectiveness of the proposed method for measuring tokenizer parity and suggest that a variation of subword tokenization is necessary to achieve parity. The paper contributes to the field of natural language processing by proposing a new metric for measuring fairness in tokenization and providing guidance on how to achieve tokenizer parity in multilingual models.

Strengths

In terms of originality, the paper introduces the concept of "tokenizer parity" as a systematic way to assess the fairness of tokenization across different languages. This is a novel idea that has not been explored extensively in the literature. In terms of quality, the paper provides a detailed analysis of the tokenization lengths of different languages using various tokenizers. The authors also propose a method to measure tokenizer parity and demonstrate its effectiveness using several examples. In terms of clarity, the paper is well-written and easy to follow. The authors provide clear definitions of the key concepts and use examples to illustrate their points. In terms of significance, the paper addresses an important issue in natural language processing, namely the fairness of tokenization across different languages. The concept of tokenizer parity has the potential to improve the performance of multilingual models and make natural language processing more equitable across different languages. Therefore, the paper could have a positive impact on the development of multilingual models.

Weaknesses

One major weakness is that the paper does not provide a clear roadmap for how the concept of tokenizer parity could be integrated into existing natural language processing pipelines. While the authors suggest that training language models with a multilingually fair subword tokenizer is the only approach that can effectively address tokenization unfairness, they do not provide guidance on how this could be achieved in practice. More detailed recommendations for how to integrate tokenizer parity into existing natural language processing pipelines would be helpful for researchers and practitioners in the field. Another potential weakness is the lack of discussion on the impact of tokenizer disparity on downstream task accuracies. This aspect is particularly interesting and may attract more attention.

Questions

1. Can you provide more detailed recommendations for how to integrate tokenizer parity into existing natural language processing pipelines? 2. What is the potential impact of tokenizer disparity on downstream task accuracies?

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

The lack of clear guidance on how to integrate tokenizer parity into existing natural language processing pipelines may limit the impact of the paper's findings. Additionally, the absence of discussion on the impact of tokenizer disparity on downstream task accuracies is a limitation that could be addressed in future research. Without this information, it may be difficult for researchers and practitioners to fully understand the potential benefits of using a multilingually fair subword tokenizer.

Reviewer Fdv17/10 · confidence 4/52023-07-28

Summary

The paper is very interesting in highlighting the disparities in tokenization across different languages, leading to cost, latency, and long-distance modeling inequalities in LLMs. The authors show that this is not limited to one type of tokenizer or a single family of LLMs. They show that different types of tokenizers for LLMs in practice, including subword, multilingual, or byte-level tokenization, all show disparities for languages in FLORES-200. Based on these results, the paper convincingly argues that we need multilingually fair tokenizers for future LLMs, so that some languages are not in disadvantages in terms of the cost to access LLMs, the latency of the service, and the amount of data that can be processed.

Strengths

The paper is well written and the first one (to my knowledge) to study tokenization disparities in LLMs at this scale. The presented results will be very interesting to LLM researchers and practitioners in understanding the disparities in tokenization across different languages in different LLMs. This has major consequences for some languages, putting them at a disadvantage in terms of the cost to access LLMs, the latency of the service, and the amount of data that can be processed.

Weaknesses

Section 6 argues that future tokenizers should be based on subword tokenization and support all Unicode codepoints. However, one of the main weaknesses of the paper is that it does not develop such multilingual fairer tokenizers, and compares them with existing tokenizers in practice. Attempting to do that would have emphasized challenges in developing such tokenizers and how one can overcome them. I found the argument around disparities in long-distance modeling a bit thin. The second paragraph of Section 5.3 discusses this briefly, but additional discussion or experiments are needed to strengthen the argument. For example, it might be helpful to include analysis with multilingual document summarization (e.g., XLSum).

Questions

I think the paper does a very good job of explaining why there are language disparities among different tokenizers. However, I feel these reasons are known already, what are the challenges in overcoming them?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

The paper presents a large-scale study of disparities in tokenization across different languages. It discusses how LLMs are putting some languages to their disadvantage due to this. The paper itself does not propose a new tokenization scheme that needs to address its limitations.

Reviewer qshy2023-08-19

Thank you for your responses. > even if we use a perfectly balanced dataset, parity will not be achieved because some languages share tokens while others do not. Assessing morphological differences between languages is a challenging task as more morphological richness does not necessarily imply that more tokens would be necessary. As the information content of all languages is the same (Coupé et al., 2019), we argue that similar tokenization lengths should be achievable. I'm not convinced that token sharing is the main cause for not achieving parity even when using balanced dataset. Two other causes that could be even more significant and would be useful to discuss in the paper: 1. **Morphological differences:** To give an example, consider a tokenizer trained on a balanced set of English and German nouns and their plural forms. Let's fix the vocabulary size such that every English plural noun is split into at most 2 tokens. Now, we would very likely see a premium for German since a significant fraction of German nouns require umlaut when pluralized (e.g. `Stuhl` (chair) -> `Stühle` (chairs)) which makes token sharing across the singular and plural forms within the same language more difficult. 2. **Number of characters:** For instance, Korean encoded as Hangul Syllables has ~11k Unicode characters whereas the Latin (ASCII) has only ~100. > increasing the vocabulary size has diminishing returns: the additional tokens correspond to increasingly rare (parts of) words. Therefore, removing rarely used English (sub)words and replacing them with frequently used (sub)words in other languages would likely be of a net befit overall. I agree that this is likely the case due to the diminishing returns. The paper would be much stronger if it experimentally supported this point by actually training a fairer tokenizer (as also proposed by several other reviewers) and measuring the net benefit. Having said that, even in it's current form, I find this a strong paper which is likely to inspire several future works in the NLP community.

Authorsrebuttal2023-08-21

Thank you so much for your feedback and for your support of our work! You are right, morphological differences do complicate the task significantly, with `Stuhl` being a great example. As for Korean, none of the authors is a speaker of Korean, but to the best of our understanding, there are two ways to encode Korean in Unicode. One is Hangul Syllables which do indeed have reserved ~11k Unicode codepoints. However, as Korean syllables are compositional, one can also encode it via [Hangul Jamo](https://en.wikipedia.org/wiki/Hangul_Jamo_(Unicode_block)). There are 256 Jamo codepoints, but most of them seem to not be used in modern Korean. According to the article, only 67 Jamo are used in modern Korean, which means that 67 Unicode codepoints should be sufficient to represent most modern content. Choosing how to normalize the Unicode string (Syllables or Jamo) would hence have a great impact on the resulting tokenization, which further illustrates that one has to be very careful when approaching multilingual tokenization. > I agree that this is likely the case due to the diminishing returns. The paper would be much stronger if it experimentally supported this point by actually training a fairer tokenizer (as also proposed by several other reviewers) and measuring the net benefit. Perhaps the reviewer would be interested in seeing our response to Reviewer Qimt, where we show that with only one-third of the vocabulary of the ChatGPT/GPT-4 tokenizer, English sequences will become just 10% longer.

Reviewer Qimt2023-08-19

Thank you for your response. I understand that developing a multilingually fair tokenizer is non-trivial and can be regarded as a separate piece of work, but I still think that presenting preliminary experimental results is desirable. I am not fully convinced by the authors' argument that the additional cost for English would be much smaller than the total benefit for the rest of the languages. I think there is a non-negligible possibility that the additional cost for English (or major target languages) is so large that developing a multilingually fair tokenizer is not possible in practice.

Authorsrebuttal2023-08-21

Regarding your concern about the effect on the dominant language when reducing the tokens for it, perhaps you will find [this plot](https://ibb.co/7ymNkP7) interesting. It shows how many tokens would be necessary for the tokenizer of ChatGPT/GPT-4 to encode all of the English corpus of FLORES-200 for different vocabulary sizes. The result is that with __only one-third__ of the vocabulary, English sequences will become __just 10% longer.__ A 10-fold reduction in the vocabulary would result in only 30% longer sequences. English would still be treated better than how the same tokenizer treats the _cheapest_ other language, Portuguese, which is 50% longer than English. Therefore, we believe that this is not a prohibitively large cost for English. Whether such a trade-off is acceptable for a specific model or not, however, depends on the number of languages used and their similarity, and is a design choice that lies with the model developers.

Reviewer okDv2023-08-22

Thank you for the comments. I will keep my score unchanged.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC