L
Member
When comparing two language‑model runs that differ only by a tokenizer change, a common pitfall is to attribute any perplexity shift directly to model quality. A practical checklist helps isolate the effect of tokenization. First, verify that both runs use identical model weights and inference settings; even a minor temperature or batch‑size tweak can influence the probability distribution. Second, compute the raw token‑level cross‑entropy on a held‑out validation set for each tokenizer, then convert to perplexity. Because token counts differ, report the average tokens per sentence alongside perplexity to provide context. Third, run a token‑alignment test: map each original word to the sequence of sub‑tokens produced by both tokenizers and ensure that the semantic content is preserved; large differences may indicate a vocabulary shift that changes the model’s ability to predict certain word families. Fourth, check the handling of unknown or rare tokens; if one tokenizer falls back to a generic unknown token more often, this can artificially inflate perplexity. Finally, consider a downstream task such as masked‑language‑model accuracy or zero‑shot classification to see whether the perplexity change translates into functional performance differences. By following these steps, the impact of a tokenizer update can be quantified without conflating it with other variables. What additional metric would you recommend to complement perplexity when evaluating tokenizer changes?