Lune

EMNLP2024Top-tier venue

Where is the signal in tokenization space?

Renato Lui Geh, Honghua Zhang, Kareem Ahmed, Benjie Wang, Guy Van den Broeck

Abstract

Large Language Models (LLMs) are typically shipped with tokenizers that deterministically encode text into so-called canonical token sequences, to which the LLMs assign probability values. One common assumption is that the probability of a piece of text is the probability of its canonical token sequence. However, the tokenization of a string is not unique: e.g., the Llama2 tokenizer encodes Tokens as [Tok,ens], but [Tok,en,s] also represents the same text. In this paper, we study noncanonical tokenizations. We prove that, given a string, it is computationally hard to find the most likely tokenization for an autoregressive LLM, as well as to compute the marginal probability over all possible tokenizations. We then show how the marginal is, in most cases, indistinguishable from the canonical probability. Surprisingly, we then empirically demonstrate the existence of a significant amount of signal hidden within tokenization space. Notably, by simply aggregating the probabilities of noncanonical tokenizations, we achieve improvements across a range of LLM evaluation benchmarks for a variety of architectures, including transformers and state space models.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives cites Language Model Tokenizers Introduce Unfairness Between Languages
  • Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives cites You should evaluate your language model on marginal likelihood over tokenisations
  • Proxy Compression for Language Modeling cites Language Model Tokenizers Introduce Unfairness Between Languages
  • Proxy Compression for Language Modeling cites Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations
  • Proxy Compression for Language Modeling cites You should evaluate your language model on marginal likelihood over tokenisations
  • When to Ensemble: Identifying Token-Level Points for Stable and Fast LLM Ensembling cites You should evaluate your language model on marginal likelihood over tokenisations
  • Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations cites BPE-Dropout: Simple and Effective Subword Regularization
  • Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations cites MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
  • Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations cites You should evaluate your language model on marginal likelihood over tokenisations
  • You should evaluate your language model on marginal likelihood over tokenisations cites BPE-Dropout: Simple and Effective Subword Regularization
  • Tokenisation is NP-Complete cites MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Broken Tokens? Your Language Model can Secretly Handle Non-Canonical TokenizationsBrian Siyuan Zheng, Alisa Liu, Orevaoghene Ahia, Jonathan Hayase et al.NeurIPS 2025 · 19 citations
  2. Is Your LLM Overcharging You? Tokenization, Transparency, and IncentivesAnder Artola Velasco, Stratis Tsirtsis, Nastaran Okati, Manuel Gomez-RodriguezICML 2026 · 16 citations
  3. Tokenisation is NP-CompletePhilip Whittington, Gregor Bachmann, Tiago PimentelACL 2025 · 6 citations
  4. Proxy Compression for Language ModelingLin Zheng, Li Xinyu, Qian Liu, Xiachong Feng et al.ICML 2026 · 3 citations
  5. When to Ensemble: Identifying Token-Level Points for Stable and Fast LLM EnsemblingHeecheol Yun, Kwangmin Ki, Jung Hyun Lee, Eunho YangICLR 2026 · 3 citations

Builds on4

  1. Language Model Tokenizers Introduce Unfairness Between LanguagesAleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, Adel BibiNeurIPS 2023 · 301 citations
  2. MEGABYTE: Predicting Million-byte Sequences with Multiscale TransformersLili Yu, Daniel Simig, Colin Flaherty, Armen Aghajanyan et al.NeurIPS 2023 · 197 citations
  3. BPE-Dropout: Simple and Effective Subword RegularizationIvan Provilkov, Dmitrii Emelianenko, Elena VoitaACL 2020 · 17 citations
  4. You should evaluate your language model on marginal likelihood over tokenisationsKris Cao, Laura RimellEMNLP 2021 · 6 citations

Related papers

  1. Language Models over Canonical Byte-Pair EncodingsTim Vieira, Tianyu Liu, Clemente Pasti, Yahya Emara et al.ICML 2025
  2. Exploring the Hidden Capacity of LLMs for One-Step Text GenerationGleb Mezentsev, Ivan V. OseledetsEMNLP 2025 · 3 citations
  3. Forking Paths in Neural Text GenerationEric J. Bigelow, Ari Holtzman, Hidenori Tanaka, Tomer David UllmanICLR 2025
  4. Over-Tokenized Transformer: Vocabulary is Generally Worth ScalingHongzhi Huang, Defa Zhu, Banggu Wu, Yutao Zeng et al.ICML 2025
  5. Adversarial TokenizationRenato Lui Geh, Zilei Shao, Guy Van den BroeckACL 2025
Dusk over the sea between two cliffs drawn in fine vertical lines