Variable Selection for Latent Dirichlet Allocation

Dongwoo Kim, Yeonseung Chung, Alice OharXiv 2012

Abstract

Topic modeling via Latent Dirichlet Allocation (LDA) frequently suffers from vocabulary noise, where common or irrelevant words dilute the interpretability of topics. This paper presents vsLDA, an extension of LDA that integrates automatic variable selection. By assigning words to either topic-specific distributions or a global background distribution, vsLDA effectively filters noise, leading to more stable, discriminative topics and improved classification accuracy across diverse datasets.

Introduction

In traditional Latent Dirichlet Allocation (LDA), every topic is defined as a probability distribution over the entire vocabulary. This approach is inherently flawed because most vocabularies contain significant "noise"—words that appear frequently across many contexts without contributing to the specific meaning of any single topic.

The standard remedy involves pre-processing steps like manual stopword removal and frequency-based filtering. However, these methods are often arbitrary and may inadvertently remove informative domain-specific terms or retain non-informative ones. The authors argue for a model that learns the relevance of words simultaneously with topic discovery, allowing the vocabulary to be dynamic rather than fixed a priori.

Methodology: The vsLDA Framework

The core innovation of vsLDA is the introduction of a word selection variable, $s_j$, for each word $j$ in the vocabulary.

  • Indicator Variable: $s_j$ is a binary variable (1 for informative, 0 for non-informative) following a Bernoulli distribution.
  • Generative Process: If $s_j=1$, the word is drawn from standard topic-word distributions. If $s_j=0$, it is drawn from a single, global "background" distribution ($\psi$).
  • Inference: To handle the increased complexity, the authors employ a hybrid Markov Chain Monte Carlo (MCMC) approach, combining collapsed Gibbs sampling for topic assignments with a Metropolis-Hastings step for updating word selection variables.
Comparison of topic distributions across different LDA models, showing how vsLDA isolates informative features.

This mechanism effectively "shrinks" the simplex for each topic, forcing the model to ignore words that do not help explain the underlying topical structure of the corpus.

Key Insights and Empirical Analysis

The authors evaluated vsLDA on three corpora: 20 Newsgroups (20NG), NIPS abstracts, and SigGraph abstracts. Several key insights emerged:

The Background "Sink"

By providing a dedicated distribution ($\psi$) for non-informative words, vsLDA creates a "sink" for noise. This prevents common words from "bleeding" into specific topics, which often happens in standard LDA. In the NIPS dataset, vsLDA correctly identified 91% of standard stopwords as non-informative and also flagged domain-specific noise like "learning" and "feature."

Word Characteristics: ctf-idf vs. rdf

A significant finding was the relationship between a word's informativeness and its statistical properties. Informative words typically exhibit high corpus term frequency-inverse document frequency ($ctf-idf$) and low relative document frequency ($rdf$).

Scatter plots showing the separation of informative (I) and non-informative (NI) words based on ctf-idf and document frequency across three datasets.

As shown in the figure above, informative words (red squares) tend to cluster in areas of high $ctf-idf$ and low document frequency, meaning they appear frequently but only within a specific subset of documents.

Results

  • Classification Accuracy: vsLDA consistently outperformed symmetric and asymmetric LDA variants in document classification on the 20NG dataset.
  • Vocabulary Reduction: The model is highly efficient; on the NIPS dataset, it categorized 86% of the vocabulary as non-informative while maintaining or improving predictive power on held-out data.
  • Stability: Unlike asymmetric LDA, which can produce inconsistent "minor" topics across different runs, vsLDA showed high stability. The variable selection acts as a regularizer, ensuring that MCMC chains converge to consistent topical structures.

Conclusion

vsLDA offers a robust, automated alternative to manual stopword removal. While it introduces some computational overhead due to the Metropolis-Hastings step, the gains in topic clarity and model stability are substantial. Future work may extend this variable selection logic to online learning environments and other domains like image segmentation, where distinguishing signal from noise is equally critical.

Summary updated

BibTeX
@misc{kim2012variable,
  author = {Dongwoo Kim and Yeonseung Chung and Alice Oh},
  title = {{Variable Selection for Latent Dirichlet Allocation}},
  year = {2012},
  eprint = {1205.1053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1205.1053},
}
Figure