Measuring Semantic Textual Similarity (STS)—how similar two sentences are—is a foundational challenge in Natural Language Processing (NLP). Traditionally, researchers have chosen between two paradigms: alignment-based approaches like Word Mover’s Distance (WMD), which offer interpretability but often lower performance, and sentence-vector approaches, which provide high accuracy through "black box" embeddings but lose word-level granularity.
In their EMNLP 2020 paper, researchers from Tohoku University and RIKEN bridge this gap with Word Rotator’s Distance (WRD). By rethinking the role of word vector properties, they created a method that is both highly interpretable and achieves state-of-the-art results. WRD improves sentence similarity by treating the norm of a word vector as its importance and the angle between vectors as its semantic difference.
The Limitation of Word Mover's Distance
The popular Word Mover’s Distance (WMD) uses the Earth Mover’s Distance (EMD) to calculate the minimum "cost" to transform one sentence into another by moving word points in Euclidean space. However, WMD relies on Euclidean distance as its cost function. In high-dimensional word vector space, Euclidean distance conflates two distinct pieces of information: word importance (encoded in the vector's norm) and word meaning (encoded in the vector's direction).
As illustrated above, WMD's sensitivity to vector length can lead to suboptimal alignments. For instance, it might match "noodle" with "snack" because they are closer in Euclidean space, even though "noodle" is more semantically related to "pho". The difference in "importance" (norm) between "noodle" and "pho" pushes them further apart in Euclidean distance, despite their similar semantic direction.
The Word Rotator’s Distance (WRD) Framework
To address these issues, the authors propose WRD, which treats each sentence as a discrete distribution on a unit hypersphere. This approach decouples the semantic signal from the importance signal through two key mechanisms:
- Probability Mass (Weight): Instead of uniform weighting, WRD uses the normalized norm of the word vector. Words with larger norms—typically content-heavy words—are assigned more "mass," reflecting their greater importance to the sentence's meaning.
- Transportation Cost: WRD replaces Euclidean distance with cosine distance ($1 - \cos \theta$). This represents the "rotation" required to align one word vector with another on the hypersphere, focusing purely on semantic direction.
Enhancing Vectors with the Vector Converter (VC)
To further refine performance, the authors introduced the Vector Converter (VC). This component "grows" or adjusts word vectors before the WRD calculation. It adapts denoising techniques from sentence-vector research—such as removing common components or scaling by frequency—and applies them to individual word vectors. This ensures that the norms and angles used in the Optimal Transport framework are as informative as possible.
Evaluation and Results
The researchers evaluated WRD across several standard English STS benchmarks, including STS’12–’15, the STS-Benchmark (STS-B), and SICK-R. The results demonstrated significant improvements:
- Superiority over WMD: On the STS-B dataset using GloVe embeddings, WRD + VC achieved a Pearson correlation of 77.56, a substantial jump from the 65.74 achieved by standard WMD.
- Competitive Performance: WRD + VC consistently outperformed or matched strong unsupervised baselines like SIF (Smooth Inverse Frequency) and even early contextualized models like ELMo.
- Interpretability: Unlike global sentence-vector methods, WRD maintains the alignment-based nature of EMD, allowing researchers to visualize exactly how words in one sentence correspond to words in another.
Conclusion
Word Rotator’s Distance demonstrates that the length of a word vector is a powerful proxy for importance, while its angle is the primary carrier of semantic meaning. By decoupling these properties within an Optimal Transport framework, WRD provides a robust, interpretable, and high-performing alternative to traditional text similarity measures. Future work includes integrating modern contextual embeddings and optimizing the computational complexity of the EMD solver for larger-scale applications.
Summary updated