Deep Latent Dirichlet Allocation with Topic-Layer-Adaptive Stochastic Gradient Riemannian MCMC

Yulai Cong, Bo Chen, Hongwei Liu, Mingyuan Zhou

Introduction

Deep discrete latent variable models (LVMs), such as the Poisson Gamma Belief Network (PGBN), are powerful tools for unsupervised learning, capable of capturing hierarchical structures in data. For instance, they can identify specific topics like "Berlin" at lower layers and broader concepts like "European Politics" at higher layers. However, these models face two major hurdles: scalability and the "learning rate nightmare." Standard Gibbs sampling requires processing entire datasets at once, which is infeasible for massive corpora. Meanwhile, Stochastic Gradient MCMC (SG-MCMC) introduces the challenge of manually tuning learning rates for different layers and topics, where a step size suitable for one layer may be disastrous for another.

Methodology: From PGBN to DLDA

To address these challenges, this research introduces Deep Latent Dirichlet Allocation (DLDA), a mathematical re-representation of the PGBN. This new formulation allows for the marginalization of certain variables, clarifying the underlying geometry of the model.

Central to the proposed approach is the derivation of an analytical, block-diagonal Fisher Information Matrix (FIM). The FIM describes the local curvature of the model's parameter space. Leveraging this, the authors developed Topic-Layer-Adaptive Stochastic Gradient Riemannian (TLASGR) MCMC. This algorithm uses the inverse of the FIM to precondition gradients, automatically calculating unique, adaptive step sizes for every topic in every layer.

Evolution of layer-adaptive step sizes during training, showing automatic differentiation between layers.

Furthermore, the model parameters are constrained to a simplex (non-negative and summing to one). While "reduced-mean" parameterization was previously considered unstable, the authors discovered that FIM preconditioning makes it highly stable and efficient.

Experimental Results

The researchers evaluated TLASGR MCMC on four diverse datasets: 20Newsgroups, RCV1 (804,414 documents), Wikipedia (10 million documents), and MNIST.

Speed and Convergence

On the RCV1 and Wikipedia datasets, TLASGR MCMC converged significantly faster than standard Gibbs sampling. While Gibbs sampling struggled to complete a single iteration on the full Wikipedia set, the mini-batch based TLASGR was already producing high-quality topics.

Perplexity vs. Time for DLDA on 20News, RCV1, and Wikipedia datasets, comparing TLASGR with other MCMC methods.

Performance and Interpretability

DLDA trained with TLASGR achieved lower (better) perplexity scores compared to shallow models like standard LDA and other deep competitors. Qualitatively, visualizations of Wikipedia topics revealed clear, interpretable hierarchies. For example, a top-layer node for "Music & Song" branched into "Song & Band" and "Music, Piano, & Theatre" at the middle layer, which further refined into specific terms like "Track," "Rock," and "Opera" at the bottom.

Conclusion

The success of TLASGR MCMC highlights that understanding the geometry of a model—specifically through the Riemannian manifold—obviates the need for manual learning rate tuning. The algorithm naturally learns that higher layers in a deep topic model prefer larger step sizes to converge efficiently. Future work may involve extending this FIM-based approach to other deep architectures and integrating it with advanced SG-MCMC techniques like Hamiltonian methods.

Summary updated

BibTeX
@inproceedings{cong2017deep,
  author = {Yulai Cong and Bo Chen and Hongwei Liu and Mingyuan Zhou},
  title = {{Deep Latent Dirichlet Allocation with Topic-Layer-Adaptive Stochastic Gradient Riemannian MCMC}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure