Topic Modeling in Embedding Spaces
About
Topic modeling analyzes documents to learn meaningful patterns of words. However, existing topic models fail to learn interpretable topics when working with large and heavy-tailed vocabularies. To this end, we develop the Embedded Topic Model (ETM), a generative model of documents that marries traditional topic models with word embeddings. In particular, it models each word with a categorical distribution whose natural parameter is the inner product between a word embedding and an embedding of its assigned topic. To fit the ETM, we develop an efficient amortized variational inference algorithm. The ETM discovers interpretable topics even with large vocabularies that include rare words and stop words. It outperforms existing document models, such as latent Dirichlet allocation (LDA), in terms of both topic quality and predictive performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text Classification | Yelp (5-fold cross-validation) | Accuracy68.6 | 36 | |
| Text Classification | SMS Spam Collection (5-fold cross-validation) | Accuracy86.4 | 36 | |
| Text Classification | Newsgroup Science (5-fold cross-validation) | Accuracy0.297 | 36 | |
| Text Classification | Newsgroup Religion (5-fold cross-validation) | Accuracy40.4 | 36 | |
| Text Classification | Drug Review Norethindrone (5-fold cross-validation) | Accuracy45.2 | 36 | |
| Text Classification | Drug Review Norgestimate (5-fold cross-validation) | Accuracy49.6 | 36 | |
| Topic Coherence | 20News | NPMI0.06 | 26 | |
| Topic Modeling | 20NG | NPMI0.066 | 23 | |
| Topic Modeling | Newsgroup Science | Cv0.469 | 18 | |
| Topic Modeling | Newsgroup Religion | Cv0.422 | 18 |