MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenization
Orevaoghene Ahia, Sachin Kumar, Hila Gonen, Valentin Hofmann, Tomasz Limisiewicz, Yulia Tsvetkov, Noah A. Smith
Abstract
In multilingual settings, non-Latin scripts and low-resource languages are usually disadvantaged in terms of language models' utility, efficiency, and cost. Specifically, previous studies have reported multiple modeling biases that the current tokenization algorithms introduce to non-Latin script languages, the main one being over-segmentation. In this work, we propose MAGNET-multilingual adaptive gradient-based tokenization-to reduce over-segmentation via adaptive gradientbased subword tokenization. MAGNET learns to predict segment boundaries between byte tokens in a sequence via sub-modules within the model, which act as internal boundary predictors (tokenizers). Previous gradient-based tokenization methods aimed for uniform compression across sequences by integrating a single boundary predictor during training and optimizing it end-to-end through stochastic reparameterization alongside the next token prediction objective. However, this approach still results in over-segmentation for non-Latin script languages in multilingual settings. In contrast, MAGNET offers a customizable architecture where byte-level sequences are routed through language-script-specific predictors, each optimized for its respective language script. This modularity enforces equitable segmentation granularity across different language scripts compared to previous methods. Through extensive experiments, we demonstrate that in addition to reducing segmentation disparities, MAGNET also enables faster language modelling and improves downstream utility. 1 Another disparity with character-level tokenizers is that Chinese-Japanese-Korean scripts use a high number of Unicode codepoints. 2 Code and data are publicly available at https://github.com/orevaahia/ magnet-tokenization Upsampling This module converts h M l to probabilities over a byte vocabulary. This involves, first, upsampling the output of the middle block to the original resolution by duplication followed by skip 3 Nawrot et al. [31] also explore learning the segmentations using supervision from predefined word or subword boundaries. However, it is not a viable solution for all languages and does not resolve the unfairness issues. 4 P , M , and T denote representations in the middle transformer block, after pooling and at the token level. 5 The first token is defined as x0 . . . xt 1 and the last token as xt k +1 . . . xN .
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.
10 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
- Explaining and Mitigating Crosslingual Tokenizer Inequities cites Language Model Tokenizers Introduce Unfairness Between Languages
- Proxy Compression for Language Modeling cites Language Model Tokenizers Introduce Unfairness Between Languages
- Proxy Compression for Language Modeling cites Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations
- Proxy Compression for Language Modeling cites Charformer: Fast Character Transformers via Gradient-based Subword Tokenization
- Proxy Compression for Language Modeling cites Dynamic Chunking for End-to-End Hierarchical Sequence Modeling
- Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations cites MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
- Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations cites Charformer: Fast Character Transformers via Gradient-based Subword Tokenization
- Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites Unsupervised Cross-lingual Representation Learning at Scale
- Charformer: Fast Character Transformers via Gradient-based Subword Tokenization cites On the Cross-lingual Transferability of Monolingual Representations
- 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 Data Mixture Inference Attack: BPE Tokenizers Reveal Training Data Compositions
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
- Dynamic Chunking for End-to-End Hierarchical Sequence Modeling cites Charformer: Fast Character Transformers via Gradient-based Subword Tokenization
Cited by top-tier papers10
- Dynamic Chunking for End-to-End Hierarchical Sequence ModelingSukjun Hwang, Brandon Wang, Albert GuICLR 2026 · 76 citations
- Broken Tokens? Your Language Model can Secretly Handle Non-Canonical TokenizationsBrian Siyuan Zheng, Alisa Liu, Orevaoghene Ahia, Jonathan Hayase et al.NeurIPS 2025 · 19 citations
- Data Mixture Inference Attack: BPE Tokenizers Reveal Training Data CompositionsJonathan Hayase, Alisa Liu, Yejin Choi, Sewoong Oh et al.NeurIPS 2024 · 16 citations
- Explaining and Mitigating Crosslingual Tokenizer InequitiesCatherine Arnett, Tyler A. Chang, Stella Biderman, Benjamin BergenNeurIPS 2025 · 9 citations
- Proxy Compression for Language ModelingLin Zheng, Li Xinyu, Qian Liu, Xiachong Feng et al.ICML 2026 · 3 citations
Builds on16
- Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary et al.ACL 2020 · 539 citations
- Language Model Tokenizers Introduce Unfairness Between LanguagesAleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, Adel BibiNeurIPS 2023 · 301 citations
- Charformer: Fast Character Transformers via Gradient-based Subword TokenizationYi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Prakash Gupta et al.ICLR 2022 · 198 citations
- MEGABYTE: Predicting Million-byte Sequences with Multiscale TransformersLili Yu, Daniel Simig, Colin Flaherty, Armen Aghajanyan et al.NeurIPS 2023 · 197 citations
- On the Cross-lingual Transferability of Monolingual RepresentationsMikel Artetxe, Sebastian Ruder, Dani YogatamaACL 2020 · 57 citations
Related papers
- FLEXITOKENS: Flexible Tokenization for Evolving Language ModelsAbraham Toluwase Owodunni, Orevaoghene Ahia, Sachin KumarACL Findings 2026
- Phonemes to the Rescue: Multilingual Tokenization Based on International Phonetic AlphabetMilan Miletic, Julie Kallini, Ekaterina ShutovaACL 2026
- MANTa: Efficient Gradient-Based Tokenization for End-to-End Robust Language ModelingNathan Godey, Roman Castagné, Éric de la Clergerie, Benoît SagotEMNLP Findings 2022 · 4 citations
- Integrating Multi-scale Contextualized Information for Byte-based Neural Machine TranslationLanglin Huang, Yang FengACL Findings 2024 · 1 citation
- SpaceByte: Towards Deleting Tokenization from Large Language ModelingKevin SlagleNeurIPS 2024 · 34 citations
