Speeding up Word Mover's Distance and its variants via properties of distances between embeddings
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text Categorization | Amazon (test) | Test Error6.98 | 14 | |
| Text Categorization | Twitter (test) | Classification Error28.95 | 14 | |
| Text Categorization | RECIPE (test) | Classification Error Rate43.2 | 14 | |
| Text Categorization | Ohsumed (test) | Test Error41.26 | 14 | |
| Text Categorization | BBCSPORT (test) | Test Error4.82 | 14 | |
| Text Categorization | Reuters (test) | Classification Error4.39 | 14 | |
| Document Classification | 20NEWS preprocessed (test) | Runtime (min)13.4 | 5 | |
| Document Classification | AMAZON preprocessed (test) | Runtime (min)4.47 | 5 | |
| Document Classification | BBCSPORT preprocessed (test) | Runtime (min)0.27 | 5 | |
| Document Classification | CLASSIC preprocessed (test) | Runtime (min)2.26 | 5 |