Token-Free and Byte-Level Language Models › Evaluating Byte-Level Systems Fairly

Michael BrenndoerferNovember 17, 20263 min read
Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 135Token-Free and Byte-Level Language Models › Evaluating Byte-Level Systems Fairly
Reading section 10 of 13 · Evaluating Byte-Level Systems Fairly · 3 minSection 10 of 13 · 3 min

Section 10 of 13 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Suppose you have a byte model and a subword model and you want to know which one to deploy. The comparison has more moving parts than it first appears, and a careless table will mislead you. Here is a protocol that at least avoids the obvious errors.

Match the content. Evaluate on the same held-out byte spans and disclose normalization, EOS scoring and context-window policies. At an observed average of four bytes per subword position, 8,192 subword content positions cover about 32,768 bytes, compared with 8,192 bytes at one byte per position. Measure the ratio on the evaluated documents. If a model cannot score the chosen span under its supported length limits, report that limit or apply a shared truncation rule and score the resulting common span.

Compute bits per byte on the same encoded held-out documents. State whether EOS is included in the loss. For a subword model, state whether the score uses the canonical tokenization or estimates the sum over segmentations.

Separate unconditional compression from conditional task scores. A bits-per-byte figure from a monolingual corpus and an exact-match score from a translation benchmark are different measurements of different things. Report them in separate tables with separate baselines.

Report bytes per second and latency, not just FLOPs. For a generation workload, the quantities that matter are time to first byte, bytes per second at steady state, and p99 latency under realistic batching. A model with fewer FLOPs can be slower if its kernels are inefficient or its batch shapes are poor. Report the hardware, the batch size, the sequence length distribution, and the number of concurrent requests.

Report throughput at equal quality, not at equal parameters. A byte model with more parameters but shorter effective sequences may be the better deployment. A subword model with fewer parameters but a larger vocabulary may be worse for small devices because of embedding memory. The comparison that matters is quality at a fixed latency budget or latency at a fixed quality target.

Test the failure modes. Generate with the byte model under sampling and check how often it emits invalid UTF-8, how often it emits valid but nonsensical text, and how it behaves on the tail of the distribution. Check the same for the subword model's handling of rare strings and unknown characters. These are the cases where the interface difference shows up most clearly.

Report the tokenizer's own cost. A subword model ships a tokenizer that must be maintained, versioned, and applied consistently. Its training cost, its failure modes on unusual input, and its interaction with the serving stack are part of the total system cost. Byte models remove this line item, which is a real advantage even when the model itself is not faster.

Measure throughput and latency on the serving hardware under the intended workload. Two models with similar FLOP counts can run at different speeds when their sequence lengths and kernel shapes differ.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy