Introduction
Topic models like Latent Dirichlet Allocation (LDA) excel at discovering latent themes in large text collections. However, standard LDA is unsupervised and doesn't leverage document labels (e.g., "Sports" or "Politics") to refine these themes. Supervised Topic Models, such as MedLDA, address this by incorporating side information. MedLDA is particularly powerful because it employs max-margin constraints—the same principle behind Support Vector Machines (SVMs)—to ensure the discovered topics are highly discriminative.
The Challenge with Variational Inference
Historically, because max-margin constraints do not fit standard Bayesian likelihood models, researchers relied on variational inference to train MedLDA. While fast, variational methods depend on "mean-field" assumptions that treat variables as independent. This oversimplification can lead to inaccurate representations or overly compact topic distributions. The core challenge addressed in this paper is how to apply more accurate Monte Carlo sampling methods to a model defined by optimization constraints rather than standard likelihoods.
Proposed Methods: Reframing MedLDA
The authors bridge this gap by reframing MedLDA through the lens of Regularized Bayesian Inference. By treating MedLDA as a principled optimization problem rather than a hybrid heuristic, they developed two novel sampling algorithms:
- iMedLDA (Importance Sampler): Uses a proposal distribution to draw samples. To maintain a manageable search space, it relies on Maximum A Posteriori (MAP) estimates for the topics and document-topic distributions, focusing the sampling effort primarily on latent topic assignments.
- gMedLDA (Collapsed Gibbs Sampler): Adapting the "gold standard" approach for standard LDA, the authors successfully integrate out (collapse) the topic and document distributions. This allows the algorithm to sample only the topic assignments ($Z$).
The Secret Sauce: Both methods utilize a two-step iterative process. First, they solve a convex dual problem (akin to training a multi-class SVM) to find optimal classifier parameters. Second, these parameters guide the topic sampling process, forcing the model to focus on "hard" documents located near the classification boundary.
Key Results and Insights
Evaluated on the 20 Newsgroups dataset (approx. 20,000 postings across 20 categories), the Monte Carlo approaches demonstrated significant improvements over existing methods.
- Superior Accuracy: By relaxing the restrictive mean-field assumptions, the Monte Carlo methods capture more complex dependencies. Both iMedLDA and gMedLDA consistently outperformed the variational version of MedLDA (fMedLDA) and standard supervised LDA across various topic counts.
- Enhanced Topic Sparsity: The sampling methods produced topic distributions with lower entropy than standard LDA, indicating clearer and more distinct thematic groupings.
- Computational Efficiency: Markov Chain Monte Carlo (MCMC) methods are traditionally viewed as slower than variational inference. Surprisingly, the authors found that iMedLDA was highly efficient. Because it can generate samples outside the main iteration loop, it proved significantly faster than competing models, making it a strong candidate for scaling.
Limitations and Future Work
While these methods represent a major leap forward for max-margin topic models, a few areas remain open for exploration:
- Approximations in iMedLDA: The importance sampler relies on MAP estimates for topics. While computationally efficient, this is a slight approximation compared to a fully Bayesian treatment where all topics are sampled.
- Hyper-parameter Sensitivity: iMedLDA's performance is sensitive to the choice of the Dirichlet prior ($\beta$), requiring more careful tuning than the robust Gibbs sampler.
- Massive Scale: The dual formulation is promising for scalable implementations, but testing on datasets with millions of documents remains a future objective.
Summary updated