← Back to Andrew Rober Research & Engineering Portfolio

LLM Pretraining ยท Tokenization ยท Mechanistic Interpretability · Published 2026/11/23

What Earns a Phrase Its Own Token? Mechanistic Multi-Word Vocabulary Allocation, Compositional-Residual Folding, and Test-Time Compute Gearshifting

Andrew Rober Fouad Samy · BytesGlue (Dubai, United Arab Emirates) · andrew.rober@bytesglue.com

Abstract

Controlled 34-model empirical and mechanistic Transformer pretraining study (30.4M parameters across 11 tokenizers and 3 paired seeds on 300M unique FineWeb-Edu tokens, scaling zero-shot 5x to 149.6M parameters) holding total vocabulary size (V=16,384), shared base subwords (14,336), deterministic segmentation, and bias-corrected evaluation strictly constant. Demonstrates that iterative cross-whitespace BPE (SuperBPE, SupraTok) wastes 33.3%-37.2% of phrase slots on shadowed stepping-stone merges; diagnoses and cures Superword Vote-Splitting via zero-retraining Prefix-Cone Vote Aggregation (+0.80% to +1.59% next-word accuracy recovery with exact 0.00% invariance on subword baselines); introduces Foldable Compositional-Residual Parameterization (exact 0.0 float folding error into standard [V, d] lookup tables, #1 out-of-domain TinyStories BPB, unsupervised idiom separation); and establishes Attention-Query De-Multiplexing (-51.2% Layer-2 stitching attention, 86.81% BLiMP & 39.20% ARC-Easy at 150M) alongside single-checkpoint CoT-free Test-Time Compute Gearshifting (+1.58% accuracy scaling).

Embedded Manuscript Preview

BibTeX Citation

@article{samy2026phrase,
  title={What Earns a Phrase Its Own Token? Mechanistic Multi-Word Vocabulary Allocation, Compositional-Residual Folding, and Test-Time Compute Gearshifting},
  author={Samy, Andrew Rober Fouad},
  year={2026},
  url={https://andrewrober.github.io/papers/mechanistic-phrase-tokenization/}
}