Zenaique

What is STRR and how does it reveal poor tokenizer coverage that fertility alone misses?

Short answer·Hard·4.0 · 0·~3 min·Asked atBaiduCapgeminiNetflix·Relevant atAi4bharatSarvam
Attempt it

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.

Free · 2 AI evals / day
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

Key concepts

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Fertility is the metric everyone reaches for when discussing tokenizer fairness, because it maps straight to per-token billing. The problem is that an average can be held down by a tiny, frequently-used head while the rest of the vocabulary quietly fragments. STRR exists to make that hidden fragmentation visible.

This question asks you to do three things: define STRR precisely, construct a scenario where it disagrees with fertility, and argue why you need both. The disagreement is the whole point. A candidate who can build the 50-common-words case and explain why the tail matters demonstrates that they understand tokenizer fairness as a distribution problem, not a single number. We will define the metrics, build the case with real arithmetic, explain what lives in the tail, and connect it to production decisions and the stickiness constraint.

Defining STRR against fertility

STRR, the single-token retention rate, is the fraction of a language's distinct vocabulary that the tokenizer represents as one token. STRR of 1 means every word is a single token; STRR of 0.3 means 70 percent of words fragment.

STRR={w:tok(w)=1}vocabulary\text{STRR} = \frac{|\{w : |\text{tok}(w)| = 1\}|}{|\text{vocabulary}|}

Fertility is the average tokens per word over a representative corpus. The defining contrast is weighting. Fertility is frequency-weighted, because words that appear often contribute more to a corpus average. STRR is unweighted, because it counts each distinct word once regardless of how often it is used.

That single difference, weighted mean versus unweighted coverage, is why the two can disagree and why their disagreement is informative. Fertility reports the cost of typical text; STRR reports how much of the language got first-class single-token treatment.

Constructing the disagreement
Why the tail is exactly the content that matters
Why both, and the production discipline
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

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.
Sign in to see more production examples.

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?
A

Define a segmentation convention, derive distinct words from a representative corpus, then count single-token words over distinct words; document the convention so numbers are comparable.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • STRR as fraction of distinct vocabulary that is single tokens

  • Fertility as a frequency-weighted average over a corpus

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why does BPE tokenization use subwords instead of words or characters?
Flashcard·Easy