Stochasticity in Tokenisation Improves Robustness
Not on the map. Why?
Abstract (arXiv)
The widespread adoption of large language models (LLMs) has increased concerns about their robustness. Vulnerabilities in perturbations of tokenisation of the input indicate that models trained with a deterministic canonical tokenisation can be brittle to adversarial attacks. Recent studies suggest that stochastic tokenisation can deliver internal representations that are less sensitive to perturbations. In this paper, we analyse how stochastic tokenisations affect robustness to adversarial attacks and random perturbations. We systematically study this over a range of learning regimes (pre-training, supervised fine-tuning, and in-context learning), data sets, and model architectures. We show that pre-training and fine-tuning with uniformly sampled stochastic tokenisations improve robustness to random and adversarial perturbations. Evaluating on uniformly sampled non-canonical tokenisations reduces the accuracy of a canonically trained Llama-1b model by 29.8%. We find that training with stochastic tokenisation preserves accuracy without increasing inference cost.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 36 of its 45 references that are in the map. First posted on arXiv 17 Apr 2026.
Builds on
36 of 45 references.
References · 36
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2022Red Teaming Language Models with Language Modelscited by 983
24 more
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 840
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
- 2018Lipschitz regularity of deep neural networks: analysis and efficient estimationcited by 413
- 2023Preference Ranking Optimization for Human Alignmentcited by 283
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 189
- 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 124
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 73
- 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 46
- 2022What do tokens know about their characters and how do they know it?cited by 36
- 2024CUTE: Measuring LLMs' Understanding of Their Tokenscited by 28
- 2021Models In a Spelling Bee: Language Models Implicitly Learn the Character Composition of Tokenscited by 26
- 2025Security Concerns for Large Language Models: A Surveycited by 26
- 2024Where is the signal in tokenization space?cited by 21
- 2024Deeper Insights Without Updates: The Power of In-Context Learning Over Fine-Tuningcited by 20
- 2024Tokenization Falling Short: On Subword Robustness in Large Language Modelscited by 18
- 2024Token Erasure as a Footprint of Implicit Vocabulary Items in LLMscited by 17
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 16
- 2025Adversarial Tokenizationcited by 11
- 2024Super Tiny Language Modelscited by 7
- 2025StochasTok: Improving Fine-Grained Subword Understanding in LLMscited by 6
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
- 2024Distributional Properties of Subword Regularizationcited by 4
- 2025TokSuite: Measuring the Impact of Tokenizer Choice on Language Model Behaviorcited by 4
- 2025Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characterscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.