Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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.

Matheus Werner, Eduardo Laber• 2019

Related benchmarks

TaskDatasetResultRank
Text CategorizationAmazon (test)
Test Error6.98
14
Text CategorizationTwitter (test)
Classification Error28.95
14
Text CategorizationRECIPE (test)
Classification Error Rate43.2
14
Text CategorizationOhsumed (test)
Test Error41.26
14
Text CategorizationBBCSPORT (test)
Test Error4.82
14
Text CategorizationReuters (test)
Classification Error4.39
14
Document Classification20NEWS preprocessed (test)
Runtime (min)13.4
5
Document ClassificationAMAZON preprocessed (test)
Runtime (min)4.47
5
Document ClassificationBBCSPORT preprocessed (test)
Runtime (min)0.27
5
Document ClassificationCLASSIC preprocessed (test)
Runtime (min)2.26
5
Showing 10 of 20 rows

Other info

Code

Follow for update