Semantic textual similarity (STS): what a similarity score tells you
Learn how STS grades meaning overlap between two texts, how to read the score, and how to evaluate it against human ratings.
Semantic textual similarity (STS) estimates how much meaning two text passages share. Unlike a strict paraphrase decision, STS is usually graded: two sentences can share some meaning without saying exactly the same thing. A score is meaningful only with its scale, language, domain, and evaluation method.
For example (constructed, not a benchmark item): “A child is riding a bicycle.” and “A kid rides a bike.” express nearly the same event, while “A child is carrying a bicycle.” shares words but describes a different event. STS should respond to meaning, not just word overlap. Many benchmark tasks use human ratings on a bounded scale; the exact range and interpretation depend on the dataset.
To evaluate an STS system, compare its predictions with human scores on held-out sentence pairs. Correlation measures whether predictions vary with human judgments; it does not mean the numerical scores are calibrated probabilities or that every pair is correct. Inspect errors involving negation, changed participants or actions, and missing context. Results on one language or dataset do not guarantee quality in another domain. STS is useful for ranking or semantic matching, but use a task-specific threshold and review process when a mistaken match has consequences.