Imagine you are building an automated grading system, a plagiarism detector, or a medical case-retrieval engine. You ask a model to compare two inputs, and it returns a single number: 0.82.
What does that number actually mean? Are the inputs considered similar because they describe the same event using different words, or because they share superficial vocabulary? Traditional models—ranging from early statistical approaches noted by Courtney D. Corley et al. in Measuring the Semantic Similarity of Texts to advanced latent semantic indexing frameworks described by David W. Patterson et al. in Sophia: A novel approach for Textual Case-based Reasoning—frequently operate as black boxes. They provide a scalar measure of relatedness but completely obscure the underlying reasoning.
To bridge this gap, a distinct research direction has emerged: Interpretable Semantic Similarity. Instead of treating similarity as a monolithic, opaque value, these techniques decompose, align, or constrain similarity metrics to explain why two items are related.
Explaining Similarity via Typed Alignments
The most direct way to turn an abstract similarity score into an explanation is to break the inputs into smaller, digestible concepts and explicitly map their relationships.
This strategy was formalized through the Interpretable Semantic Textual Similarity (iSTS) framework. Instead of scoring a sentence pair as a single unit, systems are designed to align specific text segments (or chunks) and label their exact semantic relationship. As outlined by Eneko Agirre et al. in SemEval-2016 Task 2: Interpretable Semantic Textual Similarity, these labels categorize chunk interactions into fine-grained types such as equivalence, opposition, or specificity.
Sentence 1: [The man] [is driving] [a blue car]
| | |
Alignment: Equivalence Equivalence Specification
| | |
Sentence 2: [The person] [is driving] [a vehicle]
By structuring interpretability this way, a model can explicitly justify its final score. Iñigo Lopez-Gazpio et al. demonstrate in Interpretable Semantic Textual Similarity: Finding and explaining differences between sentences that typed alignments allow users to see exactly where two sentences agree or conflict. Rather than guessing why a model penalized a similarity score, a user can see that one sentence contains a "specialization" (more detail) or an "opposition" compared to the other. This approach has been operationalized using joint neural architectures that simultaneously align, label, and score text segments (see Iñigo Lopez-Gazpio et al. in iUBC at SemEval-2016 Task 2: RNNs and LSTMs for interpretable STS and Eneko Agirre et al. in UBC: Cubes for English Semantic Textual Similarity and Supervised Approaches for Interpretable STS).
Moving from coarse sentence-level representations to token-level interactions allows models to preserve and visualize concept alignments directly, preventing fine-grained nuances from being lost in a single vector compression (Dong Yu et al. in Going Beyond Sentence Embeddings: A Token-Level Matching Algorithm for Calculating Semantic Textual Similarity). This granularity is crucial for tasks like plagiarism detection or automated grading, where understanding specific linguistic shifts—such as syntax swaps or lexical changes—is mandatory (Jan Philip Wahle et al. in Paraphrase Types for Generation and Detection).
Decomposing the Vector Space
What if we are required to use standard vector spaces and cosine similarity? Can we make an existing vector metric interpretable without discarding it entirely?
The answer lies in mathematical decomposition. Standard cosine similarity compresses all semantic relationships into a single dot product. However, Hiroaki Yamagiwa et al. show in Revisiting Cosine Similarity via Normalized ICA-transformed Embeddings that by applying Independent Component Analysis (ICA) to the embedding space, cosine similarity can be broken down into a sum of independent, sparse semantic axes. Instead of an opaque scalar, the similarity is revealed as a combination of explicit human concepts (e.g., a shared connection specifically in the domain of [biology] or [space]).
When models learn similarity metrics directly from data, we can also apply model-agnostic explanation frameworks. Karthikeyan Natesan Ramamurthy et al. address this in Analogies and Feature Attributions for Model Agnostic Explanation of Similarity Learners by developing quadratic feature attributions and analogy-based explanations specifically tailored for pairwise similarity functions, highlighting exactly which input features drove the match.
Aspect-Based and Complexity-Driven Similarity
Another way to achieve interpretability is to force the model to evaluate similarity along explicit, user-controlled dimensions rather than a generic, all-encompassing metric.
For example, two research papers might use the same methodology but study completely different topics. A generic embedding model will conflate these signals. To solve this, Tim Schopf et al. developed AspectCSE: Sentence Embeddings for Aspect-Based Semantic Textual Similarity Using Contrastive Learning and Structured Knowledge. By leveraging structured knowledge graphs like Wikidata, their framework trains models to isolate specific "aspects" of similarity, allowing users to tune search results and understand exactly which dimension (e.g., industry vs. function) triggered a match.
[Document A] <--- Compare Aspect: Methodology ---> [Document B] (High Similarity)
[Document A] <--- Compare Aspect: Target Topic ---> [Document B] (Low Similarity)
Alternatively, we can redefine similarity using cognitive or descriptive frameworks. Javad Rahnama in Learning Tversky Similarity leverages Tversky's ratio model to explicitly contrast shared versus distinctive features, moving away from geometric distance toward explicit feature matching.
Taking a generative approach, Alessandro Achille et al. introduce Complexity-Constrained Descriptive Auto-Encoding (CC:DAE) in Interpretable Measures of Conceptual Similarity by Complexity-Constrained Descriptive Auto-Encoding. Instead of calculating an abstract distance, CC:DAE measures similarity by determining how much descriptive natural language detail is required to distinguish one item from another, making the metric inherently interpretable through language. Similarly, systems like Thesaurus Rex harvest lateral perspectives from the web to enrich hierarchical taxonomies, providing human-readable justifications for creative comparisons like metaphors (Tony Veale et al. in Creating Similarity: Lateral Thinking for Vertical Similarity Judgments).
Alternative Grounding: Logic and Generative Spaces
Finally, interpretability can be achieved by grounding similarity in formal reasoning or visual execution.
Instead of statistical heuristics, Hitomi Yanaka et al. show in Determining Semantic Textual Similarity using Natural Deduction Proofs that shallow features can be combined with deep features derived from formal natural deduction proofs. The internal mechanics of the proof—such as which axioms were required or which sub-goals were bypassed—serve as a transparent, logical justification for the similarity score. This builds on earlier structural inference paradigms, such as the graph-based rule-chaining and approximate matching mechanisms developed by Eyal Shnarch et al. in Rule Chaining and Approximate Match in textual inference.
In a completely different modality, Tian Yu Liu et al. explore visual grounding in Conjuring Semantic Similarity. They measure the semantic similarity of textual prompts by analyzing the mathematical distance between the image generation processes (diffusion SDEs) they trigger, providing a visually grounded and diagnostic window into how a model perceives distinct concepts.
Key Foundational Work
Explaining Similarity of Terms (2008) — contributed 1 concept elements to this direction.
Measuring the Semantic Similarity of Texts (2005) — contributed 1 concept elements to this direction.
Sophia: A novel approach for Textual Case-based Reasoning (2005) — contributed 1 concept elements to this direction.