Join our Newsletter — 33% off our NHI Course
Home› FAQ› Foundations & NHI Taxonomy› How do I score extracted answers when wording…
Foundations & NHI Taxonomy

How do I score extracted answers when wording varies?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated November 25, 2026 Domain: Foundations & NHI Taxonomy

Use token-level F1, not exact wording, when a model’s extracted answer can be phrased in different but equivalent ways. Token F1 scores overlap between the predicted span and the reference span, so it rewards partial correctness and penalises missing or extra words. For closed-book extraction, normalise casing, punctuation and articles before scoring.

Why token-level F1 is the right scorer: In extracted-answer tasks, exact wording is too brittle because the same answer can be expressed with different phrasing, ordering, or minor syntax changes. Token-level F1 measures overlap between the predicted span and the reference span, so it rewards partially correct extractions while still penalising missing or added words. For closed-book extraction, normalise casing, punctuation, and articles first so the score reflects content rather than formatting.

Where it helps most: Token F1 is especially useful when the task is about locating the right answer text rather than reproducing a verbatim quote. It gives you a more stable measure across models, annotators, and reference styles, which makes it better for benchmarking and error analysis than exact match alone. If your evaluation needs to distinguish between near misses and fully correct spans, F1 usually gives the more informative signal.

What the score does not tell you: A good F1 score does not guarantee the model selected the right evidence, only that its text overlaps well with the reference. For that reason, teams often pair token F1 with separate checks for span validity, answer normalization, or task-specific acceptance rules. If the task allows multiple equivalent phrasings, define the normalization policy up front so scoring stays consistent across the dataset.

Practitioner Guidance

What to verify: Confirm that your normalization rules are fixed before evaluation begins, including how you handle case, punctuation, articles, and whitespace. If those rules change midstream, the score distribution changes with them and you can no longer compare runs cleanly.

Decision rule: Use token-level F1 when equivalence is semantic rather than literal, and reserve exact match for tasks where the wording itself must be reproduced exactly. If a task has both retrieval and phrasing components, score them separately instead of forcing one metric to do both jobs.

Common mistake: Treating token F1 as a complete measure of answer quality. It is best viewed as an overlap metric for extracted spans, not a substitute for judging correctness, grounding, or whether the model chose the right passage in the first place.

Practitioner takeaway: The most useful scoring setup is the one that matches the task contract, so define acceptable variation first, then use token F1 to measure overlap against that standard.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org