NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semantic similarity prediction is better than other semantic similarity measures

Steffen Herbold · DOI

Introduction

As generative AI and Large Language Models (LLMs) become ubiquitous, evaluating their output has become a significant bottleneck. Traditional metrics like BLEU rely on rigid n-gram overlap, which often fails to capture the fluid nature of language. Modern alternatives like BERTScore or S-BERT utilize deep learning embeddings and cosine similarity, yet they frequently struggle to align with human intuition—S-BERT tends to overestimate similarity, while BERTScore rarely reaches a perfect 1.0 for identical meanings. This paper argues that instead of calculating similarity from static embeddings, we should train models to predict it directly.

Methodology

The author introduces STSScore, a regression-based approach to semantic evaluation. Utilizing a RoBERTa-base architecture, the model is fine-tuned on the STS-B (Semantic Textual Similarity Benchmark). Unlike classification models, STSScore outputs a continuous value between 0 and 5 (scaled to a 0-1 interval). The key differentiator is its "cross-encoder" style approach: the sentence pair is treated as a single input, allowing the transformer to attend directly to the relationship between the two sentences rather than comparing two independent vectors.

Experimental Setup

The study evaluates STSScore against industry standards—BLEU, BERTScore, and S-BERT—across four distinct benchmarks within the GLUE framework:

  • STS-B: The primary benchmark for human-rated similarity.
  • MRPC (Microsoft Research Paraphrase Corpus): Binary paraphrase detection.
  • QQP (Quora Question Pairs): Identifying semantically identical questions.
  • WMT22-ZH-EN: A translation dataset labeled using the Multidimensional Quality Metrics (MQM) schema.

Key Results and Discussion

STSScore demonstrated superior alignment with human judgment across most benchmarks. On the STS-B test set, it achieved a Pearson’s $r$ of 0.90, significantly outperforming S-BERT (0.83), BERTScore (0.53), and BLEU (0.34).

Comparison of similarity metrics on the STS-B dataset. STSScore shows the tightest alignment with the diagonal, representing human labels, compared to the rigid distributions of BLEU and the overestimations of S-BERT.

Distributional Analysis

A critical insight of the paper is the importance of score distribution. Traditional metrics often suffer at the edges of the scale. BLEU produces an excessive number of zeros for semantically related sentences that share no words, while BERTScore rarely hits a perfect one.

Density plot for BLEU on the MRPC dataset, illustrating the "zero problem" and the significant overlap between paraphrase (1) and non-paraphrase (0) classes.

In contrast, STSScore provides a distribution that mirrors human scoring patterns and offers cleaner separation between classes in binary tasks like MRPC and QQP (achieving an AUC of 0.85 for both). However, in translation tasks (WMT22), BERTScore outperformed STSScore, suggesting that token-matching remains superior for capturing word-level accuracy and fluency.

Conclusion and Future Work

Treating semantic similarity as a direct prediction task via regression yields more robust and human-aligned metrics than traditional overlap or distance-based methods. While highly effective for general similarity, future work could involve creating specialized versions of STSScore to evaluate multidimensional aspects of language, such as style and terminology, or extending the method to multi-lingual contexts.

Summary updated

BibTeX
@article{herbold2024semantic,
  author = {Steffen Herbold},
  title = {{Semantic similarity prediction is better than other semantic similarity measures}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=gm8cZAY7dU},
}
Figure