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

Semantic similarity prediction is better than other semantic similarity measures

Steffen Herbold

Abstract

Traditional metrics for evaluating semantic similarity often rely on indirect measures such as n-gram overlap or geometric distances between sentence embeddings. This paper challenges this status quo by proposing a direct approach: training a model specifically to predict human-rated similarity scores. The resulting metric, STSScore, utilizes a cross-encoder architecture fine-tuned on the Semantic Textual Similarity Benchmark (STS-B). Experimental results across multiple datasets, including MRPC and QQP, demonstrate that STSScore significantly outperforms established metrics like BLEU, BERTScore, and S-BERT in aligning with human judgment and identifying paraphrases.

Introduction

As Large Language Models (LLMs) become central to natural language processing, the need for robust automated evaluation metrics has grown. Determining whether an LLM-generated summary or translation is semantically equivalent to a reference text is a critical bottleneck.

Historically, researchers relied on BLEU or ROUGE, which measure surface-level word overlap. These metrics fail to capture meaning when different vocabulary is used (e.g., "I'm exhausted" vs. "I am very tired"). To address this, embedding-based measures like S-BERT were developed, calculating the cosine similarity between sentence vectors in a latent space. However, this paper argues that even these methods are indirect and may not fully capture the nuances of human semantic judgment.

Methods: The STSScore Approach

The author introduces STSScore, which shifts the paradigm from geometric distance to direct regression. Unlike S-BERT, which typically encodes sentences independently (bi-encoder), STSScore employs a cross-encoder approach using a RoBERTa-base architecture.

  1. Architecture: The model processes two sentences simultaneously, allowing for full self-attention across both inputs to better capture interaction.
  2. Fine-tuning: The model is trained on the STS-B dataset to predict human-assigned similarity scores. These scores, originally on a 0-5 scale, are normalized to a 0-1 range for the regression task.
  3. Benchmarking: STSScore is compared against BLEU (n-gram overlap), BERTScore (word-level embedding matching), and S-BERT (sentence-level embedding similarity).

Key Insights and Results

The performance of these metrics was evaluated on several benchmarks, including STS-B, the Microsoft Research Paraphrase Corpus (MRPC), and Quora Question Pairs (QQP).

Performance on STS-B

On the STS-B test set, STSScore achieved a Pearson correlation of 0.90, notably higher than S-BERT (0.83) and BERTScore (0.53). Visual analysis of the results reveals critical weaknesses in traditional metrics.

Comparison of similarity metrics on the STS-B dataset. STSScore shows the tightest alignment with human labels, while BLEU suffers from the "zero-overlap" trap.

As shown in the scatter plots, BLEU frequently assigns a score of zero to semantically related pairs that lack word overlap. S-BERT, while better, tends to overestimate similarity, pushing scores toward the top of the scale and reducing discriminative power between "somewhat similar" and "identical" pairs.

Distribution and Classification

Beyond correlation, the distribution of scores provides insight into how well a metric distinguishes between related and unrelated text. In paraphrase detection tasks (MRPC and QQP), STSScore achieved an AUC of 0.85, outperforming all competitors.

Density plots of similarity scores for the MRPC dataset. STSScore provides better separation between paraphrase (label 1) and non-paraphrase (label 0) pairs.

The density plots illustrate that STSScore creates a clearer separation between labels than S-BERT or BERTScore. While S-BERT distributions for both labels overlap significantly at high similarity values, STSScore more effectively isolates true paraphrases, matching human intuition more closely.

The Translation Exception

Interestingly, in the WMT22 translation task (Chinese to English), BERTScore outperformed STSScore. This suggests that while STSScore excels at pure semantic similarity, translation quality metrics (like MQM) may require sensitivity to fluency and stylistic factors that a similarity-focused model does not prioritize.

Conclusion and Future Work

This research demonstrates that direct similarity prediction via cross-encoders is a superior approach for many semantic evaluation tasks. However, limitations remain. STSScore is currently optimized for English and may inherit biases from its transformer-based architecture. Future work should explore multi-faceted evaluation models that can independently assess accuracy, fluency, and context, potentially by fine-tuning on more complex human-rated datasets like MQM.

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