StochasTok: Improving Fine-Grained Subword Understanding in LLMs
Not on the map. Why?
Abstract (arXiv)
Subword-level understanding is integral to numerous tasks, including understanding multi-digit numbers, spelling mistakes, abbreviations, rhyming, and wordplay. Despite this, current large language models (LLMs) still struggle disproportionally with simple subword-level tasks like 'How many r's in strawberry?'. A key factor behind these failures is tokenization, which obscures the fine-grained structure of words. Current alternatives, such as character-level and dropout tokenization methods, significantly increase computational costs and provide inconsistent improvements. In this paper we revisit tokenization and introduce StochasTok, a simple, efficient stochastic tokenization scheme that randomly splits tokens during training, allowing LLMs to 'see' their internal structure. Our experiments show that pretraining with StochasTok substantially improves LLMs' downstream performance across multiple subword-level language games, including character counting, substring identification, and math tasks. Furthermore, StochasTok's simplicity allows seamless integration at any stage of the training pipeline; and we demonstrate that post-training with StochasTok can instill improved subword understanding into existing pretrained models, thus avoiding costly pretraining from scratch. These dramatic improvements achieved with a minimal change suggest StochasTok holds exciting potential when applied to larger, more capable models. Code open-sourced at: github.com/anyasims/stochastok.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 34 of its 50 references that are in the map. First posted on arXiv 2 Jun 2025.
Builds on
34 of 50 references.
References · 34
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2024GPT-4o System Cardcited by 4,588
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Mistral 7Bcited by 3,164
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
22 more
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 232
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 146
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2023Teaching Arithmetic to Small Transformerscited by 123
- 2022Efficient Transformers with Dynamic Token Poolingcited by 76
- 2025SuperBPE: Space Travel for Language Modelscited by 63
- 2024Why Do Large Language Models (LLMs) Struggle to Count Letters?cited by 38
- 2022What do tokens know about their characters and how do they know it?cited by 36
- 2024Counting Ability of Large Language Models and Impact of Tokenizationcited by 32
- 2024CUTE: Measuring LLMs' Understanding of Their Tokenscited by 31
- 2021Models In a Spelling Bee: Language Models Implicitly Learn the Character Composition of Tokenscited by 27
- 2024Large Language Models Lack Understanding of Character Composition of Wordscited by 22
- 2025What is a Number, That a Large Language Model May Know It?cited by 15
- 2022MaxMatch-Dropout: Subword Regularization for WordPiececited by 8
- 2024Super Tiny Language Modelscited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizerscited by 3
- 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustnesscited by 2
- 2026Stochasticity in Tokenisation Improves Robustnesscited by 1
- 2026SubTokenTest: A Practical Benchmark for Real-World Sub-token Understandingcited by 0
- 2026TOAST: Stochastic Robot Action Tokenization for Autoregressive Vision-Language-Action Modelscited by 0
- 2026What Is a Repeated Token Worth? The Scaling Geometry of Multi-Epoch Pretrainingcited by 0
- 2026What Is a Repeated Token Worth? The Scaling Geometry of Multi-Epoch Pretraining4 Oct 2026
- 2026TOAST: Stochastic Robot Action Tokenization for Autoregressive Vision-Language-Action Models1 Oct 2026
- 2026Stochasticity in Tokenisation Improves Robustness17 Apr 2026
- 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustness11 Mar 2026
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizers4 Feb 2026
- 2026SubTokenTest: A Practical Benchmark for Real-World Sub-token Understanding14 Jan 2026
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations23 Jun 2025