What is STRR and how does it reveal poor tokenizer coverage that fertility alone misses?
Define STRR (Single Token Retention Rate) as a tokenizer fairness metric. Construct a concrete scenario where a language has acceptable average fertility but STRR reveals poor coverage. Explain why both metrics together are necessary for a complete picture of tokenizer fairness.
STRR is the fraction of a language's vocabulary that maps to single tokens; because it is unweighted by frequency, it exposes the fragmented rare-word tail that a corpus-averaged fertility number hides.
Imagine rating a buffet on how many trips it takes to get a full plate. Fertility times an average diner, who mostly grabs the popular dishes parked right by the entrance, so it looks like one easy trip. But most of the menu sits on a far table that takes four trips to reach. STRR counts how many of all the dishes are within one easy reach, not just the popular few. A buffet can feel quick to regulars while burying most of the menu. You need the regular's stopwatch and the full-menu count to know who the buffet really serves well.
Detailed answer & concept explanation~4 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: STRR is single-token coverage rate + fertility is frequency-weighted mean + worked 1.7-vs-1% gap + tail carries meaning + both needed + over-maximizing STRR bloats vocab + choice is sticky.
Real products, models, and research that use this idea.
- Tokenizer fairness audits of OpenAI's o200k_base report fertility and a coverage rate together per language to check whether multilingual gains reach the rare-word tail.
- The BLOOM and Aya multilingual projects evaluated coverage breadth alongside average fertility when designing balanced tokenizers for low-resource languages.
- Cohere's enterprise localization work pairs an average-cost number with a coverage number when choosing or extending a tokenizer for a target market.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you compute STRR reproducibly for a language without a clean canonical word list?
QTwo candidate tokenizers tie on fertility but differ sharply on STRR. How do you choose for a legal-domain deployment?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Computing STRR over a text sample rather than the distinct word list, which sneaks the frequency bias back in and makes it just a restatement of fertility.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.