atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows instruction-tuned LMs are robust to random and character-level non-canonical tokenizations of their input (retaining ~93% and ~91% of performance for Qwen-2.5-7B-Instruct), that character-level and right-aligned digit grouping can improve some tasks at inference time, and that robustness arises during SFT via separation of instruction and response turns.

Problem

Deterministic BPE tokenizers map each string to one canonical token sequence, but LMs trained this way may be unable to handle other valid tokenizations of the same text at inference time; it is unclear how robust they are and where that robustness comes from.

Approach

Systematically evaluate instruction-tuned LMs on non-canonical tokenizations (uniform random segmentation and character-level) unseen in training across 20 benchmarks, use these tokenizations at inference time for performance gains on orthography-sensitive tasks, and trace the robustness to SFT turn structure and to models perceiving non-canonical text as misspellings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use random non-canonical tokenization instead of canonical tokenizationQwen-2.5-7B-Instruct · 20 benchmarks, overallperformance retention (%): 93.4%Hurt
Use character-level tokenization instead of canonical tokenizationQwen-2.5-7B-Instruct · 20 benchmarks, overallperformance retention (%): 90.8%Hurt
Use random non-canonical tokenization instead of canonical tokenizationLlama-3.1-8B-Instruct · 20 benchmarks, overallperformance retention (%): 87.7%Hurt
Use character-level tokenization instead of canonical tokenizationLlama-3.1-8B-Instruct · 20 benchmarks, overallperformance retention (%): 79.4%Hurt
Use random non-canonical tokenization instead of canonical tokenizationOlmo-2-7B-Instruct · 20 benchmarks, overallperformance retention (%): 73.1%Hurt
Use character-level tokenization instead of canonical tokenizationOlmo-2-7B-Instruct · 20 benchmarks, overallperformance retention (%): 62.0%Hurt
Use character-level tokenization instead of canonical tokenizationLlama-3.1-8B-Instruct · Counting Charactersaccuracy: 66.5 -> 73.5; +6.99Helped
Use character-level tokenization instead of canonical tokenizationLlama-3.1-8B-Instruct · Acronymsaccuracy: 49.7 -> 57.4; +7.74Helped
Use character-level tokenization instead of canonical tokenizationLlama-3.1-8B-Instruct · Code Descriptionaccuracy: 68.6 -> 82.9; +14.3Helped
Group digits in threes from right to left instead of left to rightLlama-3.1-8B-Instruct · Arithmeticaccuracy: 36.5 -> 70.2; +33.7Helped
Remove the chat template (ablation)Llama-3.2-1B SFT · AlpacaEval, character-level contextspelling: 0.786 -> 0.0698Hurt
Train on response text split into prompt and continuation rather than instruction-response data (ablation)Llama-3.2-1B SFT · AlpacaEval, character-level contextspelling: 0.181Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ARC-C ARC-E COPA Winogrande Winograd CSQA OpenbookQA PIQA MMLU BoolQ HellaSwag WikidataQA

Benchmarks: ARC-C ARC-E COPA Winogrande Winograd CSQA OpenbookQA PIQA MMLU BoolQ HellaSwag WikidataQA

Metrics: accuracy retention relative to canonical win rate spelling score grammaticality score Kendall's tau

Baselines: canonical BPE tokenization

Builds on: BPE BPE-dropout AlpacaEval Tulu 3

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy