[Paper Review] Practical Collapsed Stochastic Variational Inference for the HDP
This paper proposes PCSVB0, a practical collapsed stochastic variational inference algorithm for the Hierarchical Dirichlet Process (HDP) that enables online, memory-efficient inference by processing words sequentially and updating sufficient statistics in real time. It achieves improved predictive performance over existing batch and online methods, as shown by lower perplexity on the TREC-1 dataset with faster convergence.
Recent advances have made it feasible to apply the stochastic variational paradigm to a collapsed representation of latent Dirichlet allocation (LDA). While the stochastic variational paradigm has successfully been applied to an uncollapsed representation of the hierarchical Dirichlet process (HDP), no attempts to apply this type of inference in a collapsed setting of non-parametric topic modeling have been put forward so far. In this paper we explore such a collapsed stochastic variational Bayes inference for the HDP. The proposed online algorithm is easy to implement and accounts for the inference of hyper-parameters. First experiments show a promising improvement in predictive performance.
Motivation & Objective
- To develop an efficient, scalable inference algorithm for the HDP-LDA model that supports online learning and reduces memory usage.
- To extend collapsed stochastic variational inference to the non-parametric HDP framework, where no such method had been previously proposed.
- To enable joint inference of hyper-parameters α and γ while maintaining computational efficiency and scalability.
- To improve predictive performance in terms of perplexity and convergence speed compared to batch and online baselines.
Proposed method
- The algorithm processes one word at a time, using a stochastic update rule to maintain running estimates of topic and word-topic counts.
- It employs a collapsed variational inference scheme that marginalizes over θ and φ, updating the topic assignment distribution q(z_di = k) using current statistics without storing individual assignments.
- The key update for topic assignment is q(z_di = k) ∝ (n_{dk} + απ_k) * (n_{kw_di} + β) / (n_{k.} + Vβ), where n_{dk}, n_{kw}, and n_{k.} are running expected counts.
- Global topic popularity π_k is updated via a stick-breaking process using estimated indicator functions E[1(n_{dk} ≥ 1)], with adaptive updates via exponential decay.
- Hyper-parameters α and γ are updated using iterative, stochastic approximations based on digamma functions and empirical document-topic presence.
- A step-size schedule ρ_t = s / (τ + t)^0.9 is used for all update components, with separate schedules for document-level, corpus-level, and hyper-parameter updates.
Experimental results
Research questions
- RQ1Can collapsed stochastic variational inference be effectively extended to the non-parametric HDP-LDA model?
- RQ2Does the proposed online, memory-efficient algorithm achieve better predictive performance than batch or existing online methods?
- RQ3Can joint inference of hyper-parameters α and γ be achieved reliably in a stochastic, online setting?
- RQ4How does the convergence rate and final perplexity of the proposed method compare to SCVB0 and PCVB0 on real-world text data?
Key findings
- PCSVB0 achieved lower perplexity than both SCVB0 and PCVB0 on the TREC-1 dataset, indicating superior predictive performance.
- The algorithm demonstrated faster convergence, reaching lower perplexity values with fewer iterations compared to baseline methods.
- The use of a practical lower-bound approximation for the stick-breaking process enabled stable and efficient inference without requiring full variance tracking.
- The algorithm maintained low memory usage by avoiding storage of individual topic assignments and updating sufficient statistics incrementally.
- The step-size schedule ρ_t = s / (τ + t)^0.9 enabled stable convergence across all components of the model.
- The method successfully inferred hyper-parameters α and γ in an online fashion, improving model adaptability to streaming data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.