How do we teach a machine to understand that two completely different strings of text mean the same thing? For decades, natural language processing relied heavily on surface-level lexical matching—counting overlapping words or computing TF-IDF scores. However, human language is rich with paraphrases, metaphors, and contextual nuances.
To bridge this gap, researchers have developed methods to quantify Semantic Textual Similarity (STS) and Semantic Textual Relatedness (STR). The goal is to map linguistic expressions into a space where their computational distance reflects their conceptual alignment.
The Dimensions of Textual Comparison
To understand why quantifying similarity is challenging, we must first realize that "similarity" is not a monolithic concept. As Daniel Bär et al. clarify in A Reflective View on Text Similarity, text similarity can be broken down into distinct dimensions: structure, style, and content. A system might fail to recognize similarity if it conflates a shared narrative style with shared factual content.
Furthermore, the field distinguishes between strict similarity and broader relatedness:
- Semantic Similarity measures equivalence or paraphrase. "The dog chased the cat" and "A hound pursued the feline" have high semantic similarity.
- Semantic Relatedness captures broader topical and contextual bonds. As Udvas Basak et al. point out in IITK at SemEval-2024 Task 1: Contrastive Learning and Autoencoders for Semantic Textual Relatedness in Multilingual Texts, sentences can be deeply related through topical connections without being direct paraphrases of one another (e.g., "The stock market crashed" and "Investors panicked").
This distinction is vital for downstream applications. As Mona T. Diab notes in Semantic Textual Similarity: past present and future, a robust metric for shared meaning serves as a foundational building block for machine translation evaluation, document summarization, and question answering.
The Evolution of the Mechanism
The mechanisms used to calculate these relationships have evolved from discrete graph networks to continuous, high-dimensional vector spaces.
1. Lexical Networks and Spreading Activation
Early approaches attempted to map semantic relationships using structured human knowledge. In Similarity between Words Computed by Spreading Activation on an English Dictionary, Hideki Kozima introduced a system that treated dictionary definitions as a semantic network. By initiating "spreading activation" from a target word node, the system could see which other words received the most energy through interconnected definitions, capturing lexical cohesion without relying on exact word matches.
2. Hybrid Feature Engineering
As the field scaled, researchers began combining machine translation evaluation metrics with distributional models. For instance, José G. C. de Souza et al. in FBK: Machine Translation Evaluation and Word Similarity metrics for Semantic Textual Similarity and Quan Hung Tran in TATO: Leveraging on Multiple Strategies for Semantic Textual Similarity demonstrated that combining syntactic features, lexical overlap, and distance-based metrics via regression models yielded a more comprehensive understanding of sentence-level equivalence than any single feature alone.
3. Continuous Vector Spaces and Embeddings
The true paradigm shift occurred with the advent of continuous vector space models. Instead of treating words as discrete entities, sentences are mapped to dense, low-dimensional vectors where semantic proximity mirrors geometric proximity.
Mikael Kågebäck et al. leveraged this in Extractive Summarization using Continuous Vector Space Models, showing that representing sentences as dense vectors allows algorithms to detect redundancy and importance far better than traditional TF-IDF methods. However, early vector models struggled with structure; Georgiana Dinu et al. observed in Saarland: Vector-based models of semantic textual similarity that while sophisticated contextualized vectors excelled at short, well-structured sentences, simple word-overlap baselines remained remarkably competitive for complex text.
Why Modern Embedding Frameworks Work
Modern systems solve the limitations of early vector models by utilizing deep, pre-trained Transformer architectures optimized via contrastive learning.
Instead of looking at words in isolation, models like BERT, LaBSE, or OpenAI's text-embedding models process the entire context of a sentence simultaneously. This allows them to resolve ambiguities and recognize when surface-level differences mask semantic equivalence. For example, in clinical settings, Paul Landes et al. noted in Hospital Discharge Summarization Data Provenance that medical notes often maintain high semantic similarity through paraphrasing even when their surface text looks entirely different.
To capture these relationships across diverse languages and contexts, contemporary approaches rely on two main pillars:
- Zero-Shot Pre-trained Embeddings: Systems can leverage massive, multi-lingual models out of the box. As demonstrated by Dilip Venkatesh et al. in BITS Pilani at SemEval-2024 Task 1: Using text-embedding-3-large and LaBSE embeddings for Semantic Textual Relatedness, these models project sentences from different languages into a shared geometric space, allowing zero-shot relatedness quantification.
- Contrastive Fine-Tuning and Ensembles: To fine-tune these spaces, researchers use objectives like SimCSE or TSDAE (Denoising Autoencoders) to explicitly pull related sentence representations closer together while pushing unrelated ones apart. Shreejith Babu G et al. (TECHSSN at SemEval-2024 Task 1: Multilingual Analysis for Semantic Textual Relatedness using Boosted Transformer Models) and Nguyen Tuan Kiet et al. (NRK at SemEval-2024 Task 1: Semantic Textual Relatedness through Domain Adaptation and Ensemble Learning on BERT-based models) showed that feeding these optimized embeddings into downstream regression models or gradient-boosting frameworks yields highly accurate, nuanced predictions of human-rated relatedness scores.
By transitioning from "Do these texts use the same words?" to "Do these texts map to the same neighborhood in a conceptual space?", semantic textual quantification allows machines to handle the inherent flexibility, creativity, and ambiguity of human language.
Key Foundational Work
Measurement of Similarity Between Nouns (1965) — contributed 1 concept elements to this direction.
Similarity between Words Computed by Spreading Activation on an English Dictionary (1993) — contributed 1 concept elements to this direction.