Combinatorial Topic Models using Small-Variance Asymptotics

Ke Jiang, Suvrit Sra, Brian Kulis

Abstract

Modern topic models typically have a probabilistic formulation, deriving inference algorithms from Latent Dirichlet Allocation (LDA) and its variants. In contrast, we approach topic modeling through the lens of combinatorial optimization by applying Small-Variance Asymptotics (SVA) to LDA. This derivation yields a "hard" clustering objective for topic modeling, analogous to how K-means relates to Gaussian Mixture Models. We present an algorithm that is orders of magnitude faster than traditional Gibbs sampling while maintaining competitive accuracy.

Introduction

Standard topic models like Latent Dirichlet Allocation (LDA) are almost exclusively probabilistic. To find topics, researchers typically use complex inference techniques like Collapsed Gibbs Sampling (CGS) or Variational Bayes (VB). While effective, these methods can be computationally expensive and slow to converge, especially on massive document collections.

There is a well-known analogy in machine learning: K-means clustering is the "hard" (small-variance) limit of Gaussian Mixture Models (GMMs). While GMMs provide soft probabilities, K-means provides hard assignments and is much faster. This research asks: Can we find a similar "hard" combinatorial version of LDA that is fast, scalable, and accurate? Previous attempts at basic SVA existed but performed poorly; this work addresses those algorithmic shortcomings.

Methodology

The authors derive a new objective function by taking the limit of the LDA likelihood as the variance goes to zero. This results in a combinatorial objective that balances two primary factors:

  1. Word-Topic Proximity: Minimizing the KL-divergence between words and their assigned topics.
  2. Topic Parsimony: A penalty ($\lambda$) on the number of unique topics used per document.

To solve this, three algorithmic components are introduced:

  • Basic Batch Algorithm: An iterative approach similar to k-means that alternates between assigning words to topics and updating the topic distributions.
  • Improved Word Assignment (UFL): The word-assignment problem is mapped to the "Uncapacitated Facility Location" (UFL) problem. By treating topics as "facilities" and words as "clients," greedy approximation techniques find much better initial assignments than simple local search.
  • Incremental Topic Refinement: A block-coordinate descent strategy swaps "mini-topics" (groups of identical words in a document) between topics to further minimize the objective.

Crucially, these sophisticated combinatorial steps are implemented to run in $O(NK)$ time per iteration (where $N$ is the total number of words and $K$ is the number of topics), matching the per-iteration complexity of the standard Gibbs sampler.

Key Insights: Speed and Convergence

A major finding is that simply "hardening" a probabilistic model is insufficient. Standard greedy assignments used in prior SVA work often get stuck in local optima. The connection to the Facility Location Problem is the critical innovation that allows for high-quality combinatorial assignments.

Test Log-Likelihood vs. Iterations showing the benefit of Word+Refine (W+R) initialization compared to random initialization.

The combinatorial approach is not just a fast approximation. In many tests, it matched or exceeded the accuracy of the Gibbs sampler while requiring only a fraction of the iterations (10-20 iterations vs. thousands for Gibbs). Furthermore, using this combinatorial method to initialize a Gibbs sampler significantly reduces the "burn-in" time, helping the probabilistic model converge much faster than it would from a random start.

Experimental Results

The researchers evaluated their approach on synthetic documents sampled from LDA models and real-world datasets including Enron Emails and NYTimes Articles.

On synthetic data, the Word+Refine algorithm achieved Normalized Mutual Information (NMI) and Adjusted Rand Index (ARand) scores competitive with, and sometimes exceeding, the Collapsed Gibbs Sampler (CGS). As shown in the performance table, results are robust across different values of the topic penalty $\lambda$.

Comparison of NMI and ARand scores for synthetic datasets. The Word+Refine method consistently outperforms the Basic SVA and matches CGS performance.

On real-world datasets, the model's held-out log-likelihood was comparable to the sampler. The proposed method significantly outperformed "Basic" SVA and standard K-means in reconstructing original topic-word distributions. While a sampler might need over 3,000 iterations to reach a certain error level, the combinatorial model achieves comparable results in roughly 10-20 iterations.

Conclusion

This work demonstrates that combinatorial topic models derived via SVA offer a powerful alternative to traditional probabilistic models. By leveraging the connection to facility location problems, the proposed algorithm achieves high accuracy with significantly lower computational overhead. Future work will focus on massively distributed implementations and extending the framework to semi-supervised learning.

Summary updated

BibTeX
@inproceedings{jiang2017combinatorial,
  author = {Ke Jiang and Suvrit Sra and Brian Kulis},
  title = {{Combinatorial Topic Models using Small-Variance Asymptotics}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
  url = {https://openreview.net/forum?id=Olof56UtBn},
}
Figure