NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Non-Simultaneous Sampling Deactivation during the Parameter Approximation of a Topic Model

Young-Seob Jeong, Sou-Young Jin, Ho-Jin ChoiKsii Trans. Internet Inf. Syst 2013

Abstract

Topic models such as Latent Dirichlet Allocation (LDA) are essential for discovering latent themes in large text corpora. However, their estimation via iterative methods like Gibbs sampling is computationally intensive. Standard practices sample all variables for a fixed "burn-in" period, ignoring that different variables converge at different rates. This paper proposes "non-simultaneous sampling deactivation," a wrapper technique that monitors individual variable convergence and deactivates sampling for stabilized nodes. Experimental results on the Author Topic Model (ATM) and Aspect Sentiment Unification Model (ASUM) demonstrate significant gains in time and memory efficiency with minimal impact on model quality.

Introduction

The primary challenge in training topic models lies in the intractability of the likelihood function, necessitating iterative approximation algorithms. Traditional Gibbs sampling treats the model as a monolithic entity, continuing to update all variables until a global iteration limit is reached. This approach is inefficient, as it wastes computational resources on variables that have already reached a steady state.

Proposed Method: Non-Simultaneous Sampling Deactivation

The authors introduce a deactivation wrapper that can be applied to existing iterative methods. The process involves three steps:

  1. Monitoring: Tracking the number of value changes for each random variable node between iterations.
  2. Thresholding: Comparing the rate of change against a regulation parameter ($\lambda$).
  3. Deactivation: Once the change rate for a node falls below $\lambda$, the node is "deactivated," and its value is fixed for all subsequent iterations.

Model Architectures and Sequential Convergence

The effectiveness of this method is rooted in the observation that variables in complex models converge in a predictable sequence based on their dependencies and dimensionality.

Plate notation for the Author Topic Model (ATM), illustrating the relationship between author assignments (x) and topic assignments (z).

In the Author Topic Model (ATM), the author assignment (node $x$) acts as an "upstream" dependency for the topic assignment (node $z$). Because the number of authors per document is typically smaller than the total number of topics, node $x$ has a smaller state space and tends to stabilize earlier.

Convergence plot showing the number of changed variables per iteration for nodes x and z in the ATM.

As shown in Figure 4, node $x$ reaches a stable state significantly earlier (around iteration 400) than node $z$ (around iteration 800). By deactivating node $x$ early, the algorithm reduces computational overhead and removes noise, allowing "downstream" nodes like $z$ to converge more efficiently.

Experimental Results

The method was evaluated using the NIPS Papers dataset (for ATM) and The New Testament (for ASUM).

  • Efficiency: Significant speedups were observed, particularly as the number of topics increased. Java memory usage also decreased as fewer variables required active sampling.
  • Model Quality: Using Hellinger distance to compare results against a long-run "golden state," the authors found that the deactivated models produced consistent and interpretable topic distributions.
  • Scalability: The performance gains were most pronounced on larger datasets like NIPS, where deactivating nodes in a model with 800,000 variables yields substantial resource savings.

Conclusion

Non-simultaneous sampling deactivation provides a pragmatic way to accelerate topic model training. By recognizing the heterogeneous convergence rates of model variables, researchers can focus computational effort where it is most needed. Future work includes automating the selection of the regulation parameter $\lambda$ and extending the deactivation logic to other approximation frameworks like Variational Inference.

Summary updated

BibTeX
@article{jeong2013non,
  author = {Young-Seob Jeong and Sou-Young Jin and Ho-Jin Choi},
  title = {{Non-Simultaneous Sampling Deactivation during the Parameter Approximation of a Topic Model}},
  journal = {Ksii Trans. Internet Inf. Syst},
  year = {2013},
  doi = {10.3837/tiis.2013.01.006},
}
Figure