BERTScore is an evaluation metric that represents the tokens of a generated sentence (the candidate) and a human-written sentence (the reference) with contextual embeddings from a pretrained language model, and measures closeness in meaning through token-level cosine similarity. It produces three values: recall , precision , and their F1, . Higher values mean the sentence is closer to the reference.
is the token sequence of the reference, that of the candidate, and and are embeddings normalized to unit length. Because of the normalization, the inner product equals the cosine similarity.
BERTScore was proposed by Zhang et al. in 2019 and presented at ICLR 2020. Metrics that count n-gram matches, such as BLEU, had two weaknesses. The first is that they cannot evaluate paraphrases correctly. In the paper's example, for the reference "people like foreign cars", BLEU and METEOR score "people like visiting places abroad", which means something different, higher than "consumers prefer imported cars", which means the same thing. The second is that they cannot capture relations between distant words and only lightly penalize word-order changes that drastically alter the meaning. BERTScore addresses both by comparing meaning rather than surface form through contextual embeddings.

