Towards big topic modeling

Jianfeng Yan, Jia Zeng, Zhi-Qiang Liu, Lu Yang, Yang Gao

TL;DR

This paper introduces POBP, a communication-efficient parallel algorithm for "big topic modeling" that significantly reduces time and memory costs compared to existing methods. By leveraging a power-law-inspired dynamic scheduling approach, POBP achieves faster convergence and higher accuracy, making large-scale topic modeling more feasible.

What Problem Does This Paper Address?

Topic modeling, particularly Latent Dirichlet Allocation (LDA), is a powerful technique for uncovering hidden themes in large text datasets. However, traditional batch LDA algorithms struggle with the sheer scale of modern "big data," leading to prohibitive time and memory requirements. While parallel LDA algorithms exist, their communication costs often scale poorly with the number of topics and vocabulary size, hindering their scalability. Existing "online" LDA methods offer memory efficiency but don't fully leverage parallel architectures. This paper aims to bridge this gap by developing a parallel LDA algorithm that is both communication-efficient and scalable for massive datasets.

Methods

The core of this work is the Parallel Online Belief Propagation (POBP) algorithm. It combines two key ideas:

  • Communication-Efficient Multi-Processor Architecture (MPA): Instead of synchronizing the entire global topic-word matrix at each step, POBP dynamically selects and communicates only a "subset" of the matrix. This subset is determined by identifying "power words" and "power topics" based on the residuals of message passing. This dynamic selection is inspired by the power-law distribution observed in these residuals, suggesting that a small fraction of elements contribute most to the model's progress.
  • Online Belief Propagation (OBP): POBP builds upon the OBP algorithm, which processes data in mini-batches, offering memory efficiency. By integrating the communication-efficient MPA with OBP, POBP aims to achieve the benefits of both online and parallel approaches.

The algorithm iteratively updates messages and sufficient statistics, synchronizes only the necessary subsets of matrices, and dynamically selects power words and topics for the next iteration. This selective communication is crucial for reducing the overall communication overhead.

Datasets

The authors evaluated their POBP algorithm on four publicly available datasets:

  • ENRON: A relatively smaller dataset used for parameter tuning.
  • NYTIMES: A larger dataset.
  • PUBMED: A large dataset with a significant vocabulary size.
  • WIKIPEDIA: A large dataset.

These datasets vary in size and characteristics, allowing for comprehensive evaluation of the algorithm's performance on web-scale data.

Key Insights and Ideas

  • Power Law in Topic Modeling: The paper demonstrates that the distribution of "residuals" (differences in message values between iterations) in topic modeling often follows a power law. This means a small number of words and topics contribute disproportionately to the model's updates.
  • Dynamic Subset Communication: Exploiting the power-law insight, POBP selectively communicates only the most "active" parts of the topic-word matrix. This dramatically reduces communication overhead, a major bottleneck in existing parallel LDA.
  • Convergence Guarantee: Despite using only subsets of data for communication, POBP is shown to converge to the local optimum of the LDA objective function, similar to its online counterpart.
  • Scalability through Communication Efficiency: By minimizing communication, POBP achieves better scalability than other parallel LDA algorithms, requiring fewer processors to reach optimal performance.

Key Results

  • Speedup: POBP is significantly faster than existing algorithms, achieving speedups of 5-100 times compared to other state-of-the-art parallel LDA methods (PFGS, PSGS, YLDA, PVB).
  • Accuracy: POBP consistently achieves lower predictive perplexity (indicating higher accuracy) across various datasets and numbers of topics compared to other algorithms. For instance, on larger datasets, the perplexity gap between POBP and PFGS can be as high as 48.54%.
  • Communication Cost: POBP uses only 5-20% of the communication time compared to other algorithms.
  • Memory Usage: POBP exhibits constant memory usage per processor, making it suitable for memory-constrained environments, unlike some batch parallel methods whose memory usage scales with the number of processors.
  • Scalability: POBP requires fewer processors to achieve its best performance compared to other parallel algorithms, demonstrating superior scalability.

Limitations and Future Work

  • Limitations: The paper acknowledges that while POBP's communication cost is significantly reduced, it is still proportional to the number of mini-batches (M). Therefore, minimizing M (by using larger mini-batches) is desirable for further reducing communication time, but this is constrained by processor memory.
  • Future Work:
    • Investigating the application of POBP to multi-core architectures (like GPUs) and shared-memory systems.
  • Exploring the integration of POBP with other parallel paradigms such as in-memory Map-Reduce (Spark) or Graph-Lab.
  • Generalizing the power-law-inspired dynamic scheduling approach to other EM-based algorithms for latent variable models.

Summary updated

BibTeX
@article{yan2017towards,
  author = {Jianfeng Yan and Jia Zeng and Zhi-Qiang Liu and Lu Yang and Yang Gao},
  title = {{Towards big topic modeling}},
  journal = {Information Sciences},
  year = {2017},
  doi = {10.1016/j.ins.2016.12.014},
}
Figure