AI Interview Prep

AI Interview Prep

Advanced NLP Interview Questions #18 – The Perplexity Tokenizer Trap

Why lower perplexity across models can be pure metric illusion - and how tokenizer choice silently breaks probability comparisons.

Hao Hoang's avatar
Hao Hoang
Dec 24, 2025
∙ Paid

You’re in a Senior AI Engineer interview at Google and the interviewer drops this on you:

“We ran an eval on a fixed dataset. Llama3 achieved a perplexity of 2.1, while Gemma3 scored 2.4. Which model is the better probability estimator, and which one do we deploy?”

Most candidates say:

“Llama3 is better. Perplexity measures how ‘confused’ the model is, so a lower score means it understands the text distribution better. We should deploy Llama3.”

They just fell for the classic 𝐓𝐨𝐤𝐞𝐧𝐢𝐳𝐞𝐫 𝐓𝐫𝐚𝐩. They treated a unit-dependent metric as a universal constant.

Here is the reality: Raw perplexity comparisons between different families of models are statistically meaningless.

Why? Because Perplexity is calculated per token, not per sentence.

AI Interview Prep is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

Keep reading with a 7-day free trial

Subscribe to AI Interview Prep to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Hao Hoang · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture