# BERTScore: Evaluating Text Generation with BERT

BERTScore uses BERT embeddings to judge generated text more fairly

Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, Yoav Artzi · arXiv · 2019-4-21

- **Problem** Metrics like BLEU score a candidate by counting n-gram matches with the reference. They miss paraphrases with the same meaning in different words, and they barely penalize swapped word order.
- **Method** BERTScore matches each candidate token with its most similar reference token using BERT embeddings. Unlike exact string matching, the embeddings depend on each word's surrounding context.
- **Results** On COCO captioning, RBERT reached a Pearson correlation of 0.888 with human judgments, compared to -0.019 for BLEU.

## Where surface-form metrics break down

Most generation metrics score a candidate by counting how many of its n-grams also appear in the reference. That works while the wording stays close, but it breaks when the same meaning arrives in different words. The authors' example makes this concrete: for the reference 'people like foreign cars', BLEU and METEOR rank a candidate with a different meaning above the faithful paraphrase 'consumers prefer imported cars'.

The cost is underestimation, because semantically correct phrases are penalized for not matching the reference's surface form.

Word order is a second weakness. With a window of two words, BLEU barely penalizes swapping a cause clause and an effect clause, especially when the clauses are long. Contextual embeddings, by contrast, are trained to capture distant dependencies and ordering, which points to a different kind of metric.

## Matching tokens with contextual embeddings

The key idea is to let BERT decide what counts as a match. Each token gets a vector that depends on its surrounding words, so the same word can get different vectors in different sentences. Two tokens are then compared by cosine similarity rather than by exact string equality.

Matching runs over the pairwise cosine similarities between candidate and reference tokens. Greedy matching pairs each token with its most similar counterpart, and the matched similarities are then aggregated. The aggregated values come in three forms: recall-based RBERT, precision-based PBERT and F1-based FBERT. The authors recommend F1, because recall and precision alternate as the best measure in different settings while F1 stays reliably good.

Idf weighting is optional. When it is used, each token's match is weighted by its inverse document frequency, so rarer tokens count for more. For English text the authors recommend the 24-layer RoBERTa-large model, while for non-English text they point to multilingual BERT.

## Correlation with human judgments

The validation covers machine translation and image captioning, using the outputs of 363 systems. The main text's machine translation experiments use F1 without idf weighting, and the full set of 351 systems appears in the appendix. Across these benchmarks the authors report stronger system-level and segment-level correlations than existing metrics on several common benchmarks.

On the 2015 COCO Captioning Challenge, RBERT scored a Pearson correlation of 0.888 with the M1 measure, compared to -0.019 for BLEU. Idf weighting raised RBERT to 0.917. The authors read that gain as people giving more weight to content words, since idf helps this task clearly. Strict n-gram metrics such as BLEU and ROUGE show weak correlations on this task.

LEIC scored 0.939, but it takes images as extra inputs and was optimized for this COCO data and this set of systems, so it doesn't compete on equal terms.

Scoring ran at 192.5 candidate-reference pairs per second on a GTX-1080Ti GPU. On the WMT18 en-de test set of 2,998 sentences, BERTScore took 15.6 seconds, compared to 5.4 seconds for SacreBLEU. That extra time is small enough for validation-time stopping as well as final testing.

## Robustness on adversarial paraphrases

The test asks whether a metric can separate true paraphrases from pairs that share words but differ in meaning. QQP labels duplicate questions as paraphrases, while PAWS builds harder pairs by swapping words, so a flight from New York to Florida and one from Florida to New York look alike but mean different things. The authors use the 667-sentence PAWS-QQP development set and, for QQP, the first 5,000 training sentences, since test labels were unavailable.

Automatic metrics receive no paraphrase training data.

Supervised classifiers do worst here: DecAtt, trained on QQP, scored an AUC of 0.263 on PAWS-QQP, which is below chance. Among untrained metrics BLEU scored 0.527, while FBERT with idf scored 0.693. Most metrics fall almost to chance on PAWS-QQP, whereas BERTScore drops only slightly from QQP, which the authors read as more robustness.

## Limitations

No single BERTScore configuration clearly beats all others, so the choice of model, idf setting and domain matters. The captioning results come from the 2015 COCO Captioning Challenge alone. The robustness test uses only the PAWS-QQP part of PAWS, not PAWS Wiki.

