Skip to main content
QUICK REVIEW

[Paper Review] A New Approach to Speeding Up Topic Modeling

Jia Zeng, Zhiqiang Liu|arXiv (Cornell University)|Apr 1, 2012
Topic ModelingComputer Science36 references13 citations
TL;DR

This paper proposes Active Belief Propagation (ABP), a fast and accurate batch algorithm for Latent Dirichlet Allocation (LDA) that accelerates training by selectively scanning only the most informative 10–20% of documents and topics at each iteration, based on message residuals. ABP achieves 10–100× speedup over state-of-the-art batch LDA methods while maintaining comparable topic modeling accuracy on real-world corpora.

ABSTRACT

Latent Dirichlet allocation (LDA) is a widely-used probabilistic topic modeling paradigm, and recently finds many applications in computer vision and computational biology. In this paper, we propose a fast and accurate batch algorithm, active belief propagation (ABP), for training LDA. Usually batch LDA algorithms require repeated scanning of the entire corpus and searching the complete topic space. To process massive corpora having a large number of topics, the training iteration of batch LDA algorithms is often inefficient and time-consuming. To accelerate the training speed, ABP actively scans the subset of corpus and searches the subset of topic space for topic modeling, therefore saves enormous training time in each iteration. To ensure accuracy, ABP selects only those documents and topics that contribute to the largest residuals within the residual belief propagation (RBP) framework. On four real-world corpora, ABP performs around $10$ to $100$ times faster than state-of-the-art batch LDA algorithms with a comparable topic modeling accuracy.

Motivation & Objective

  • To address the high computational cost of batch LDA algorithms that require full corpus and topic space scanning during each iteration.
  • To reduce training time for large-scale corpora with many topics (K ≥ 1000) and documents (D ≥ 10^6).
  • To maintain high topic modeling accuracy while significantly accelerating convergence through intelligent subset selection.
  • To develop a scalable, memory-efficient batch LDA algorithm suitable for big data applications.

Proposed method

  • ABP operates within the Residual Belief Propagation (RBP) framework, using message residuals—defined as the absolute difference between messages across iterations—to identify the most dynamically changing components.
  • At each iteration, ABP sorts message residuals and selects only the top 10–20% of documents and topics with the largest residuals for message updating and passing.
  • The algorithm interprets the process as a fast Expectation-Maximization (EM) algorithm: E-step updates only high-residual messages, and M-step estimates parameters from the selected subset.
  • ABP exploits the observation that message residuals approximately follow Zipf’s law, meaning a small subset of documents and topics contributes the majority of residual energy, enabling efficient pruning.
  • The method is designed to be extensible to other LDA-based models and latent variable models, including Gaussian Mixture Models and Hidden Markov Models.
  • ABP uses a dynamic scheduling strategy based on residual magnitude, avoiding redundant computation on slowly converging components.

Experimental results

Research questions

  • RQ1Can selective scanning of documents and topics based on message residuals significantly reduce training time in batch LDA without sacrificing accuracy?
  • RQ2To what extent do the top 10–20% of documents and topics with the largest residuals account for the majority of convergence progress in LDA training?
  • RQ3How does ABP compare in speed and accuracy to state-of-the-art batch and parallel LDA algorithms on large-scale real-world corpora?
  • RQ4Can ABP achieve comparable or better performance than online LDA methods while remaining a batch algorithm with stable convergence?
  • RQ5Is the sublinear time complexity of ABP achievable in practice for massive corpora with large K and D?

Key findings

  • ABP achieves 10 to 100 times faster training than state-of-the-art batch LDA algorithms on four real-world corpora, including ENRON, NYTIMES, PUBMED, and NIPS.
  • On the NIPS corpus, ABP1 achieves a predictive perplexity of 0.38 with a training time of 0.09 seconds per iteration, outperforming PGS on 32 processors in both speed and accuracy.
  • When K=500, ABP1 achieves lower predictive perplexity than PGS and is significantly faster, with ABP1 completing each iteration in less time than PGS despite using only a single processor.
  • The method maintains high accuracy even when selecting only 10% of documents and 10% of topics per iteration, due to the Zipfian distribution of message residuals.
  • ABP scales sublinearly with respect to the number of documents (D) and topics (K), enabling near-constant training time for very large corpora when λ_d and λ_k are fixed.
  • ABP outperforms online LDA methods like OGS and OVB in both speed and accuracy, and is faster and more accurate than PGS on 32 processors.

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.