TokSuite: Measuring the Impact of Tokenizer Choice on Language Model Behavior
Gül Sena Altıntaş (University of Toronto), Malikeh Ehghaghi (University of Toronto), Brian Lester, Fengyuan Liu, Wanru Zhao, Marco Ciccone, Colin Raffel
Overview
Modern language models treat text tokenization as a solved preprocessing step, yet this foundational choice dictates every downstream computation. In this talk, Gül Sena Altıntaş and Malikeh Ehghaghi present TokSuite, an investigative framework developed by researchers at the University of Toronto to systematically measure how tokenizer design impacts large language model behavior and robustness. Rather than treating tokenization as an incidental engineering detail, the authors demonstrate that tokenizer choice exerts a profound, often overlooked influence on model capabilities—particularly when models encounter real-world textual variations.

Key moments
- 0:00 Introduction to TokSuite and tokenization basics
- 2:04 The problem: tokenization is overlooked and under-examined
- 4:01 Introducing the controlled model suite and dataset
- 6:24 The robustness benchmark across languages and perturbations
- 9:35 Key findings on multilingual robustness and Unicode formatting
- 11:30 Does scale save us? Impact of model size on robustness
- 12:58 Audience Q&A: practical advice on tokenizer creation
- 14:52 Audience Q&A: exploring tokenizers for programming languages
TokSuite: Measuring the Impact of Tokenizer Choice on Language Model Behavior
Speakers: Gül Sena Altıntaş (University of Toronto); Malikeh Ehghaghi (University of Toronto); Brian Lester; Fengyuan Liu; Wanru Zhao; Marco Ciccone; Colin Raffel
Conference: ICML
YouTube: https://slideslive.com/39083719
Overview
Modern language models treat text tokenization as a solved preprocessing step, yet this foundational choice dictates every downstream computation. In this talk, Gül Sena Altıntaş and Malikeh Ehghaghi present TokSuite, an investigative framework developed by researchers at the University of Toronto to systematically measure how tokenizer design impacts large language model behavior and robustness. Rather than treating tokenization as an incidental engineering detail, the authors demonstrate that tokenizer choice exerts a profound, often overlooked influence on model capabilities—particularly when models encounter real-world textual variations.
The motivation stems from a pervasive industry practice: when practitioners embark on multi-million dollar pre-training runs, they almost universally reuse existing tokenizers (such as those from Llama 3, Gemma 2, or Qwen 3) off the shelf, often with little documentation or justification. Because pre-training a transformer model is prohibitively expensive, isolating the specific contribution of a tokenizer has historically been confounding. Different models vary simultaneously in architecture, initialization, training data, and hyperparameters. TokSuite resolves this experimental entanglement by introducing a controlled model suite and a linguistically diverse benchmark, offering actionable insights for infrastructure teams and model builders navigating vocabulary design.
Background
▶ Watch: Introduction to TokSuite and tokenization basics (0:00)
Before a neural network processes text, raw strings must be mapped into discrete integers via a tokenizer. This mechanism segments text into subword units, which are subsequently looked up in an embedding table to yield continuous vectors. However, the segmentation strategy varies wildly across tokenization algorithms. Byte-level tokenizers assign every character its own token, whereas subword tokenizers—typically trained via Byte-Pair Encoding (BPE)—learn boundaries constrained by vocabulary size and training corpus frequency.
Consider the famous diagnostic task of counting the letter 'r' in the word "strawberry." Different tokenizers fragment this single word into disparate subword pieces (e.g., st-raw-berry vs. str-aw-be-rry), altering the semantic and structural visibility of characters to the attention heads. Despite these discrepancies, practitioners frequently inherit legacy tokenizers designed for high-resource languages (predominantly English) and apply them globally. This creates systemic blind spots when handling multilingual text, domain-specific notation, or imperfect user inputs. Prior to TokSuite, the literature lacked a rigorous, controlled testbed to isolate tokenizer behavior from confounding architectural and data variables.
Key Findings
▶ Watch: Introducing the controlled model suite and dataset (4:01)
The authors uncover several striking findings regarding how tokenizers influence model robustness under natural language perturbations:
- Noise Amplifies Fragmentation: Real-world noise—including keyboard layout errors, character deletions, typos, optical character recognition (OCR) errors, and whitespace removal—disproportionately harms non-English tokenization. Across the evaluation suite, noise degrades non-English tokenization performance 47% more than English.
- Unicode Styling is the Ultimate Bottleneck: Across eight evaluated perturbation categories, Unicode formatting and styling caused the highest performance degradation, averaging a 53% relative drop across standard tokenizers.
- Normalization is a Lifeline: XLM-1 proved to be a major outlier, suffering only an 11% drop on Unicode styling perturbations. This resilience stems from its use of NFKC (Normalization Form KC) normalization, which deterministically maps styled and full-width characters back to base ASCII equivalents.
- Scale Fails to Rescue Flawed Tokenization: Increasing model scale does not compensate for a poorly matched tokenizer. Comparing Llama 3.2 variants at 300 million, 1 billion, and 7 billion parameters revealed that a 23x parameter increase yields only marginal improvements in robustness. Tokenization design fundamentally constrains model behavior independently of scale.
Technical Deep Dive
▶ Watch: Key findings on multilingual robustness and Unicode formatting (9:35)
To isolate the impact of tokenizers, the research team constructed a rigorous, controlled experimental pipeline spanning dataset engineering, model architecture, and vocabulary construction.
The core infrastructure consists of 14 distinct models that are identical in every architectural dimension, following the Llama 3.2 1-billion-parameter decoder-only specification. All 14 models share the exact same training recipe, optimization hyperparameters, and a fixed token budget of 100 billion tokens drawn from a high-quality multilingual corpus. The training budget allocates 40 billion tokens to English and 15 billion tokens to each of four additional languages: Turkish, Farsi, Italian, and Mandarin Chinese. Crucially, the data presentation order is held strictly constant across all training runs.
The 14 evaluated tokenizers span a diverse design space:
- Vocabulary Sizes: Ranging from a byte-level baseline of 256 tokens to significantly larger vocabularies.
- Algorithms and Preprocessing: Variations in out-of-vocabulary handling, whitespace preservation, contraction splitting, and script coverage.
To initialize these models fairly without embedding mismatch bias, the authors engineered a superset vocabulary containing the union of all tokens across all 14 tokenizers. When individual tokenizers shared identical subwords (such as common words like "the" or "doctor"), those tokens were assigned identical initialization weights across all models, ensuring that performance differentials derived purely from tokenization boundaries rather than embedding initialization artifacts.
Experimental Setup & Results
▶ Watch: Does scale save us? Impact of model size on robustness (11:30)
To measure robustness against real-world linguistic variations, the authors curated a specialized evaluation benchmark consisting of 40 canonical multiple-choice questions across general-purpose, STEM, and math domains. The benchmark spans ~5,000 total samples translated into five typographically diverse languages (English, Italian, Farsi, Turkish, and Mandarin Chinese) by native annotators.
Each canonical question (designed such that over 70% of baseline models answer correctly) is paired with perturbed variants reflecting authentic human interaction patterns:
- Keyboard Layout Errors: e.g., Arabic keyboard constraints forcing Farsi speakers to substitute missing characters like mapping p to b or k to g.
- Orthographic and Grammatical Variations: Typographical errors such as spelling "mammal" as "mamal," dropped diacritics, and incorrect morphological inflections.
- Script Formatting: Converting simplified Chinese characters to traditional formats.
The primary evaluation metric is relative performance drop, defined as the difference between canonical accuracy and perturbed accuracy, normalized by canonical accuracy. In this formulation, lower values indicate superior model robustness.
Headline results confirm that tokenizer design dictates vulnerability profiles. While English performance drops by an average of 15% under noise, non-English drops average 21%. Furthermore, rule-based or non-greedy tokenizers (such as alternative non-BPE structures identified in the study) demonstrated superior handling of diacritics and character-level noise compared to standard BPE configurations. Attempts to evaluate programming language tokenization at the 1 billion parameter, 100 billion token scale yielded unstable results, highlighting computational constraints in low-resource code domains for future work.
Practical Implications
▶ Watch: Audience Q&A: exploring tokenizers for programming languages (14:52)
For infrastructure teams and model builders, TokSuite provides empirical evidence that tokenizer selection cannot be treated as an afterthought or resolved simply by inheriting legacy configurations from English-centric models.
- Prioritize Script Coverage and Normalization: Deploying models in multilingual environments requires rigorous script alignment and robust normalization pipelines (such as NFKC) to mitigate the massive vulnerability exposed by Unicode styling and typographic variations.
- Do Not Rely on Scale: Scaling up parameter counts from 300M to 7B fails to compensate for structural deficiencies introduced by poor tokenization boundaries. Engineers cannot brute-force robustness through model size alone.
- Domain-Specific Considerations: When building models for specialized domains (such as morphologically rich languages or non-Latin scripts), practitioners must conduct controlled vocabulary experiments rather than defaulting to off-the-shelf tokenizers.
Key Takeaways
- Tokenization Dictates Robustness: Tokenizer design directly impacts model capability and resilience to real-world input perturbations, often mattering more than vocabulary size or model scale.
- Non-English Vulnerability: Real-world noise disproportionately damages non-English text processing, degrading non-English tokenization 47% more severely than English.
- Unicode Insecurity: Styling and formatting variations cause the highest average performance drop (53%), which can be largely mitigated by proper normalization techniques like NFKC.
- Scale is Insufficient: A 23x increase in model parameters (from 300M to 7B) yields only marginal improvements in robustness against tokenization-induced failures.
- Controlled Evaluation is Feasible: The TokSuite framework demonstrates that isolating tokenizer impact is possible through identical model suites trained on fixed multilingual budgets with superset initializations.
About the Speaker(s)
- Gül Sena Altıntaş (University of Toronto): Researcher at the University of Toronto who co-authored TokSuite and is presenting this work on tokenizer impact on language model behavior.
- Malikeh Ehghaghi (University of Toronto): Labmate of Gül Sena Altıntaş at the University of Toronto and co-author of TokSuite.
Co-authors: Brian Lester, Fengyuan Liu, Wanru Zhao, Marco Ciccone, Colin Raffel.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026