NLP Metrics interview question

Deep LearningNLP MetricsEmbeddingsmedium

Two system outputs are scored against a single reference in the table. Which interpretation of the scores is correct?

TextBLEU (smoothed)BERTScore F1
ReferenceThe customer cancelled the contract last week.––
Output 1The client terminated the agreement last week.0.160.93
Output 2The customer cancelled the contract last year.0.710.96
Illustrative sentence-level scores.
  1. AOutput 2 is better on both metrics, so it should be preferred; a high BLEU together with a high BERTScore confirms that it preserves the meaning of the reference most faithfully.
  2. BOutput 1 scores low because of BLEU's brevity penalty, since synonyms like "client" count as shorter matches, and METEOR would rate Output 1 even lower than BLEU does.
  3. COutput 1 keeps the meaning but scores low on BLEU because its synonyms share few n-grams; Output 2 changes a fact yet scores high on both, so neither metric checks facts.
  4. DBERTScore is unreliable here, because it relies on exact n-gram matches like BLEU with a softer threshold, so Output 1's 0.93 only reflects shared words like "last week".
Show the answer and explanation

Correct answer: C, Output 1 keeps the meaning but scores low on BLEU because its synonyms share few n-grams; Output 2 changes a fact yet scores high on both, so neither metric checks facts.

Explanation NLP Metrics

Output 1 is a faithful paraphrase: client = customer, terminated = cancelled, agreement = contract. BLEU only counts exact n-gram matches, and Output 1 shares just "The", "the" and the ending "last week ." with the reference (unigram 5/8, bigram 2/7, trigram 1/6). No 4-gram matches, so even smoothed sentence BLEU is low (about 0.16 when the zero 4-gram count is smoothed to 0.1).

Output 2 copies the reference almost word for word but changes week → year, a factual error. It shares most n-grams, so BLEU is high (unigram 7/8, bigram 5/7, trigram 4/6, 4-gram 3/5, geometric mean ≈ 0.71). BERTScore, which matches each token to its most similar token by contextual-embedding cosine, is also high because only one token differs and "year" is semantically close to "week".

Lessons:

  • N-gram metrics (BLEU, ROUGE) miss paraphrases and synonyms. METEOR partly helps through stemming and WordNet synonyms; BERTScore handles them much better, as Output 1's 0.93 shows.
  • No similarity metric verifies facts. A one-token change in a date, amount or negation can reverse the meaning while barely moving the score. For banking or legal content add targeted checks: entity and number matching, NLI-based factual consistency, or LLM-as-judge with a rubric.

Why the distractors fail: high scores on both metrics do not make Output 2 faithful; it is wrong. Both outputs have the same length as the reference (8 tokens), so the brevity penalty is not involved, and METEOR would score Output 1 higher than BLEU, not lower, thanks to synonym matching. BERTScore uses embeddings, not exact n-grams.

Interview tip: describe a layered evaluation: cheap lexical metrics for regression tracking, semantic metrics for paraphrase tolerance, and task-specific factuality checks plus human review for what really matters.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Deep Learning questions

  1. A telecom's search-box autocomplete uses a bigram language model with add-one (Laplace) smoothing, P(w prev) = (c(prev, w) + 1) / (c(prev) + V). The table…
  2. The table shows how two tokenizers split the same text. What do the ## and Ġ markers mean?
  3. A retailer wants to cut the mobile-app download size of a product-image classifier (dense top-1 76.1%) by pruning it and shipping the weights in a compressed…
  4. A retailer's Stable Diffusion 1.5 pipeline uses classifier-free guidance, ε̂ = ε_uncond + w·(ε_cond − ε_uncond), with w = 7.5. For one latent element at one…
  5. An LLM interpretability team trains a sparse autoencoder (SAE) on residual-stream activations of size 4,096, with a 65,536-unit ReLU code layer and an L1…