Scalable Deep Poisson Factor Analysis for Topic Modeling

Zhe Gan, Changyou Chen, Ricardo Henao, David E. Carlson, Lawrence Carin

Introduction

Traditional topic models, most notably Latent Dirichlet Allocation (LDA), are often "shallow," assuming topics are either independent or follow simple correlations. However, real-world language is inherently hierarchical and complex—a document about "Machine Learning" is highly likely to also involve "Statistics" and "Optimization."

While "deep" hierarchical models exist (such as the nested Dirichlet Process), they are frequently restricted to rigid tree structures or struggle to scale to the "Big Data" regime. This paper tackles a critical challenge: How can we build a deep generative model that captures high-order topic interactions while remaining computationally efficient enough for millions of documents?

To address this, the authors introduce Deep Poisson Factor Analysis (DPFA), a framework that marries traditional topic modeling with deep learning by using deep binary hierarchies (like Sigmoid Belief Networks) as priors for topic selection. By leveraging advanced stochastic Bayesian inference, DPFA captures complex, multi-layered topic correlations and scales effortlessly to massive datasets like the 10-million-document Wikipedia corpus.

Methodology: Deep Poisson Factor Analysis

The DPFA architecture consists of two main components that work in tandem to model document word counts and latent topic structures.

Graphical model of Deep Poisson Factor Analysis
  1. The Bottom Layer (Poisson Factor Analysis): Unlike LDA, which relies on a Dirichlet distribution, PFA models word counts using a Poisson distribution. It represents a document as a combination of topics, where a binary "switch" determines which topics are active.
  2. The Deep Prior (SBN or RBM): Instead of choosing topics independently, the authors use a Sigmoid Belief Network (SBN) or a Restricted Boltzmann Machine (RBM) as a multi-layer prior. This deep hierarchy learns how topics relate to one another. For example, a top-layer "Politics" node might activate mid-layer "Elections" and "Policy" nodes, which in turn activate specific word-level topics.

Scalable Inference

To make this architecture viable for massive datasets, the authors bypass traditional, slow MCMC sampling. Instead, they utilize and extend two stochastic algorithms:

  • Bayesian Conditional Density Filtering (BCDF): An online approach that processes data efficiently in mini-batches.
  • Stochastic Gradient Nose-Hoover Thermostats (SGNHT): The authors specifically extend SGNHT by introducing multiple thermostat variables. This modification helps the system maintain a constant "temperature" across high-dimensional parameter spaces, preventing the algorithm from getting stuck in local optima and significantly speeding up convergence.

Key Insights

  • "Explaining Away" in SBNs: The authors argue that SBNs (directed models) are superior to RBMs (undirected models) for this task. SBNs naturally handle the "explaining away" effect, leading to more compact and interpretable latent representations.
  • Beyond the Tree: Unlike previous hierarchical models that force topics into a strict tree, DPFA allows for more flexible, overlapping correlations. A single topic can be influenced by multiple high-level concepts.
  • Automatic Sparsity: By using Student’s $t$ priors on the weights, the model can effectively "shut off" unnecessary hidden units, allowing the data to dictate the complexity of the hierarchy.

Experiments and Results

The model was evaluated on three standard but increasingly large corpora: 20 Newsgroups (~18.8k documents), RCV1-v2 (~800k documents), and Wikipedia (~10 million documents).

Perplexity performance across different datasets and iterations
  • Superior Perplexity: DPFA-SBN consistently achieved lower (better) test perplexity than LDA, Replicated Softmax Models (RSM), and nested Hierarchical Dirichlet Processes (nHDP). On the 20 Newsgroups dataset, DPFA reached a perplexity of 827, significantly outperforming LDA's 893.
  • Depth is Beneficial: The experiments demonstrated that adding layers (moving from 1 to 3 layers) consistently improved the model's ability to predict held-out text.
  • Massive Scalability: The model successfully processed the 10M document Wikipedia corpus, showing a smooth improvement in performance as it "saw" more data—a feat that would be prohibitively slow for standard Bayesian topic models.
  • Structured Visualizations: The learned correlations produced intuitive subgraphs, grouping topics into clear categories like "Sports," "Computers," and "Politics/Law" based on their deep-layer connections.

Limitations and Future Work

While highly effective, the approach has some limitations. The SGNHT algorithm, though robust, still requires careful tuning of hyperparameters like step size and injected noise variance. Additionally, the current work is purely unsupervised. The authors suggest that extending this to a supervised version—where the deep binary features are used to predict document labels—is a promising next step. Finally, while sparsity priors help, choosing the optimal initial number of hidden units per layer remains an area for further automation.

Summary updated

BibTeX
@inproceedings{gan2015scalable,
  author = {Zhe Gan and Changyou Chen and Ricardo Henao and David E. Carlson and Lawrence Carin},
  title = {{Scalable Deep Poisson Factor Analysis for Topic Modeling}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
}
Figure