[2602.13940] You Can Learn Tokenization End-to-End with Reinforcement Learning
Abstract:Tokenization is a hardcoded compression step which remains in the training pipeline of Large Language Models (LLMs), despite a general trend towards architectures becoming increasingly end-to-end. Prior work has shown promising results at scale in bringing this compression step inside the LLMs' architecture with heuristics to draw token boundaries, and also attempts to learn these token boundaries with straight-through estimates, which treat the problem of drawing discrete token boundaries as a continuous one. We show that these token boundaries can instead be learned using score function estimates, which have tighter theoretical guarantees due to directly optimizing the problem of drawing discrete token boundaries to minimize loss. We observe that techniques from reinforcement learning, such as time discounting, are necessary to reduce the variance of this score function sufficiently to make it practicable. We demonstrate that the resultant method outperforms prior proposed straight-through estimates, both qualitatively and quantitatively at the $100$ million parameter scale.
View PDF HTML (experimental) Abstract:Tokenization is a hardcoded compression step which remains in the training pipeline of Large Language Models (LLMs), despite a general trend towards architectures becoming increasingly end-to-end. Prior work has shown promising results at scale in bringing this compression step inside the LLMs' architecture with heuristics to draw token boundaries, and also attempts to learn these token boundaries with straight-through estimates, which treat the problem of drawing discrete token boundaries as a continuous one. We show that these token boundaries can…
saved by
related reading
- The Bitter Lesson is coming for Tokenization – ⛰️ lucalplucalp.dev
- LLMs can invent their own compression - Rajan Agarwalrajan.sh
- On-Policy Distillation - Thinking Machines Labthinkingmachines.ai
- The End of Tokenizationronaldyu.substack.com
- On the Tradeoffs of SSMs and Transformers | Goomba Labgoombalab.github.io
- State of RL for reasoning LLMs | A. Weersaweers.de
- LLM Resourcesforrestbicker.com
- Getting Caught Up to Modern LLM Research | Samarth Goeldev.samarthgoel.com
- Compression and Intelligencegreene.sh
- H-Nets - the Past | Goomba Labgoombalab.github.io
- [2512.23675] End-to-End Test-Time Training for Long Contextarxiv.org
- Vocab Breakianbarber.blog