Deep Autoencoding Topic Model With Scalable Hybrid Bayesian Inference

Hao Zhang, Bo Chen, Yulai Cong, Dandan Guo, Hongwei Liu, Mingyuan Zhou

TL;DR

This paper introduces the Deep Autoencoding Topic Model (DATM) and its supervised variant (sDATM) for document analysis. DATM combines a deep generative topic model with a novel Weibull-based variational encoder for efficient, scalable inference, enabling more interpretable hierarchical topic representations. sDATM further extends this by jointly modeling documents and their labels for improved classification.

What Problem Does This Paper Address?

Traditional topic models like Latent Dirichlet Allocation (LDA) are powerful but often shallow, limiting their ability to capture complex document structures. Deep probabilistic models offer richer representations but suffer from computationally expensive inference, making them impractical for large datasets. Existing deep generative models for text also face challenges with approximating sparse, non-negative document latent representations, often relying on restrictive assumptions or inefficient inference methods. Furthermore, while unsupervised topic representations can be used for downstream tasks like classification, they often lack discriminative power.

Methods

The core of the paper is the Deep Autoencoding Topic Model (DATM). It comprises two main components:

  • Deep Generative Model (Decoder): This uses a Deep Latent Dirichlet Allocation (DLDA) model, which is a hierarchical Bayesian model with multiple stochastic hidden layers, to generate documents.
  • Weibull Upward-Downward Variational Encoder (WUDVE): This acts as the inference network. Unlike standard VAEs that often use Gaussian latent variables, WUDVE employs Weibull distributions to better approximate the sparse and non-negative latent representations common in topic modeling. It features a deterministic upward pass (via deep neural networks) and a stochastic downward pass, inspired by Gibbs sampling in DLDA.

For scalable inference, DATM uses a hybrid Bayesian inference approach:

  • Topic-Layer-Adaptive Stochastic Gradient Riemannian MCMC (TLASGR-MCMC): This efficiently infers global parameters of the generative model, adapting learning rates per topic and layer.
  • Autoencoding Variational Inference: This is used to infer local document-specific latent representations, leveraging the WUDVE.

The paper also introduces Supervised DATM (sDATM), which extends DATM to jointly model documents and their labels. It incorporates label information into the generative process, allowing for enhanced discriminative power in latent representations for classification tasks.

Datasets

The models were evaluated on several standard datasets:

  • 20Newsgroups: A collection of approximately 18,845 documents.
  • Reuters Corpus Volume I (RCV1): A large dataset with over 800,000 documents.
  • Wikipedia (Wiki): A very large corpus, with 10 million documents sampled for evaluation.
  • MNIST: A dataset of handwritten digits, used for evaluating sDATM's classification capabilities.
  • IMDB: A dataset for sentiment classification of movie reviews.

Key Insights and Ideas

  • Weibull Distributions for Topic Modeling: Using Weibull distributions in the variational encoder is a key innovation. They are shown to be a better fit for approximating the sparse, non-negative latent representations in topic models compared to standard Gaussian or logistic-normal distributions, leading to improved performance.
  • Upward-Downward Inference Network: The WUDVE's structure, combining deterministic upward propagation with stochastic downward propagation, is crucial for efficiently inferring multi-layer latent representations and capturing hierarchical topic structures.
  • Scalable Hybrid Inference: The combination of TLASGR-MCMC for global parameters and variational inference for local parameters allows DATM to scale to large corpora while maintaining Bayesian rigor.
  • Interpretable Hierarchical Topics: DATM naturally learns hierarchical topics that become more general at higher layers, offering a more interpretable view of document content compared to shallow models.
  • Joint Document-Label Modeling: sDATM demonstrates that integrating label information directly into a deep generative topic model can significantly boost classification performance by leveraging the synergy between generation and discrimination.

Key Results

  • Unsupervised Learning (Perplexity): DATM-WHAI (the proposed hybrid inference DATM) consistently outperformed other models, including AVITM and DLDA-TLASGR, in terms of per-heldout-word perplexity on 20News, RCV1, and Wiki datasets. It achieved lower perplexity with significantly faster testing times due to the inference network.
  • Supervised Learning (Classification): sDATM achieved state-of-the-art or competitive results on MNIST digit classification and document classification tasks (20News, RCV1, IMDB), outperforming many unsupervised and supervised baselines.
  • Network Structure Learning: The layer-wise training strategy for DATM effectively inferred network structures that led to lower perplexity than fixed structures.
  • Topic Interpretability: Visualizations of learned topics showed clear hierarchical structures, with higher-level topics abstracting and generalizing from lower-level ones, demonstrating the model's interpretability.

Limitations and Future Work

  • Network Structure Specification: While DATM can learn network structure via layer-wise training, the initial budget on the first layer's width still needs to be specified.
  • Computational Cost: Although DATM is scalable, the TLASGR-MCMC component still involves iterative sampling, which can be computationally intensive for extremely large datasets compared to purely variational methods.
  • Future Work: The paper suggests exploring other distributions for the variational encoder, further investigating the learned topic hierarchy, and applying the models to other domains. The authors also highlight the potential for further improvements by exploring more sophisticated inference techniques and network architectures.

Summary updated

BibTeX
@article{zhang2021deep,
  author = {Hao Zhang and Bo Chen and Yulai Cong and Dandan Guo and Hongwei Liu and Mingyuan Zhou},
  title = {{Deep Autoencoding Topic Model With Scalable Hybrid Bayesian Inference}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2020.3003660},
}
Figure