NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Representing Mixtures of Word Embeddings with Mixtures of Topic Embeddings

dongsheng wang, Dan dan Guo, He Zhao, Huangjie Zheng, Korawat Tanwisuth, Bo Chen, Mingyuan Zhou

TL;DR

The "WeTe" (Word-embedding Topic-embedding) framework reimagines topic modeling by treating documents and topics as distributions in a shared continuous embedding space rather than discrete word counts. By minimizing the "Conditional Transport" distance between word and topic embeddings, the model achieves state-of-the-art performance in discovering coherent topics, especially in challenging short-text scenarios.

What Problem Does This Paper Address?

Traditional topic models, like Latent Dirichlet Allocation (LDA), are built on the "bag-of-words" assumption, where documents are represented by word frequency counts. This approach faces two major hurdles:

  1. Short-Text Sparsity: In short documents (like tweets or headlines), words rarely co-occur frequently enough for the model to learn meaningful patterns.
  2. Inference Complexity: Bayesian models often require slow, complex sampling (Gibbs sampling) or approximations that don't scale well to massive datasets.

While Neural Topic Models (NTMs) have improved scalability using Variational Autoencoders (VAEs), they often struggle with the mathematical "reparameterization trick" required for the probability distributions (like Dirichlet or Gamma) typically used in topic modeling.

Methods

The authors introduce WeTe, which moves away from the generative process of "picking words from a bucket" and instead focuses on distribution matching in an embedding space.

  • Shared Embedding Space: Both words and topics are represented as vectors in the same $H$-dimensional space. A document is viewed as an empirical distribution of its constituent word embeddings.
  • Conditional Transport (CT): Instead of using standard Optimal Transport (which can be computationally heavy and requires iterative solvers like Sinkhorn), the authors use Conditional Transport. This is a bidirectional framework that measures:
  • Topic-to-Doc: How likely a topic embedding is to be "transported" to a specific word in the document.
  • Doc-to-Topic: How well the document's words are covered by the chosen topics.
  • Hybrid Loss Function: The model optimizes a joint objective: the CT loss (to ensure semantic alignment) and a Poisson factor analysis likelihood (to regularize the document representations).
  • Neural Architecture: It uses a Weibull-based encoder network, which is easily reparameterizable, allowing for efficient training via mini-batch stochastic gradient descent.

Datasets

The model was evaluated on six diverse text datasets, ranging from long-form articles to very short snippets:

  • Regular/Long Text: 20 News Group (20NG), Reuters, and the massive RCV2 (over 800k documents).
  • Short Text: DBpedia (DP), Web Snippets (WS), and Tag My News (TMN).
  • Benchmarks: The authors compared WeTe against traditional BPTMs (LDA, PFA), VAE-based models (DVAE, ETM), and other transport-based models (NSTM).

Key Insights and Ideas

  • Bypassing the Generative Burden: By treating topic modeling as a transport problem between distributions, the authors avoid the need for complex sampling schemes or restrictive prior distributions.
  • Semantic vs. Vocabulary Space: Traditional models operate in $V$-dimensional space (where $V$ is the vocabulary size, often 20k+). WeTe operates in a much smaller $H$-dimensional embedding space (e.g., 300), which naturally captures semantic relationships (e.g., "king" is near "queen") even if words don't co-occur.
  • The Power of Bidirectionality: The bidirectional nature of CT ensures a "coverage" property. The model is forced to find topics that cover the word space of the corpus while ensuring every word in a document can be explained by at least one topic.
  • Flexibility with Embeddings: WeTe can use pre-trained embeddings (like GloVe) to leverage external knowledge, which is a "cheat code" for understanding short texts where internal context is missing.

Key Results

Topic Coherence (TC) and Topic Diversity (TD) across different datasets.
  • Topic Quality: As shown in the charts above, WeTe consistently produced higher Topic Coherence (TC) and Topic Diversity (TD) than baselines. It was particularly dominant on short-text datasets like Web Snippets (WS).
Clustering performance (Purity and NMI) of WeTe versus baseline methods.
  • Clustering Performance: In K-Means clustering tasks (using Purity and NMI metrics), WeTe outperformed NTMs and traditional LDA across almost all datasets. For example, on the 20NG dataset, the WeTe(N) variant achieved a clustering purity of 70.2% compared to LDA's 59.2%.
  • Scalability: The model demonstrated a competitive training speed and lower iteration requirements compared to other neural models like DVAE, making it viable for large-scale industrial applications.

Limitations and Future Work

  • Hyperparameter Sensitivity: The model relies on a trade-off parameter ($\epsilon$) between the transport loss and the likelihood loss. While the paper shows how to tune it, the optimal value may vary significantly between datasets.
  • Embedding Dependency: While the model can learn embeddings from scratch, its best performance often relies on high-quality pre-trained word embeddings.
  • Vocabulary Constraints: Although more flexible than LDA, the current implementation still assumes a fixed vocabulary during training to define the word embedding matrix.

The code for WeTe is available at: https://github.com/BoChenGroup/WeTe

Summary updated

BibTeX
@inproceedings{wang2022representing,
  author = {dongsheng wang and Dan dan Guo and He Zhao and Huangjie Zheng and Korawat Tanwisuth and Bo Chen and Mingyuan Zhou},
  title = {{Representing Mixtures of Word Embeddings with Mixtures of Topic Embeddings}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=IYMuTbGzjFU},
}
Figure