Skip to main content
QUICK REVIEW

[Paper Review] Hybrid Variational/Gibbs Collapsed Inference in Topic Models

Max Welling, Yee Whye Teh|arXiv (Cornell University)|Jun 13, 2012
Bayesian Methods and Mixture ModelsComputer Science14 references19 citations
TL;DR

This paper proposes a hybrid inference algorithm for topic models that combines variational inference for large counts and collapsed Gibbs sampling for small counts, achieving lower test set perplexity than variational inference alone with no additional computational cost. The method leverages the bias-free nature of Gibbs sampling for sparse data and the efficiency of variational inference for frequent terms, resulting in improved generative performance.

ABSTRACT

Variational Bayesian inference and (collapsed) Gibbs sampling are the two important classes of inference algorithms for Bayesian networks. Both have their advantages and disadvantages: collapsed Gibbs sampling is unbiased but is also inefficient for large count values and requires averaging over many samples to reduce variance. On the other hand, variational Bayesian inference is efficient and accurate for large count values but suffers from bias for small counts. We propose a hybrid algorithm that combines the best of both worlds: it samples very small counts and applies variational updates to large counts. This hybridization is shown to significantly improve testset perplexity relative to variational inference at no computational cost.

Motivation & Objective

  • To address the trade-off between bias in variational inference for small counts and inefficiency in collapsed Gibbs sampling for large counts.
  • To develop a unified inference framework that leverages the strengths of both variational and Gibbs sampling methods.
  • To reduce test set perplexity in topic models without increasing computational cost.
  • To improve inference accuracy by dynamically assigning inference strategies based on count size.

Proposed method

  • The algorithm classifies word counts in the topic model into small and large categories based on a threshold.
  • For small counts (typically below a threshold), it applies collapsed Gibbs sampling to avoid bias.
  • For large counts, it uses variational Bayesian inference to maintain computational efficiency.
  • The hybrid strategy is implemented by modifying the conditional distributions in the inference process to switch between sampling and variational updates.
  • The method maintains the same model structure as standard LDA but modifies the inference procedure to adaptively select the optimal inference type per count.
  • The approach is evaluated on standard topic modeling benchmarks using test set perplexity as the primary metric.

Experimental results

Research questions

  • RQ1Can a hybrid inference strategy improve test set perplexity in topic models compared to pure variational inference?
  • RQ2Does combining Gibbs sampling for small counts and variational inference for large counts yield better performance than either method alone?
  • RQ3Is the proposed hybrid method computationally efficient compared to full Gibbs sampling?
  • RQ4How does the threshold between small and large counts affect the performance of the hybrid algorithm?
  • RQ5Can the hybrid method achieve unbiased inference for rare words while maintaining efficiency for frequent words?

Key findings

  • The hybrid method achieves significantly lower test set perplexity than standard variational inference on benchmark topic models.
  • The improvement in perplexity is observed across multiple datasets, demonstrating consistent performance gains.
  • The method incurs no additional computational cost compared to variational inference, as the hybridization does not require extra sampling steps.
  • The algorithm effectively reduces bias in low-count regions while maintaining efficiency in high-count regions.
  • The results show that combining sampling for small counts and variational updates for large counts leads to better generalization than either approach in isolation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.