Why can one emoji cost an AI language model several tokens when it takes up a single character on your screen?
Show answer & explanation
Answer: The tokenizer works on the text's bytes, and one emoji is stored as four or more bytes
The tokenizer stores every character as one token but adds a separate token for each colour in the emoji — Wrong. A tokenizer never sees colours; an emoji's picture lives in your device's font, and the model receives only the code that names it. That code is what costs several bytes, and therefore sometimes several tokens.
The tokenizer splits text at spaces, and an emoji with no space before it merges into the word next to it — Wrong. Modern tokenizers do not simply cut at spaces; they learn frequent chunks of bytes, and an emoji is handled as its own byte sequence whether or not a space sits beside it. The extra tokens come from the emoji's own length in bytes, not from gluing it to a neighbour.
The tokenizer works on the text's bytes, and one emoji is stored as four or more bytes ✓ — Correct! Text reaches a byte-level tokenizer as UTF-8 bytes, not as the characters you see, and a single emoji is encoded as four bytes, more when it carries a skin tone or is built from several symbols joined together. The tokenizer then merges byte sequences it has learned: common emoji may collapse into one token, rarer ones stay as several pieces. A tiny picture can therefore be computationally larger than it looks.
More Technology questions
- Why can a satellite redness index flag rusting Arctic rivers but still fail to tell which streams are chemically hazardous?
- A service publishes a fresh random number every minute, plus a public log in which each entry carries a fingerprint of the entry before it. What does that chaining add?
- Why can a wall of lava lamps used as a camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- Why does a physical noise source provide security against an attacker who knows the code, while a phone game shuffle does not?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?