mlsanityData to 14 Oct 2026

Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations

arXiv 2506.19004 ↗First posted 23 Jun 2025cs.CLcited by 17

Not on the map. Why?

Abstract (arXiv)

Modern tokenizers employ deterministic algorithms to map text into a single "canonical" token sequence, yet the same string can be encoded as many non-canonical tokenizations using the tokenizer vocabulary. In this work, we investigate the robustness of LMs to text encoded with non-canonical tokenizations entirely unseen during training. Surprisingly, when evaluated across 20 benchmarks, we find that instruction-tuned models retain up to 93.4% of their original performance when given a randomly sampled tokenization, and 90.8% with character-level tokenization. We see that overall stronger models tend to be more robust, and robustness diminishes as the tokenization departs farther from the canonical form. Motivated by these results, we then identify settings where non-canonical tokenization schemes can *improve* performance, finding that character-level segmentation improves string manipulation and code understanding tasks by up to +14%, and right-aligned digit grouping enhances large-number arithmetic by +33%. Finally, we investigate the source of this robustness, finding that it arises in the instruction-tuning phase. We show that while both base and post-trained models grasp the semantics of non-canonical tokenizations (perceiving them as containing misspellings), base models try to mimic the imagined mistakes and degenerate into nonsensical output, while post-trained models are committed to fluent responses. Overall, our findings suggest that models are less tied to their tokenizer than previously believed, and demonstrate the promise of intervening on tokenization at inference time to boost performance.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 55 of its 75 references that are in the map. First posted on arXiv 23 Jun 2025.

Builds on

55 of 75 references.

References · 55

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  6. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  10. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  11. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  12. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
38 more
  1. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
  2. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  3. 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 533
  4. 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 530
  5. 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
  6. 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
  7. 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 232
  8. 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
  9. 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
  10. 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
  11. 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 146
  12. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
  13. 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
  14. 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
  15. 2022Efficient Transformers with Dynamic Token Poolingcited by 76
  16. 2021Superbizarre Is Not Superb: Derivational Morphology Improves BERT's Interpretation of Complex Wordscited by 63
  17. 2025SuperBPE: Space Travel for Language Modelscited by 63
  18. 2024Why do language models perform worse for morphologically complex languages?cited by 62
  19. 2024MambaByte: Token-free Selective State Space Modelcited by 59
  20. 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
  21. 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 48
  22. 2024MYTE: Morphology-Driven Byte Encoding for Better and Fairer Multilingual Language Modelingcited by 40
  23. 2022What do tokens know about their characters and how do they know it?cited by 36
  24. 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
  25. 2025Boundless Byte Pair Encoding: Breaking the Pre-tokenization Barriercited by 32
  26. 2024Zero-Shot Tokenizer Transfercited by 31
  27. 2024MAGNET: Improving the Multilingual Fairness of Language Models with Adaptive Gradient-Based Tokenizationcited by 31
  28. 2024CUTE: Measuring LLMs' Understanding of Their Tokenscited by 31
  29. 2024From Language Models over Tokens to Language Models over Characterscited by 31
  30. 2021You should evaluate your language model on marginal likelihood over tokenisationscited by 30
  31. 2021Models In a Spelling Bee: Language Models Implicitly Learn the Character Composition of Tokenscited by 27
  32. 2024Where is the signal in tokenization space?cited by 21
  33. 2024Tokenization Falling Short: On Subword Robustness in Large Language Modelscited by 20
  34. 2023Should you marginalize over possible tokenizations?cited by 18
  35. 2024Understanding and Mitigating Tokenization Bias in Language Modelscited by 18
  36. 2024Token Erasure as a Footprint of Implicit Vocabulary Items in LLMscited by 18
  37. 2023Bring Your Own Data! Self-Supervised Evaluation for Large Language Modelscited by 17
  38. 2024Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensemblescited by 15

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 11.

17 papers.

Sort:

By area:

  1. 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 9
  2. 2025so much depends / upon / a whitespace: Why Whitespace Matters for Poets and LLMscited by 4
  3. 2026AdaptBPE: From General Purpose to Specialized Tokenizerscited by 3
  4. 2026Proxy Compression for Language Modelingcited by 3
  5. 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammarcited by 2
  6. 2025Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intentcited by 2
  7. 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustnesscited by 2
  8. 2025Synthetic Object Compositions for Scalable and Accurate Learning in Detection, Segmentation, and Groundingcited by 1
  9. 2026Stochasticity in Tokenisation Improves Robustnesscited by 1
  10. 2026How Tokenization Limits Phonological Knowledge Representation in Language Models and How to Improve Themcited by 1
  11. 2026Multilinguality at the Edge: Developing Language Models for the Global Southcited by 1
  12. 2025Understanding the Ability of LLMs to Handle Character-Level Perturbationcited by 0
5 more
  1. 2026Training Language Models with homotokens Leads to Delayed Overfittingcited by 0
  2. 2026Emergent retokenization symmetry in large language models: phenomenology and applicationscited by 0
  3. 2026The Dialect Tax: Dialectal Biases Persist throughout the Language Modeling Pipelinecited by 0
  4. 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injectioncited by 0
  5. 2026GlitchPatch: Repairing Glitch Tokens in Frozen Language Models via Local Retokenizationcited by 0