For non-English text, the multilingual BERT model gives less stable results on low-resource languages. The authors look forward to task-specific metrics that use BERTScore as a subroutine, a direction they did not test here.

## Paper info

- **Authors**: Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, Yoav Artzi
- **Venue**: arXiv · Preprint
- **First published**: 2019-4-21
- **Added**: 2026-11-11
- **Updated**: 2020-2-24
- **Version**: v3
- **arXiv**: 1904.09675
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1904.09675v3) · [PDF ↗](https://arxiv.org/pdf/1904.09675v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, Yoav Artzi (2019). BERTScore: Evaluating Text Generation with BERT. arXiv:1904.09675v3. https://arxiv.org/abs/1904.09675v3

**BibTeX**

```
@misc{zhang2019bertscore,
  title = {{BERTScore: Evaluating Text Generation with BERT}},
  author = {Tianyi Zhang and Varsha Kishore and Felix Wu and Kilian Q. Weinberger and Yoav Artzi},
  year = {2019},
  eprint = {1904.09675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.09675v3}
}
```

## Other paper commentary

- [Qwen2.5-VL Technical Report](https://refivu.com/en/papers/d6d371c0-2b43-451e-8129-a5fc723ff2ae-qwen2-5-vl-technical-report.md)
- [GPT-4o System Card](https://refivu.com/en/papers/7f73de51-bae5-43e2-85f2-6decfe19e7c4-gpt-4o-system-card.md)
- [Qwen3 Technical Report](https://refivu.com/en/papers/efd0e142-cc80-4bf8-b7fa-33c525cf374d-qwen3-technical-report.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/en/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://refivu.com/en/papers/805208af-12ea-4b4b-b1a8-6db7601b1c37-sentence-bert-sentence-embeddings-using-siamese-bert.md)
- [DriveMLM: Aligning Multi-Modal Large Language Models with Behavioral Planning States for Autonomous Driving](https://refivu.com/en/papers/a8c14912-7460-43dd-9905-2047682d37fa-drivemlm-aligning-multi-modal-large-language-models-with.md)
- [Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation](https://refivu.com/en/papers/178a13b8-5d0e-4448-a1cb-759db558ade3-swin-unet-unet-like-pure-transformer-for-medical.md)
- [How transferable are features in deep neural networks?](https://refivu.com/en/papers/cb0b30a7-565d-41f8-bd71-41713c953bea-how-transferable-are-features-in-deep-neural-networks.md)
- [HuggingFace's Transformers: State-of-the-art Natural Language Processing](https://refivu.com/en/papers/226edb36-2edb-4a96-aca3-9909969cdf23-huggingface-s-transformers-state-of-the-art-natural.md)
- [The Mythos of Model Interpretability](https://refivu.com/en/papers/28c70275-bdc3-4d2e-8c3b-711d370f197b-the-mythos-of-model-interpretability.md)
- [Federated Learning: Challenges, Methods, and Future Directions](https://refivu.com/en/papers/85104455-c32d-4181-89ff-29d70a64be44-federated-learning-challenges-methods-and-future-directions.md)
- [Natural Language Processing (almost) from Scratch](https://refivu.com/en/papers/4ded66b6-2d8b-4f92-9605-511ba715f3f1-natural-language-processing-almost-from-scratch.md)

## Terms in this paper

- [BLEU](https://refivu.com/en/terms/42cd9b97719e-bleu)
- [BERT](https://refivu.com/en/terms/45b639a1d317-bert)
- [AUC](https://refivu.com/en/terms/017a335bbf0e-auc)
- [Image Captioning](https://refivu.com/en/terms/9597f1623624-image-captioning)
- [machine translation](https://refivu.com/en/terms/13d9e0810ff4-machine-translation)
- [METEOR](https://refivu.com/en/terms/71303f52a19d-meteor)
- [greedy matching](https://refivu.com/en/terms/073151aeca35-greedy-matching)
- [inverse document frequency](https://refivu.com/en/terms/14180ca34f9a-inverse-document-frequency)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/30f8b3be-d1a1-4c44-9203-702fc98d0cc9-bertscore-evaluating-text-generation-with-bert)
