Advanced NLP Interview Questions #14 – The Tokenization Brittleness Trap
Why deleting a single whitespace can cause a 12% accuracy drop and why instruction tuning doesn’t actually make LLMs robust.
You’re in an AI Engineer interview at Meta and the interviewer asks:
“We deployed a Llama-3 based app. We removed a single whitespace in the prompt template, and our benchmark accuracy tanked by 12%. Why is the model so brittle to a simple format change, and why didn’t instruction tuning prevent this?”
Don’t say: “The model is confused by the bad grammar.”
Too vague. This is the junior answer. The model has read the entire internet, it has seen typos before.
The reality is that LLMs do not read text. They process sequences of integers.
When you delete a whitespace or a colon, you aren’t just making a “typo”, you are fundamentally altering the 𝐓𝐨𝐤𝐞𝐧𝐢𝐳𝐚𝐭𝐢𝐨𝐧 𝐁𝐨𝐮𝐧𝐝𝐚𝐫𝐲.
Here is the production-level breakdown:
1️⃣ 𝐓𝐡𝐞 𝐓𝐨𝐤𝐞𝐧𝐢𝐳𝐞𝐫 𝐓𝐫𝐚𝐩: In many tokenizers, “ word” (with a leading space) and “word” (without) map to completely different integer IDs. To the model, they are as distinct as “apple” and “orange.” You just broke the integer sequence the model optimized for.
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.

