Improving Topic Coherence with Regularized Topic Models

David Newman, Edwin V. Bonilla, Wray L. BuntineNeurIPS 2011

TL;DR

Standard topic models like Latent Dirichlet Allocation (LDA) often produce "word salad" when trained on small or noisy datasets, such as tweets or search snippets. This paper introduces two regularization techniques—QUAD-REG and CONV-REG—that leverage external knowledge (like Wikipedia) to nudge models toward producing semantically coherent topics that humans actually find useful.

The Problem: Data Hunger and "Word Salad"

Topic modeling is a powerful tool for organizing massive text collections, but it suffers from a "data hunger" problem. When you feed LDA a large, well-written corpus (like scientific abstracts), it works beautifully. However, when the text is sparse, informal, or noisy—think blog posts or web search snippets—the resulting topics often lack coherence. You might get a topic that mixes "Obama" and "Paris Hilton" simply because they happened to appear in the same small sample of noisy data.

The authors aim to fix this by incorporating external semantic knowledge. The goal is to ensure that the words grouped into a topic are not just statistically related in a tiny dataset, but are semantically related in the broader context of the English language.

Methods: Guiding Models with External Knowledge

The authors propose two Bayesian regularization frameworks that move beyond the standard Dirichlet priors used in LDA. Both methods rely on a word-pair dependency matrix ($C$) calculated from a massive external corpus (e.g., 3 million Wikipedia articles) using Pointwise Mutual Information (PMI).

  1. QUAD-REG (Quadratic Regularizer): This method adds a quadratic term to the log-posterior of the model. It essentially penalizes the model if it assigns a high probability to words in a topic that don't frequently co-occur in the external "knowledge" corpus. Unlike previous "correlated" models, this doesn't require inverting large matrices, making it computationally efficient.
  2. CONV-REG (Convolved Dirichlet Regularizer): This approach treats each topic as a "mixture" of word probabilities. It "convolves" the topic distribution with the dependency matrix $C$, effectively spreading probability mass from a word to its semantically related neighbors.

In both cases, the authors use a semi-collapsed Gibbs sampler to perform inference, allowing the model to learn from the local data while being guided by the global "common sense" of the external data.

Datasets

The researchers evaluated their models on 13 different datasets categorized into three types:

  • Blogs: Five datasets derived from 7M blog posts, focusing on specific queries like "Obama" or "Beijing Olympics."
  • News: Four datasets from 1M news articles, covering topics like "legal" and "healthcare."
  • Web: Four datasets consisting of Google search result snippets.
  • External Knowledge Bases: To build the matrix $C$, they used the full 1M News articles, a subset of the 7M blogs, and the entire 3M-article English Wikipedia.

Key Insights

  • External Data as a "Prior": The core insight is that we don't need to learn everything from scratch for every small dataset. By using Wikipedia as a proxy for "how words usually relate," we can prevent the model from getting distracted by coincidental co-occurrences in noisy data.
  • PMI as the Gold Standard: The authors lean heavily on the discovery that PMI-Score (an automated metric) correlates very highly with human judgments of topic quality. By explicitly designing regularizers to optimize for PMI-related structures, they bridge the gap between machine learning objectives and human interpretability.
  • Efficiency Matters: Previous attempts to add word correlations to LDA were mathematically elegant but computationally heavy. By using quadratic forms and convolutions, these regularizers stay fast enough for practical use.

Key Results

The regularized models consistently outperformed standard LDA across both automated metrics and human studies.

PMI-Score and Test Perplexity comparison across blog datasets
  • Coherence (PMI-Score): Both QUAD-REG and CONV-REG showed significant improvements in PMI-Scores across nearly all 13 datasets. The gains were most dramatic in the "Web" datasets, where the data was sparsest.
  • Human Evaluation: Using Amazon Mechanical Turk, the authors found that humans preferred QUAD-REG topics 57% of the time, compared to only 37% for LDA (with the remainder being "can't decide").
  • Perplexity: Surprisingly, the regularized models often achieved lower (better) test perplexity than LDA. This means the external knowledge didn't just make the topics "prettier"—it actually helped the model predict unseen data more accurately.

Limitations and Future Work

  • Hyperparameter Tuning: The models introduce new parameters that control the strength of the regularization. Finding the "sweet spot" for these parameters currently requires some manual experimentation.
  • Scaling to Large Datasets: While more efficient than previous methods, the semi-collapsed Gibbs sampler might still face bottlenecks when applied to truly massive, high-velocity data streams.
  • The "Choice" of External Data: The results depend on the quality and relevance of the external corpus used to build the matrix $C$. If the external data is biased or irrelevant to the target domain, the regularization might actually hurt performance.

Future work could involve applying these techniques to even larger, noisier collections and refining the inference process for better scalability.

Summary updated

BibTeX
@inproceedings{newman2011improving,
  author = {David Newman and Edwin V. Bonilla and Wray L. Buntine},
  title = {{Improving Topic Coherence with Regularized Topic Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2011},
  url = {https://openreview.net/forum?id=HyNssuW_-r},
}
Figure