[Paper Review] Word Mover's Embedding: From Word2Vec to Document Embedding
This paper proposes Word Mover's Embedding (WME), a novel unsupervised method that leverages Word Mover's Distance (WMD) to generate document and sentence embeddings by aligning words in semantic space using pre-trained word vectors. WME uses a random feature approximation of a positive-definite kernel derived from WMD, enabling efficient, scalable, and accurate document representations that outperform state-of-the-art methods on 9 text classification and 22 textual similarity benchmarks, with orders-of-magnitude speedup over WMD-based KNN.
While the celebrated Word2Vec technique yields semantically rich representations for individual words, there has been relatively less success in extending to generate unsupervised sentences or documents embeddings. Recent work has demonstrated that a distance measure between documents called \emph{Word Mover's Distance} (WMD) that aligns semantically similar words, yields unprecedented KNN classification accuracy. However, WMD is expensive to compute, and it is hard to extend its use beyond a KNN classifier. In this paper, we propose the \emph{Word Mover's Embedding } (WME), a novel approach to building an unsupervised document (sentence) embedding from pre-trained word embeddings. In our experiments on 9 benchmark text classification datasets and 22 textual similarity tasks, the proposed technique consistently matches or outperforms state-of-the-art techniques, with significantly higher accuracy on problems of short length.
Motivation & Objective
- To address the lack of effective unsupervised document and sentence embedding methods despite the success of Word2Vec for individual words.
- To overcome the high computational cost and limited applicability of Word Mover's Distance (WMD), which is restricted to KNN and K-means and not compatible with general machine learning models.
- To develop a flexible, efficient, and general-purpose framework that transforms pre-trained word embeddings into fixed-length, semantics-preserving document embeddings.
- To enable the use of WMD's semantic alignment capability in a broader range of downstream tasks beyond KNN classification.
Proposed method
- Construct a positive-definite kernel using an infinite-dimensional feature map derived from Word Mover's Distance (WMD) applied to random documents from a given distribution.
- Apply a Random Features approximation to the WMD-based kernel to derive a low-dimensional, continuous vector representation (WME) that approximates exact kernel computations.
- Use the resulting WME vectors as fixed-length embeddings for sentences or documents, enabling compatibility with standard machine learning models like linear classifiers.
- Leverage pre-trained word embeddings (e.g., Word2Vec, GloVe) as the semantic space for WMD computation, ensuring alignment of semantically similar words across documents.
- Integrate TF-IDF weighting into the WME framework to emphasize important words and improve performance on short-text tasks.
- Ensure the method is fully parallelizable and extensible by allowing replacement of Word2Vec and WMD with other word embedding or distance techniques (e.g., S-WMD, GloVe).
Experimental results
Research questions
- RQ1Can we transform the computationally expensive Word Mover's Distance (WMD) into a scalable, fixed-length document embedding suitable for general machine learning models?
- RQ2Can a kernel derived from WMD via random feature approximation preserve semantic structure while enabling efficient inference?
- RQ3Does the proposed Word Mover's Embedding (WME) achieve state-of-the-art performance on text classification and textual similarity tasks compared to existing unsupervised and supervised methods?
- RQ4To what extent does WME outperform or match the accuracy of KNN-WMD while reducing computational cost?
Key findings
- WME consistently matches or outperforms state-of-the-art methods on 9 benchmark text classification datasets, with significantly higher accuracy on short-text tasks.
- On 22 textual similarity tasks, WME achieves performance comparable to strong supervised models like LSTM and RNN, and surpasses unsupervised methods such as Skip-Thought and nbow by 10% to 33% in Pearson correlation scores.
- WME achieves the same testing accuracy as KNN-WMD but reduces computational cost from cubic to linear in document length and from quadratic to linear in the number of samples.
- WME outperforms the SIF method on STS'12 and achieves competitive performance on other STS tasks, demonstrating strong generalization without fine-tuning.
- The method is highly efficient and scalable, enabling full parallelization and deployment in diverse NLP pipelines beyond KNN classification.
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.