Speeding up Word Mover's Distance and its variants via properties of distances between embeddings

Matheus Werner, Eduardo Laber
12/1/2019
cs.CLcs.LG

Official code: matwerner/fast-wmd (16 stars, C++, MIT, last commit 2023-07-11).

Abstract

The Word Mover's Distance (WMD) proposed by Kusner et al. is a distance between documents that takes advantage of semantic relations among words that are captured by their embeddings. This distance proved to be quite effective, obtaining state-of-art error rates for classification tasks, but is also impracticable for large collections/documents due to its computational complexity.

Show full abstract

For circumventing this problem, variants of WMD have been proposed. Among them, Relaxed Word Mover's Distance (RWMD) is one of the most successful due to its simplicity, effectiveness, and also because of its fast implementations. Relying on assumptions that are supported by empirical properties of the distances between embeddings, we propose an approach to speed up both WMD and RWMD. Experiments over 10 datasets suggest that our approach leads to a significant speed-up in document classification tasks while maintaining the same error rates.

View on arXivView PDF

Code Implementations(1)

matwerner/fast-wmdOfficial100%
MIT
163C++, PythonNov 14, 20193 years agoMIT

Similar Papers

Cite this paper

@article{werner2019speeding,
  title  = {Speeding up Word Mover's Distance and its variants via properties of distances between embeddings},
  author = {Matheus Werner and Eduardo Laber},
  year   = {2019},
  eprint = {1912.00509},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.00509}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1912.00509.svg)](https://codeofpaper.com/paper/1912.00509)

Discussion