Papers › Topic Modeling in Embedding Spaces

Topic Modeling in Embedding Spaces

8 Jul 2019TACL 2020 1arXiv:1907.04907archive 2025-07-28

Adji B. Dieng, Francisco J. R. Ruiz, David M. Blei

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1907.04907")

Code

Syntology Ran 3 of 13 code samples harvested from 3 repositories linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · violated contract; 1 ran · our draft was wrong.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 10 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

adjidieng/ETM officialmentioned in papermentioned on GitHubpytorch report
adjidieng/DETM mentioned on GitHubpytorchMIT report
bahareharandizade/keyetm mentioned on GitHubpytorch report
bnosac/ETM mentioned on GitHubpytorchNOASSERTION report
cran/topicmodels.etm mentioned on GitHubpytorchNOASSERTION report
fumiyo0607/ETM mentioned on GitHubpytorchMIT report
hjzzang/ETM mentioned on GitHubpytorchMIT report
lffloyd/embedded-topic-model mentioned on GitHubMIT report
lfmatosm/embedded-topic-model mentioned on GitHubMIT report
migrationsKB/MGKB mentioned on GitHubpytorch report
yukisea/ETM mentioned on GitHubpytorch report
zll17/Neural_Topic_Models mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 3 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
1ran · our draft was wrong
10unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

contains_numeric adjidieng/ETM/scripts/data_20ng.py official repository ran · violated contract MIT (permissive) · 4a1ddf649b3c6fca · report
contains_punctuation adjidieng/ETM/scripts/data_20ng.py official repository ran · violated contract MIT (permissive) · 41dabfe9feb53af6 · report
remove_empty adjidieng/ETM/scripts/data_20ng.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b3318b8a57645f16 · report
create_bow_dataset lffloyd/embedded-topic-model/embedded_topic_model/utils/preprocessing.py community (archive-listed) unverified MIT (permissive) · f251c5fc43302f37 · report
create_etm_datasets lffloyd/embedded-topic-model/embedded_topic_model/utils/preprocessing.py community (archive-listed) unverified MIT (permissive) · a692c1d9b72b7a4e · report
get_batch fumiyo0607/ETM/data.py community (archive-listed) unverified MIT (permissive) · 979dc555a8df7690 · report
get_batch lffloyd/embedded-topic-model/embedded_topic_model/utils/data.py community (archive-listed) unverified MIT (permissive) · d0bc25d4fe5b2259 · report
get_data fumiyo0607/ETM/data.py community (archive-listed) unverified MIT (permissive) · cb6924aa7a38f376 · report
get_document_frequency fumiyo0607/ETM/utils.py community (archive-listed) unverified MIT (permissive) · bf0882a49ad15968 · report
get_document_frequency lffloyd/embedded-topic-model/embedded_topic_model/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 5c806f2fc9361a06 · report
get_topic_coherence lffloyd/embedded-topic-model/embedded_topic_model/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 285be6a543ea1959 · report
get_topic_diversity lffloyd/embedded-topic-model/embedded_topic_model/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 8158ac38282924d6 · report
nearest_neighbors fumiyo0607/ETM/utils.py community (archive-listed) unverified MIT (permissive) · 012ab4b07ace5799 · report

Tasks

Topic ModelsVariational InferenceWord Embeddings

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Topic Models 20NewsGroups ETM C_v 0.51 #4 of 6 Archive leaderboard report
Topic Models AG News ETM C_v 0.41 #4 of 6 Archive leaderboard report
Topic Models AG News ETM NPMI 0.02 #4 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Skip-gram Word2Vec

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections