Explain why string-match accuracy is systematically misleading for LLM evaluation
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Explain why exact string-match accuracy is a poor metric for evaluating open-ended LLM outputs. What structural property of LLM outputs makes it fail, and what does a good evaluator need to account for instead?
Open-ended outputs have no single gold string and quality is multi-dimensional, so exact-match scores correct paraphrases as wrong. Good eval matches semantically and scores each quality axis separately.
Imagine grading a creative-writing class by checking each essay against one perfect answer, word for word. A brilliant essay that says the same thing differently gets a zero, because it does not match the key. That is exact string-match on LLM outputs. There are dozens of equally good ways to phrase a correct answer, so matching one reference string punishes the wrong things. Worse, a good answer is not just correct words. It must be truthful, on topic, complete, and in the right tone, all at once. One reference string cannot capture all of that. So modern grading checks whether the meaning matches, not the letters, and scores each quality separately instead of giving one pass or fail.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: why no single gold string exists, why quality is multi-dimensional, why token-overlap metrics stay surface-level, and the fix (semantic matching plus per-axis rubric judging plus golden sets).
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating exact-match accuracy as a neutral, objective baseline. It silently penalizes correct paraphrases and collapses several distinct quality dimensions into one binary that measures surface form, not meaning.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.