Skip to content

Learned metrics: BERTScore, MAUVE and COMET

Metrics built on pretrained models credit paraphrases that overlap misses. BERTScore matches token embeddings, MAUVE compares distributions of text, COMET learns from human ratings; each inherits its model's limits.

Advanced ~14 min8 steps

What runs in CodeSplash

You will be able to

  • Compute BERTScore's precision, recall and F1 from token similarities
  • Explain what MAUVE compares and why it needs many samples
  • Describe COMET as a regression trained on human judgments
  • Say why a learned metric's model, layer, version and license are part of its result

Read first

01

Match meanings, token by token

Read

BERTScoreBERTScoreMatches each token to its most similar token in the other text by contextual-embedding cosine; reports precision, recall and F1. embeds every token of the candidate and the reference with a pretrained encoder, then matches each token to its most similar token on the other side by cosine. Precision averages the best matches of candidate tokens, recall those of reference tokens, and F1 combines them:

P=1∣x^∣∑jmax⁡i cos⁡(xi,x^j),R=1∣x∣∑imax⁡j cos⁡(xi,x^j)P = \frac{1}{|\hat x|}\sum_{j}\max_i\, \cos(x_i, \hat x_j), \quad R = \frac{1}{|x|}\sum_{i}\max_j\, \cos(x_i, \hat x_j)

From a small table of token similarities, the reference program gets F1 0.824. "rescheduled" can now match "moved", which BLEU would score as a miss.

02

Part of the definition

Read

A BERTScore value means little without its settings. Which model and which layer produced the embeddings, whether IDF weighting was used, and whether scores were rescaled against a baseline all change the number. Raw cosines between contextual embeddings are high even for unrelated text, which is why rescaling exists.

Report BERTScore with its full signature, and compare values only under the same one. A score computed with a different encoder is a different metric and deserves a different name.

03

Distributions, not pairs: MAUVE

Read

MAUVEMAUVECompares the distribution of generated texts with that of human texts in a quantized embedding space; needs many samples. asks whether a set of generated texts is distributed like a set of human texts. It embeds both sets, quantizes the embeddings into clusters, and traces how two histograms P and Q diverge through their mixtures. In the reference program, P and Q over two clusters give the two directions of the divergence measure, 0.954 and 0.956 on a scale where 1 means identical.

It needs no references, but needs hundreds to thousands of samples: with few texts the clusters and the score swing. Its reference implementation is GPL-3.0.

04

Learn from human ratings: COMET

Read

COMETCOMETA learned translation metric: a multilingual encoder reads source, candidate and reference and predicts a human quality rating. trains a regression model on human quality ratings of translations. A multilingual encoder reads the source, the candidate and the reference; a small head predicts the human score. Training minimizes squared error: the reference program's predictions miss three human scores with mean squared error 0.0075.

COMET agrees with human judgments better than BLEU on translation benchmarks, but inherits its training data: languages and domains unlike its ratings get less reliable scores. Some COMET models carry non-commercial licenses.

05

Learned does not mean correct

Predict

Predict first

A summary scores very high on BERTScore against its reference. Can you conclude it states the same facts?

Yes: a learned metric understands meaningNot necessarily: it rewards what its model and training data reward, which may miss a wrong number or nameOnly if the score is above 0.9
Reveal

Not necessarily. Embeddings of "rose 12%" and "rose 21%" are close, so a wrong number can score well. Learned metrics catch paraphrase better than overlap does, and still need a factual check where facts matter.

06

Where it stands in CodeSplash

Read
EntryIn CodeSplash
BERTScore, MAUVE, COMET (EVA033–EVA035)Needs a data type CodeSplash doesn't load yet: each needs a large pretrained text model; MAUVE's package is GPL-3.0
Reference · EVA033 · Needs a data type CodeSplash doesn't load yetBERTScoreMatches candidate and reference tokens using contextual-embedding similarity.
07

Check: learned metrics

Checkpoint

Check yourself

How is BERTScore's recall computed?

Show the answer

Answer: b

Recall asks how well the reference's content is covered; greedy matching by embedding similarity replaces exact string matches.

Check yourself

Two teams report BERTScore 0.91 and 0.62 for similar systems. What is the most likely reason the numbers differ so much?

Show the answer

Answer: b

Without rescaling, contextual cosines sit near the top of the scale; with it, scores spread out. Compare only under one signature.

Check yourself

What does MAUVE compare?

Show the answer

Answer: b

MAUVE works at the level of sets: it measures how far the two distributions diverge, not how good any single text is.

Check yourself

You compute MAUVE on 30 generated and 30 human texts and get a surprising value. What is the first concern?

Show the answer

Answer: a

MAUVE estimates distributions from samples; with dozens of texts the estimate swings. Use hundreds or more, and repeat with different seeds.

Check yourself

What is COMET trained to predict?

Show the answer

Answer: b

COMET is a learned regression: it imitates how human raters scored translations.

Check yourself

COMET scores medical translations from a language pair it rarely saw in training. How should you treat the scores?

Show the answer

Answer: b

Learned metrics inherit their training distribution. Validate them on your domain before trusting comparisons.

08

Recap

Recap
  • BERTScore matches token embeddings greedily; model, layer, IDF and rescaling are part of the result.
  • MAUVE compares distributions of generated and human text; it needs many samples.
  • COMET regresses human ratings; it is only as reliable as its training ratings are relevant.
  • Learned metrics credit paraphrase and can still miss wrong facts. None runs in CodeSplash yet.

Concepts in this lesson