NEW
An evaluation metric that computes token-level similarity between candidate and reference using contextual embeddings, yielding precision, recall, and F1 scores that better reflect semantics.
DESCRIPTION
BERTScore evaluates generated text by comparing contextualized token embeddings from pretrained transformers between candidate and reference sentences. It selects best-matching tokens and aggregates similarities into precision, recall, and F1. The metric often correlates better with human judgments than n-gram metrics, especially for paraphrases. It is model-dependent, requires careful choice of backbone, and can be sensitive to domain shifts. Widely used for summarization, translation, and dialogue evaluation.
ALTERNATIVE DEFINITIONS
arXiv
We propose BERTScore, which computes a similarity score for each token in candidate and reference sentences by using contextual embeddings.
Defines token-level matching with contextual embeddings as the core idea.
Hugging Face
BERTScore computes precision, recall, and F1 based on token similarity using contextual embeddings from pre-trained models.
Emphasizes PRF aggregation and use of pretrained encoders.
BERTScore
BERTScore evaluates text generation by computing similarity between candidate and reference sentences using BERT.
Highlights BERT as a common backbone and practical evaluation focus.
RELATED TERMS
Transformer Model Contextual Embeddings Cosine Similarity Text Generation Evaluation Semantic Similarity Precision Recall F1 NLG Evaluation
COMPETING TERMS
RELATIONS
- Broader: Score
KNOWLEDGE AREAS
AI Data Science Testing & Validation MLOps
TARGET AUDIENCE
Data Scientist AI Engineer MLOps Engineer
EXTERNAL SOURCES
- arXiv - Original BERTScore paper
- Hugging Face - Metric docs and examples
- BERTScore - Official repository and usage
TOP QUESTIONS
Why is BERTScore popular for text generation evaluation?
It captures semantic similarity using contextual embeddings, outperforming n-gram metrics when paraphrasing or reordering occurs. This often yields better alignment with human judgments.
Category: Relevancy
How does BERTScore compute similarity?
It embeds tokens with a pretrained model, computes token-to-token similarities, selects best matches, and aggregates them into precision, recall, and F1 scores.
Category: Concept
What are risks when using BERTScore?
Results depend on the chosen backbone model and domain. Mismatched models or tokenization differences can bias scores.
Category: Risk
How does BERTScore compare to BLEU and ROUGE?
It typically captures semantics better, especially for paraphrases. BLEU and ROUGE focus on surface overlap and may penalize valid rephrasings.
Category: Differences
How should I select the backbone model for BERTScore?
Choose a model aligned with your language and domain; larger models can improve sensitivity but increase compute cost. Validate on a held-out human-rated set.
Category: Tuning
Is BERTScore suitable for multilingual evaluation?
Yes, with multilingual backbones like XLM-R or mBERT. Ensure both candidate and reference are tokenized consistently.
Category: Usage
Can BERTScore be gamed by verbose outputs?
Excess verbosity can increase recall but hurt precision. Reporting F1 and length-normalized metrics mitigates this.
Category: Mistakes
How to report BERTScore in papers or dashboards?
State the backbone, layer selection, idf weighting, and language settings. Provide mean and variance across samples.
Category: BestPractices
Does BERTScore replace human evaluation?
No. It complements human evaluation, offering scalable semantic assessment but lacking nuanced judgments like factuality or style.
Category: Opinion