Abstract
Traditional topic modeling frameworks, such as Latent Dirichlet Allocation (LDA), rely on generative processes that often struggle with the data sparsity inherent in short-form text and the computational complexity of inference. This paper introduces WeTe (Word-embedding Topic-embedding), a geometric approach to topic modeling. By representing documents and topics as distributions within a shared embedding space and utilizing bidirectional Conditional Transport (CT), WeTe minimizes the semantic distance between word and topic representations. Experimental results across six diverse datasets demonstrate that WeTe significantly outperforms existing neural topic models in coherence, diversity, and clustering accuracy, particularly in short-text scenarios and large-scale applications.
Introduction
Topic modeling has long been dominated by the generative paradigm, where documents are viewed as mixtures of latent topics that, in turn, generate observed words. While effective for long-form documents, this approach faces two primary hurdles: the "sparsity problem" in short texts (where word co-occurrence is minimal) and the "inference bottleneck" caused by complex sampling or variational approximations.
WeTe proposes a shift from generation to geometric alignment. Instead of asking how a topic generates a word, WeTe treats documents and topics as clouds of points in a pretrained embedding space (e.g., GloVe). By framing topic discovery as an optimal transport problem, the model leverages external semantic knowledge to bridge the gap in sparse data environments.
Methodology
The Geometric View
In the WeTe framework, a document is represented as an empirical distribution of its constituent word embeddings. Correspondingly, a set of $K$ topics is represented as a set of trainable embedding vectors residing in the same semantic space. This shared geometry allows the model to measure the "cost" of representing a document through a specific set of topics.
Bidirectional Conditional Transport (CT)
To learn meaningful topics, WeTe employs a bidirectional transport mechanism:
- Doc-to-Topic Transport: This ensures that every word present in a document is "covered" or explained by at least one topic center. It minimizes the distance from word embeddings to their nearest topic embeddings.
- Topic-to-Doc Transport: This ensures that if a topic is assigned to a document, it must be semantically relevant to the words actually present. This prevents the model from assigning generic or irrelevant topics to a specific text.
Architecture and Optimization
WeTe is implemented as a Variational Autoencoder (VAE) utilizing a Weibull encoder. This choice of distribution allows the model to leverage the "reparameterization trick," enabling efficient optimization via Stochastic Gradient Descent (SGD). The final objective function is a hybrid loss that combines the bidirectional transport cost with a Poisson likelihood loss, balancing the geometric alignment with traditional document reconstruction goals.
Experimental Evaluation
Datasets
The authors evaluated WeTe on a spectrum of text lengths and dataset sizes:
- Long-form Text: 20 News Groups (20NG), Reuters, and RCV2 (a massive corpus of 800,000+ documents).
- Short-form Text: DBpedia (DP), Web Snippets (WS), and Tag My News (TMN).
Performance Metrics
The model was assessed on Topic Coherence (how semantically related the top words in a topic are) and Topic Diversity (how distinct topics are from one another). Additionally, the model's utility for downstream tasks was measured via K-Means clustering using Purity and Normalized Mutual Information (NMI).
Key Insights
Overcoming Sparsity
By utilizing pretrained embeddings, WeTe incorporates "external knowledge" that traditional models lack. Even if two words never co-occur in a short snippet (like a tweet), the model recognizes their relationship if their embeddings are proximal in the vector space. This allows WeTe to maintain high performance on datasets like Web Snippets, where it achieved a clustering purity of ~59%, compared to ~42% for the nearest neural competitor (NSTM).
Scalability and Interpretability
Because WeTe relies on mini-batch gradient descent rather than complex Gibbs sampling, it scales seamlessly to large datasets like RCV2. Qualitatively, t-SNE visualizations of the learned topic space reveal that WeTe identifies distinct "concept centers." For instance, a query for "desktop" yields diverse but semantically anchored topics covering hardware, software, and file systems, whereas baseline models often produce repetitive or overlapping clusters.
Conclusion
WeTe represents a significant departure from generative topic modeling by prioritizing geometric alignment in embedding spaces. The use of bidirectional Conditional Transport allows the model to capture nuanced semantic relationships that are often lost in traditional co-occurrence-based models. While the current implementation relies on inner-product distance, the framework is extensible to other metrics and data modalities, such as image or recommendation system embeddings, offering a robust path forward for multi-modal mixture modeling.
Summary updated