Home › Glossary › Evaluation › Exact match

Intermediate · Evaluation

Exact match

Visual diagram · (in preparation) · Math · (in preparation) · Worked example · 3 difficulty levels.

TL;DR. A metric that requires model output to perfectly match the ground truth.

Technical Definition

A metric that requires model output to perfectly match the ground truth.

How it works

Exact match is a strict metric where the model's output must be identical to the ground truth to receive credit. This applies to simple text generation as well as sequence generation, where the order of items in both the model's output and the ground truth must be precisely the same.

Related Concepts

  • Ground truth — The actual reality or outcome of a situation, used to assess model performance.

Further Reading

  • Google ML Glossary