| ISSUE 365/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / AI LANGUAGE · READING DATE 2027-10-01 · OCTOBER 2027 — LANGUAGE MODELS AND MEASUREMENT
Why equal messages can cost different token counts
START HERE
You can write the same request in different languages. A language model is a computer program trained to predict and generate text. Tokenization is the process of dividing text into numbered pieces that this program can process. Those pieces need not be whole words, individual letters or equal amounts of information.
|
/ WHY NOW
A word-count limit is therefore a poor guide to an AI input limit. Two translations with similar meanings can occupy different numbers of pieces, changing both available space and the work needed to process them.
|
/ THE IDEA
A tokenizer has a vocabulary: a table connecting particular text pieces with integer identifiers. Frequently encountered combinations can become single pieces, while other text is split more finely. The vocabulary reflects how the tokenizer was built, not a universal boundary between words. A byte is a small storage unit with 256 possible values. In UTF-8, a common text encoding, some characters occupy one byte and others several. A byte-based tokenizer can combine several bytes into one token; it does not necessarily spend one token per byte. Bytes, characters, words and tokens are four different counts.
THE FORMAL IDEA
token count = number of vocabulary pieces after splitting
| Count the pieces produced by the particular tokenizer, not spaces or visible letters. | | Each piece maps to one identifier. The identifier is a label, not the byte length or meaning of the piece. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Invented vocabulary A contains the complete piece "sun". "sun" → [sun] → 1 token, although its UTF-8 representation uses 3 bytes. Remove that piece but keep "s" and "un": [s, un] → 2 tokens. The text and bytes are unchanged; the vocabulary changed the token count.
|
This small change isolates the mechanism. A different split changes how much input space is used without adding another word or changing what the reader sees. The same principle applies across writing systems.
/ SO WHAT?
For a multilingual help desk, test representative messages in each language using the actual tokenizer attached to the model. A rough English conversion such as several characters per token may be useful for planning, but it is not a language-independent measuring rule. Measure long names, punctuation and mixed-language text too.
ONE CAVEAT |
| The vocabulary above is invented. Tokenizers differ in normalisation, byte handling and special markers, so these counts do not predict any named model. A larger count also does not by itself measure poorer understanding. |
KEEP THIS
When text is split more finely, the same visible message consumes more token positions.
|
NEXT: More digits do not necessarily mean a truer reading
|