[Paper Review] Word Embedding based Edit Distance
This paper proposes Word Embedding based Edit Distance (WED), a novel unsupervised method that integrates word embeddings into traditional edit distance to improve text similarity calculation. By using word embeddings to compute substitution, insertion, and deletion costs, WED achieves state-of-the-art performance on three benchmark datasets, outperforming existing unsupervised methods and matching supervised models with limited labeled data.
Text similarity calculation is a fundamental problem in natural language processing and related fields. In recent years, deep neural networks have been developed to perform the task and high performances have been achieved. The neural networks are usually trained with labeled data in supervised learning, and creation of labeled data is usually very costly. In this short paper, we address unsupervised learning for text similarity calculation. We propose a new method called Word Embedding based Edit Distance (WED), which incorporates word embedding into edit distance. Experiments on three benchmark datasets show WED outperforms state-of-the-art unsupervised methods including edit distance, TF-IDF based cosine, word embedding based cosine, Jaccard index, etc.
Motivation & Objective
- To address the high cost of creating labeled data for supervised text similarity models.
- To improve unsupervised text similarity by integrating word embeddings into edit distance.
- To develop a method that generalizes traditional edit distance and Jaccard index while maintaining simplicity and effectiveness.
- To evaluate the method's performance against state-of-the-art unsupervised and supervised approaches on standard benchmarks.
Proposed method
- WED extends standard edit distance by replacing exact word matching with word embedding-based similarity for substitution, insertion, and deletion operations.
- Substitution cost is computed using cosine similarity between word embeddings, enabling semantic matching beyond lexical identity.
- Insertion and deletion costs are derived from the average embedding similarity of neighboring words, incorporating contextual information.
- The method uses dynamic programming to compute the minimum total cost of transforming one string into another, with costs based on both word identity and embedding similarity.
- A hyperparameter λ controls the balance between local word matching and context-aware similarity in cost computation.
- The approach generalizes edit distance and Jaccard index as special cases when embedding similarity is set to 0 or 1.
Experimental results
Research questions
- RQ1Can integrating word embeddings into edit distance improve unsupervised text similarity beyond traditional symbolic methods?
- RQ2How does WED compare in performance to existing unsupervised methods like TF-IDF, Jaccard, and word embedding cosine similarity?
- RQ3To what extent does WED’s performance approach that of supervised deep learning models with limited labeled data?
- RQ4What is the contribution of word embeddings and contextual information to WED’s performance?
Key findings
- WED achieves the highest performance among all unsupervised methods on the Quora, MSRP, and CPC datasets, with F1 scores of 0.718, 0.728, and 0.672 respectively.
- WED significantly outperforms edit distance (p < 0.01), TF-IDF (p < 0.01), Jaccard (p < 0.01), and word embedding cosine (p < 0.01) on all three datasets.
- The t-test results confirm that WED’s improvement over baseline methods is statistically significant, with p-values ranging from 84% to 99%.
- WED performs comparably to supervised models like BOW+3 layer and LSTM+3 layer when only 30k labeled examples are available.
- Ablation studies show that both word embeddings and context-aware comparison contribute meaningfully to performance, with -Embedding and -Context variants showing lower accuracy.
- Error analysis reveals that keyword indistinction (50%), word embedding inaccuracy (18%), and syntactic structure neglect (16%) are major error sources.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.