179 questions
No questions match those filters.
You deployed an instruction-tuned model, removed a single whitespace character from the prompt template, and benchmark accuracy dropped double digits. Why is the model this brittle to a change that doesn't alter the meaning of the text at all?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansCalling this a “grammar” or “formatting” issue undersells what’s actually happening, because the model doesn’t process characters or words the way a human reader does — it processes a fixed sequence of integer token IDs produced by the tokenizer. Many BPE-style tokenizers give “ word” (with a leading space) and “word” (without one) completely different token IDs, not variants of the same token. Deleting a single space in a template doesn’t nudge the input slightly — it silently substitutes a different integer at that position, and everything downstream of it can shift as the tokenizer re-segments the rest of the string differently too.
That would be a minor issue if the model had seen enough tokenization variety during training to be robust to it, but instruction tuning often narrows rather than widens this robustness. If SFT data used one specific chat template consistently — the same delimiters, the same spacing, the same special tokens in the same positions — the model can overfit to that exact token pattern as a strong, spurious signal for “this is an instruction to follow,” rather than learning something more general. Changing the template pushes the input out of distribution for that overfit signal, and the model falls back to weaker, less reliable behavior.
The practical takeaway: don’t hand-tweak prompt templates in production and assume “close enough” is safe. Verify inputs against the exact template and tokenization the model was fine-tuned on, and if you need robustness to minor formatting variation, that has to be trained in deliberately — via automated prompt optimization or explicitly diversified SFT templates — not assumed for free.