Skip to main content
QUICK REVIEW

[Paper Review] Scaling up Dynamic Topic Models

Arnab Bhadury, Jianfei Chen|arXiv (Cornell University)|Feb 19, 2016
Gaussian Processes and Bayesian InferenceComputer Science16 references7 citations
TL;DR

This paper proposes a scalable Gibbs sampling algorithm combined with Stochastic Gradient Langevin Dynamics (SGLD) for posterior inference in Dynamic Topic Models (DTMs), avoiding restrictive mean-field assumptions. The method enables efficient, parallel inference on massive datasets, learning 1,000 topics from 2.6 million documents in under 30 minutes with lower perplexity than variational baselines.

ABSTRACT

Dynamic topic models (DTMs) are very effective in discovering topics and capturing their evolution trends in time series data. To do posterior inference of DTMs, existing methods are all batch algorithms that scan the full dataset before each update of the model and make inexact variational approximations with mean-field assumptions. Due to a lack of a more scalable inference algorithm, despite the usefulness, DTMs have not captured large topic dynamics. This paper fills this research void, and presents a fast and parallelizable inference algorithm using Gibbs Sampling with Stochastic Gradient Langevin Dynamics that does not make any unwarranted assumptions. We also present a Metropolis-Hastings based $O(1)$ sampler for topic assignments for each word token. In a distributed environment, our algorithm requires very little communication between workers during sampling (almost embarrassingly parallel) and scales up to large-scale applications. We are able to learn the largest Dynamic Topic Model to our knowledge, and learned the dynamics of 1,000 topics from 2.6 million documents in less than half an hour, and our empirical results show that our algorithm is not only orders of magnitude faster than the baselines but also achieves lower perplexity.

Motivation & Objective

  • Address the lack of scalable, accurate inference methods for Dynamic Topic Models (DTMs) that can handle large-scale, time-series data.
  • Overcome the limitations of batch variational inference in DTMs, which rely on restrictive mean-field approximations and fail to scale to large topic counts.
  • Enable efficient, parallelizable inference for DTMs to support industrial-scale applications with thousands of topics and millions of documents.
  • Develop a method that maintains high accuracy by avoiding unwarranted assumptions while achieving orders-of-magnitude speedup over existing baselines.

Proposed method

  • Employ blockwise Gibbs sampling with Metropolis-Hastings for topic assignments using Alias tables to achieve amortized O(1) sampling complexity per word token.
  • Integrate Stochastic Gradient Langevin Dynamics (SGLD) to sample non-conjugate logistic-normal parameters (η and α) using mini-batches, enabling scalable and efficient updates.
  • Decouple time-slice dependencies by processing each time slice independently, enabling embarrassingly parallel execution across multiple machines.
  • Use data augmentation and SGLD to avoid mean-field approximations, improving posterior approximation accuracy over variational methods.
  • Leverage MPI-based distributed computing with minimal inter-worker communication, enabling near-linear scaling across cores and time slices.
  • Optimize CPU cache access in the sampling pipeline to further accelerate single-machine performance.

Experimental results

Research questions

  • RQ1Can a scalable, parallelizable inference algorithm be designed for Dynamic Topic Models that avoids restrictive mean-field assumptions?
  • RQ2How can non-conjugate parameters in DTMs be efficiently sampled at scale using stochastic optimization techniques?
  • RQ3To what extent does the proposed method outperform variational inference in terms of both speed and model likelihood (perplexity) on large-scale datasets?
  • RQ4Can the algorithm scale to thousands of topics and millions of documents while maintaining low communication overhead in distributed settings?

Key findings

  • The proposed GS-SGLD algorithm learned a Dynamic Topic Model with 1,000 topics from 2.6 million documents in under 30 minutes on a distributed system, setting a new scale record for DTMs.
  • On the NIPS dataset, the algorithm achieved a 3.5x speedup over the best baseline in single-machine settings and a 5x speedup in distributed settings.
  • The algorithm reduced perplexity by 12% compared to variational inference baselines, indicating improved model likelihood and better posterior approximation.
  • The method demonstrated near-linear scalability with increasing time slices, maintaining constant sampling complexity per iteration due to its embarrassingly parallel design.
  • With 58 cores, the algorithm completed inference on a 29-time-slice dataset in 398.32 seconds, while the baseline failed to complete within one hour.
  • The use of SGLD with mini-batches enabled accurate sampling of non-conjugate parameters without mean-field assumptions, improving model quality.

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.