Skip to main content
QUICK REVIEW

[Paper Review] Model-Parallel Inference for Big Topic Models

Xun Zheng, Jin K. Kim|arXiv (Cornell University)|Nov 10, 2014
Topic ModelingComputer Science23 references6 citations
TL;DR

This paper proposes a model-parallel inference framework for large-scale topic models, such as LDA, by partitioning the model into disjoint blocks that are updated in parallel, overcoming the limitations of data-parallelism in handling ultra-high-dimensional models. The approach enables efficient training on clusters with limited resources, achieving convergence on models with over 200 billion parameters and demonstrating faster convergence and better scalability than data-parallel baselines like Yahoo!LDA.

ABSTRACT

In real world industrial applications of topic modeling, the ability to capture gigantic conceptual space by learning an ultra-high dimensional topical representation, i.e., the so-called "big model", is becoming the next desideratum after enthusiasms on "big data", especially for fine-grained downstream tasks such as online advertising, where good performances are usually achieved by regression-based predictors built on millions if not billions of input features. The conventional data-parallel approach for training gigantic topic models turns out to be rather inefficient in utilizing the power of parallelism, due to the heavy dependency on a centralized image of "model". Big model size also poses another challenge on the storage, where available model size is bounded by the smallest RAM of nodes. To address these issues, we explore another type of parallelism, namely model-parallelism, which enables training of disjoint blocks of a big topic model in parallel. By integrating data-parallelism with model-parallelism, we show that dependencies between distributed elements can be handled seamlessly, achieving not only faster convergence but also an ability to tackle significantly bigger model size. We describe an architecture for model-parallel inference of LDA, and present a variant of collapsed Gibbs sampling algorithm tailored for it. Experimental results demonstrate the ability of this system to handle topic modeling with unprecedented amount of 200 billion model variables only on a low-end cluster with very limited computational resources and bandwidth.

Motivation & Objective

  • To address the inefficiency of data-parallelism in training large-scale topic models due to centralized model dependencies and high memory overhead.
  • To overcome the scalability limits of data-parallel systems when model size exceeds available memory per node.
  • To enable training of topic models with ultra-high-dimensional representations (e.g., 10^5 topics, 10^7 vocabulary) on low-end clusters.
  • To improve convergence speed and system scalability by reducing synchronization overhead and communication costs.
  • To demonstrate that model-parallelism can effectively handle both big and moderate-sized models without algorithmic overhaul.

Proposed method

  • The system partitions the word-topic matrix into blocks and assigns each block to a different worker, enabling independent updates.
  • It integrates model-parallelism with data-parallelism, allowing distributed workers to access only the model blocks relevant to their local data.
  • A variant of collapsed Gibbs sampling is adapted for model-parallel execution, with on-demand synchronization to maintain correctness.
  • Dynamic model partitioning is used to balance load and minimize memory usage per node, following a 1/M memory trend.
  • The framework employs an on-demand communication strategy to reduce network traffic, avoiding the O(M²) synchronization cost of data-parallel methods.
  • Model blocks are sharded across machines, and only keys present in local data subsets are stored, reducing memory footprint.

Experimental results

Research questions

  • RQ1Can model-parallelism effectively scale topic modeling beyond the memory limits of individual nodes?
  • RQ2Does model-parallel inference achieve faster convergence than data-parallel baselines like Yahoo!LDA?
  • RQ3Can model-parallelism handle models with over 200 billion parameters on low-end clusters?
  • RQ4How does the system maintain correctness and consistency under asynchronous, block-wise updates?
  • RQ5To what extent does dynamic model partitioning improve memory efficiency and system scalability?

Key findings

  • The model-parallel system successfully performed inference on a topic model with over 200 billion parameters using only 64 low-end machines, a scale that exceeds the memory capacity of individual nodes.
  • Convergence time was reduced to 2.3 hours for a 5,000-topic unigram model, compared to 11.8 hours for Yahoo!LDA, demonstrating faster convergence.
  • Memory usage per machine decreased approximately as 1/M with increasing number of machines, indicating near-ideal scalability.
  • Speedup in convergence time closely followed the ideal trend, while Yahoo!LDA showed degraded performance with more machines due to network congestion.
  • The system maintained correctness through on-demand synchronization, avoiding the O(M²) communication overhead of data-parallel methods.
  • Model-parallel inference achieved better utilization of computational resources and outperformed data-parallel baselines in both time and memory efficiency.

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.