Skip to main content
QUICK REVIEW

[Paper Review] An Information-Theoretic Perspective on LLM Tokenizers

Mete Erdogan, Abhiram Rao Gorle|arXiv (Cornell University)|Jan 14, 2026
Natural Language Processing TechniquesComputer Science0 citations
TL;DR

The paper analyzes LLM tokenizers as structured compressors, showing how training data scale, vocabulary size, and domain affect compression, entropy, and robustness, and proposing a channel-based view to guide compression-aware tokenizer design.

ABSTRACT

Large language model (LLM) tokenizers act as structured compressors: by mapping text to discrete token sequences, they determine token count (and thus compute and context usage) and the statistical structure seen by downstream models. Despite their central role in LLM pipelines, the link between tokenization, compression efficiency and induced structure is not well understood. We empirically demonstrate that tokenizer training scale redistributes entropy: as training data grows, the token stream becomes more diverse in aggregate (higher unigram entropy) yet markedly more predictable in-context (lower higher-order conditional entropies), indicating that tokenization absorbs substantial short-range regularity although these gains degrade under train-test domain mismatch. To ground these observations, we first benchmark i) pretrained GPT-family tokenizers as black-box compressors across various domains, and ii) learned tokenizers across configurations spanning vocabulary size, training scale, and domain. Next, we study tokenization as a transform for universal compression and introduce a compression-aware BPE variant. Finally, we adopt a channel lens and introduce capacity-utilization metrics to analyze tokenizer behaviour and outline implications for downstream modeling. Put together, our results expose various trade-offs between compression, induced structure, and robustness under domain shift, and motivate principled, compression-aware tokenizer design.

Motivation & Objective

  • Benchmark pretrained GPT-family tokenizers as black-box compressors across domains (news, code, math) and languages.
  • Study learned tokenizers across vocabulary sizes, training scales, and domains to identify scaling trends in entropy and compression.
  • Examine tokenizer performance under train–test domain mismatch and domain-aligned training/evaluation
  • Investigate interactions with universal compressors and propose a simple capacity-utilization channel lens to summarize tokenizer behavior
  • Suggest principled, compression-aware tokenizer design based on empirical and theoretical insights.

Proposed method

  • Treat tokenizers as finite-alphabet compressors and compare compression efficiency to classical compressors (gzip, zstd, LZMA).
  • Train and evaluate learned tokenizers (BPE, Unigram, WordPiece, WordLevel) across multiple domains (C4 news, Bigcode Starcoder code, multilingual Chinese/Turkish/English/others) and varying vocabulary sizes (16k, 64k, with larger tests up to 500k for Chinese).
  • Compute two classes of metrics on test token sequences: compression ratio (bytes per token) and empirical k-gram entropies (unigram through 5-gram).
  • Analyze domain robustness by evaluating tokenizers trained on English on Turkish, code, and Chinese, and quantify changes in entropy and compression.
  • Explore tokenization as a preprocessing transform for universal compressors (LZ-like) and propose an LZ-aware BPE variant to optimize downstream gzip compression.
  • Adopt a channel-theoretic view to define capacity utilization metrics and relate vocabulary size, token-frequency skew, and entropy.
  • Ground results with correlations between intrinsic text compressibility and tokenization density across domains and tokenizers.

Experimental results

Research questions

  • RQ1How do pretrained GPT-family tokenizers perform as black-box compressors across different domains and languages?
  • RQ2How does training data scale affect unigram entropy and higher-order conditional entropies in learned tokenizers?
  • RQ3What is the effect of train–test domain mismatch on tokenizer compression performance and induced structure?
  • RQ4Can tokenization act as a beneficial transform for universal compressibility, and can we design compression-aware tokenizers (e.g., LZ-aware BPE) to improve downstream compression?
  • RQ5How does vocabulary size and token-frequency skew influence capacity utilization in a channel view of tokenizers?

Key findings

  • GPT-family tokenizers show stable compression in English, math, and code but brittle behavior in multilingual settings, often over-segmenting non-Latin scripts.
  • Learned tokenizers exhibit a consistent trend: increasing training data raises unigram entropy while lowering higher-order entropies (2- to 5-gram), indicating absorption of short-range regularities into the token representation.
  • Under train–test domain mismatch, tokenizer compression performance does not consistently improve with more English training data, and higher-order entropies remain above zero, signaling reliance on training-domain properties.
  • Tokenization can improve universal compressor performance (LZ-style), with modest gains in bits-per-character when using token IDs versus raw UTF-8; LZ-aware BPE can further reduce compressed size compared to standard BPE.
  • A channel-based view shows capacity utilization (η) rising with training size and saturating, while higher-order entropies drop, illustrating that tokenization trades off token count against induced structure and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.