Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Models
Orevaoghene Ahia, Sachin Kumar, Hila Gonen, Jungo Kasai, David R. Mortensen, Noah A. Smith, Yulia Tsvetkov
Abstract
Language models have graduated from being research prototypes to commercialized products offered as web APIs, and recent works have highlighted the multilingual capabilities of these products. The API vendors charge their users based on usage, more specifically on the number of "tokens" processed or generated by the underlying language models. What constitutes a token, however, is training data and model dependent with a large variance in the number of tokens required to convey the same information in different languages. In this work, we analyze the effect of this nonuniformity on the fairness of an API's pricing policy across languages. We conduct a systematic analysis of the cost and utility of OpenAI's language model API on multilingual benchmarks in 22 typologically diverse languages. We show evidence that speakers of a large number of the supported languages are overcharged while obtaining poorer results. These speakers tend to also come from regions where the APIs are less affordable to begin with. Through these analyses, we aim to increase transparency around language model APIs' pricing policies and encourage the vendors to make them more equitable. Task Cost-
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
39 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Language Model Tokenizers Introduce Unfairness Between Languages cites Unsupervised Cross-lingual Representation Learning at Scale
- Language Model Tokenizers Introduce Unfairness Between Languages cites Training language models to follow instructions with human feedback
- Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation cites Unsupervised Cross-lingual Representation Learning at Scale
- MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenization cites Language Model Tokenizers Introduce Unfairness Between Languages
- MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenization cites Unsupervised Cross-lingual Representation Learning at Scale
- SpaceByte: Towards Deleting Tokenization from Large Language Modeling cites Language Model Tokenizers Introduce Unfairness Between Languages
- Zero-Shot Tokenizer Transfer cites Language Model Tokenizers Introduce Unfairness Between Languages
- Zero-Shot Tokenizer Transfer cites Unsupervised Cross-lingual Representation Learning at Scale
- Zero-Shot Tokenizer Transfer cites Training language models to follow instructions with human feedback
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites Language Model Tokenizers Introduce Unfairness Between Languages
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenization
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites Crosslingual Generalization through Multitask Finetuning
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites SpaceByte: Towards Deleting Tokenization from Large Language Modeling
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites Zero-Shot Tokenizer Transfer
Cited by top-tier papers39
- Language Model Tokenizers Introduce Unfairness Between LanguagesAleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, Adel BibiNeurIPS 2023 · 301 citations
- Dynamic Chunking for End-to-End Hierarchical Sequence ModelingSukjun Hwang, Brandon Wang, Albert GuICLR 2026 · 76 citations
- MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based TokenizationOrevaoghene Ahia, Sachin Kumar, Hila Gonen, Valentin Hofmann et al.NeurIPS 2024 · 37 citations
- Zero-Shot Tokenizer TransferBenjamin Minixhofer, Edoardo Maria Ponti, Ivan VulicNeurIPS 2024 · 37 citations
- SpaceByte: Towards Deleting Tokenization from Large Language ModelingKevin SlagleNeurIPS 2024 · 34 citations
Builds on23
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Train Short, Test Long: Attention with Linear Biases Enables Input Length ExtrapolationOfir Press, Noah A. Smith, Mike LewisICLR 2022 · 1,168 citations
- Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary et al.ACL 2020 · 539 citations
- Is ChatGPT a General-Purpose Natural Language Processing Task Solver?Chengwei Qin, Aston Zhang, Zhuosheng Zhang, Jiaao Chen et al.EMNLP 2023 · 449 citations
- Crosslingual Generalization through Multitask FinetuningNiklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts et al.ACL 2023 · 319 citations
Related papers
- Cost-Performance Optimization for Processing Low-Resource Language Tasks Using Commercial LLMsArijit Nag, Animesh Mukherjee, Niloy Ganguly, Soumen ChakrabartiEMNLP Findings 2024 · 5 citations
- How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language ModelsPhillip Rust, Jonas Pfeiffer, Ivan Vulic, Sebastian Ruder et al.ACL 2021
- Is Your LLM Overcharging You? Tokenization, Transparency, and IncentivesAnder Artola Velasco, Stratis Tsirtsis, Nastaran Okati, Manuel Gomez-RodriguezICML 2026 · 16 citations
- Evaluating the Elementary Multilingual Capabilities of Large Language Models with MultiQCarolin Holtermann, Paul Röttger, Timm Dill, Anne LauscherACL Findings 2024 · 10 citations
- Information Parity: Measuring and Predicting the Multilingual Capabilities of Language ModelsAlexander Tsvetkov, Alon KipnisEMNLP Findings 2024 · 1 citation
