NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

More Than Words: Compositional Tokenization for Efficient Language Models

Yuval Reif, Guy Kaplan, Roy Schwartz

TL;DR

COBPE (Compositional Byte-Pair Encoding) is a novel tokenization scheme that packs grammatical markers—like prepositions, articles, and punctuation—as "modifiers" onto a lexical base token. By representing phrases like "in the ground," as a single structured unit rather than four separate tokens, COBPE reduces sequence lengths by 30% and improves downstream performance by 1.2 points under matched training compute.

What Problem Does This Paper Address?

Modern Large Language Models (LLMs) don't process raw text; they consume sequences of "tokens" generated by algorithms like BPE. However, standard BPE is remarkably inefficient. It treats every unit—whether it's a content-heavy noun like "table" or a minor grammatical marker like "the" or a period—as a standalone prediction step that consumes the same amount of compute.

Furthermore, BPE treats near-identical forms (e.g., "table", "Table", and " table") as entirely separate vocabulary entries. This "flat" representation wastes sequence length (limiting the effective context window) and forces the model to spend significant capacity learning basic grammatical relationships that could be handled more efficiently. The authors find that nearly 30% of token positions in standard datasets are occupied by these simple grammatical markers.

Methods

The authors introduce COBPE, which shifts structure from the sequence level into the token representation itself. Instead of a flat list of tokens, COBPE produces compound tokens.

  1. Tokenization: A text span is decomposed into a lexical base (the core word) and a set of surface modifiers (leading space, capitalization, prepositions, determiners, and surrounding punctuation). Comparison of standard BPE vs. COBPE tokenization
  2. Input Composition: On the input side, the model represents a compound token by summing the embedding of the base token with the embeddings of its active modifiers. How COBPE builds input embeddings by summing base and modifier vectors
  3. Factorized Output: At the output, the model uses a two-stage prediction head. It first predicts the base token, then predicts the modifier values using a gated head conditioned on that base. The factorized next-token prediction architecture
Comparison of standard BPE vs. COBPE tokenization
How COBPE builds input embeddings by summing base and modifier vectors
The factorized next-token prediction architecture

Datasets

  • Pretraining: The models (780M and 1.3B parameters) were trained from scratch on the ClimbMix corpus.
  • Evaluation: A comprehensive 30-task suite spanning knowledge (MMLU, ARC), reasoning (GSM8K), reading comprehension (SQuAD), and coding (HumanEval).
  • Efficiency Benchmarking: The NANOCHAT "GPT-2 speedrun" benchmark was used to measure how quickly a model reaches a fixed capability level.
  • Multilingual Analysis: The authors tested compression on FineWeb-2 for Spanish, German, Hindi, and Indonesian.

Key Insights and Ideas

  • Grammar as Metadata: The core "aha moment" is that much of the information carried by sequence length is actually just predictable grammatical scaffolding. By treating "the" or "in" as metadata (modifiers) for a noun, we free up sequence positions for actual content.
  • Vocabulary De-duplication: By factoring out capitalization and leading spaces into modifiers, COBPE allows the model to use its fixed vocabulary budget (e.g., 32k) for more unique lexical items rather than redundant variations of the same word.
  • Structured Efficiency: COBPE demonstrates that structured representations can be more efficient than flat ones. Even though each compound token is slightly more complex to predict, the massive reduction in total steps leads to a net gain in speed and accuracy.

Key Results

  • Sequence Compression: COBPE shortens sequences by 30% compared to standard BPE.
  • Performance Boost: Under matched training compute, COBPE improved average downstream performance by 1.2 points across 30 tasks at both the 780M and 1.3B scales.
  • Training Speedup: In the NANOCHAT speedrun, COBPE reached the target capability 18.6% faster than the BPE baseline.
  • Inference Efficiency: COBPE achieved a 1.28x speedup in wall-clock generation time, as the reduction in decoding steps outweighed the slight overhead of the modifier prediction head.
  • Multilingual Potential: The approach reduced sequence lengths by 18.0% to 31.8% across four non-English languages, suggesting broad applicability. Encoding efficiency (bytes-per-token) as a function of vocabulary size
Encoding efficiency (bytes-per-token) as a function of vocabulary size

Limitations and Future Work

  • Tokenization-Sensitive Tasks: COBPE struggled on specific benchmarks like Dyck Languages (predicting nested brackets) and LAMBADA. This is because these tasks require the model to treat punctuation or determiners as primary content, whereas COBPE's design "hides" them as modifiers.
  • Surface Rules: The current implementation relies on deterministic surface rules for attachment. The authors suggest that future work could use more sophisticated syntactic parsing or fully learned latent modifiers.
  • Morphology: The current version focuses on external markers (prepositions, etc.). Extending this to internal word morphology (roots, prefixes, suffixes) is a promising next step for morphologically rich languages.

Summary updated

BibTeX
@inproceedings{reif2026more,
  author = {Yuval Reif and Guy Kaplan and Roy Schwartz},
  title = {{More Than Words: Compositional Tokenization for Efficient Language Models}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=Yw16kddexd},
}
Figure