arXiv:2610.05597cs.CLOct 2026

Manuscript Offprint

arXiv:2610.05597

More Than Words: Compositional Tokenization for Efficient Language Models

Yuval Reif, Guy Kaplan, Roy Schwartz

Abstract

Language models process and generate text sequentially in token units, and the tokenizer determines how much text each inference step covers. Under standard tokenization, a short English phrase such as “On the table.” is usually produced as four separate predictions for the preposition (On), article (the), noun (table), and punctuation (.), where each consumes a sequence position and adds inference cost. We introduce CoBPE, a compositional tokenization approach that represents such phrases as a lexical base token (table) attached with a small set of reusable surface modifiers, composed in embedding space at input and predicted jointly at output. In controlled pretraining from scratch at 780M and 1.3B scales, CoBPE shortens sequences by 30% and improves average downstream performance by 1.2 points relative to standard BPE under matched training compute. Our results suggest that part of what is now expressed through token sequences can instead be modeled through structured representations, opening a broad design space for more token-efficient and capable language models. 1^{1}

1 Introduction

Large language models (LLMs) do not operate directly on raw text, but instead consume token sequences, most commonly produced by Byte-Pair Encoding (BPE; Sennrich et al., 2016). To build the model's token vocabulary, such methods first split text into whitespace-and punctuation-bounded chunks in pre-tokenization, and then allocate tokens to frequent byte sequences within chunks (OpenAI, 2024).

While effective, this process results in units that inherit pre-tokenization boundaries and follow surface string structure, creating two related inefficiencies. First, very common sequences such as "on the" cannot become a single token (Liu et al., 2025). Instead, the model must process them using multiple sequential steps, with items that carry different amounts of content such as "the", "table", and "," all requiring the same amount of compute. Second, the same interface treats near-duplicate forms such as table, capitalized Table, and space-prefixed _table as separate vocabulary entries. As a result, related tokens are represented using inconsistent symbols and require the model to learn their relation from data (Schäfer et al., 2024; Kaplan et al., 2025), while also consuming token slots in the size-limited vocabulary that could otherwise support other languages or domains (Reif et al., 2025). These choices can materially affect model efficiency, as training and inference costs depend directly on the number of tokens used to represent text (Ahia et al., 2023; Ali et al., 2024). Overall, this suggests there is still substantial room to improve compression beyond standard sub-word tokenization.

In this paper, we introduce a Compositional BPE tokenization approach (CoBPE). CoBPE segments text into compound tokens, each composed of a base token and a small set of surface modifiers. The base token serves as the lexical anchor, while the modifiers encode leading space, capitalization, prepositions, determiners, and surrounding punctuation (see Figure 1, top). On the input side, the model composes the unit in embedding space by adding the

1^{1}Code and model weights are available at https://co-bpe.github.io/.

In a hole in the ground, there lived a hobbit. Not a dirty, wet hole, ...

BPE

(18 Tokens)

Compositional BPE

(9 Tokens)

Figure

Figure 1: Compositional tokenization shortens sequences compared to BPE by factoring recurring surface markers around a lexical base. Top: standard BPE represents the excerpt as a sequence of 18 tokens, while Compositional BPE (COBPE) represents the same text using only 9 compound tokens built from a base token together with attached modifiers for leading space, capitalization, determiners, prepositions, and surrounding punctuation. Bottom: Encoding efficiency (bytes-per-token) of English text for BPE and COBPE as a function of vocabulary size. Adding modifier families progressively improves compression over BPE, and the full COBPE configuration covers roughly 1.4×1.4\times more bytes per token across vocabulary sizes.

active modifier embeddings to the base embedding; on the output side, it predicts the base token and modifier labels as a structured output, with modifier predictions conditioned on the base token. Thus, phrases like “On the table?” can be generated as a single compound token centered on table, rather than four separate token predictions.

We first quantify how much COBPE shortens sequences relative to standard BPE by folding frequent markers such as determiners, prepositions, and punctuation into the same structured unit as a base token (Figure 1, bottom). We then describe how a standard decoder-only transformer can be adapted to consume and generate compound tokens through compositional input embeddings and factorized output prediction.

Next, we study COBPE through controlled English pretraining from scratch on the Climb-Mix corpus (Diao et al., 2025) at 780M and 1.3B scales. Across the main experiments, we hold the model family, architecture, training recipe, vocabulary budget, and evaluation suite fixed and vary only the tokenization scheme.

In experiments, COBPE improves average downstream performance over standard BPE under matched training-compute budgets while also shortening sequences substantially, allowing more text to be processed under the same budget. At both model scales, it yields stronger downstream performance on the same 30-task evaluation suite, improving the average score by 1.2 points while reducing sequence length by 30%. To test whether these gains translate into end-to-end efficiency, we evaluate COBPE on the NANOCHAT speedrun benchmark (Karpathy, 2025), which measures how quickly a model reaches a fixed capability.

target. In that setting, CoBPE reduces training time by 18.6%, showing that its compression gains translate into faster end-to-end training.

Taken together, our results reveal a broader design space for language modeling, in which some of the structure now carried by sequence length can instead be modeled directly within the token representation itself. In CoBPE, this takes the form of a shared lexical base combined with a small set of reusable modifiers, yielding a tokenizer that is both more compact and more effective under standard language-model training. More broadly, it points to structured token representations as a promising alternative to standard tokenization.

References (90)