Abstract: Supervised topic models with a logistic likelihood have two issues that potentially limit their practical use: 1) response variables are usually over-weighted by document word counts; and 2) existing variational inference methods make strict mean-field assumptions. We address these issues by: 1) introducing a regularization constant to better balance the two parts based on an optimization formulation of Bayesian inference; and 2) developing a simple Gibbs sampling algorithm by introducing auxiliary Polya-Gamma variables and collapsing out Dirichlet variables. Our augment-and-collapse sampling algorithm has analytical forms of each conditional distribution without making any restricting assumptions and can be easily parallelized. Empirical results demonstrate significant improvements on prediction performance and time efficiency.
Introduction
Supervised Latent Dirichlet Allocation (sLDA) is a powerful tool for discovering topics that are predictive of document labels, such as sentiment or categories. However, traditional sLDA models face two significant hurdles. First, the "Model Imbalance" problem: in a typical document, the sheer volume of words often overwhelms the single label, causing the discovered topics to ignore the supervision signal. Second, the "Inference Nightmare": using logistic likelihoods in a Bayesian framework leads to non-conjugacy, forcing researchers to rely on restrictive and often slow variational inference methods.
This paper, presented at ACL 2013, addresses these challenges by introducing a regularized Bayesian framework and a novel data augmentation scheme for efficient inference.
Methodology
Regularized Bayesian Inference (RegBayes)
To solve the imbalance between text and labels, the authors frame Bayesian inference as an optimization problem. They introduce a regularization parameter ($c$) that acts as a "volume knob" for the supervision signal. By adjusting $c$, the model can be forced to prioritize the labels, ensuring that the resulting topics are truly discriminative.
Polya-Gamma Data Augmentation
To overcome the mathematical difficulties of the logistic likelihood, the authors employ a data augmentation trick. By introducing auxiliary Polya-Gamma variables, the non-conjugate logistic likelihood is transformed into a form that resembles a Gaussian distribution. This allows for the use of efficient Gibbs sampling instead of restrictive variational approximations.
Collapsed Gibbs Sampling
The resulting "augment-and-collapse" sampler is both mathematically exact and highly efficient. Because the local variables for words and labels are independent across documents, the algorithm is easily parallelizable. The authors implemented this using GraphLab to scale across multiple CPU cores.
Experimental Results
The model was evaluated on the 20Newsgroups (20NG) dataset, covering both binary and multi-class classification tasks.
Binary Classification Performance
In binary tasks (e.g., distinguishing between Atheism and Religion), the proposed Gibbs sampler (gSLDA) was approximately 100 times faster to train than the standard variational approach (vSLDA). When the regularization constant was tuned (gSLDA+), the model significantly outperformed standard sLDA and matched the performance of state-of-the-art max-margin models like MedLDA.
Multi-class Classification and Scalability
For the full 20-class problem, the authors utilized a "one-vs-all" strategy. The parallelized implementation demonstrated excellent scalability, maintaining high accuracy while keeping training times manageable even as the number of topics increased.
Conclusion
By rethinking the balance of supervision and the mechanics of inference, this work provides a more robust and scalable foundation for supervised topic modeling. The combination of Regularized Bayes and Polya-Gamma data augmentation proves that sampling-based methods can be both more accurate and significantly faster than traditional variational approximations. Future work may extend these data augmentation techniques to other response types, such as count-based data using negative-binomial distributions.
Summary updated