Supervised Topic Models
David M. BleiJon D. McAuliffe
Proposes supervised latent Dirichlet allocation (sLDA) to jointly model text content and document labels, enabling the discovery of topic representations directly optimized for predictive accuracy over traditional two-stage regression approaches.
Organizations increasingly need to extract actionable intelligence and predictions from large collections of electronic text, such as public policy records, consumer reviews, and internal communications. Traditional topic modeling techniques uncover the broad themes in a corpus without supervision, but these unsupervised themes often capture irrelevant general patterns rather than the specific features needed to forecast an external outcome, such as a sentiment rating, financial metric, or legislative vote.
The article introduces and evaluates supervised latent Dirichlet allocation, a statistical modeling framework that jointly discovers underlying text themes while simultaneously predicting an external response variable for each document.
To evaluate this framework, the authors tested the model across two distinct real-world datasets: a collection of 5,006 movie reviews used to predict numeric ratings, and legislative records from the 109th and 110th U.S. Senates (288 and 213 amendments, respectively) used to predict ideological voting tone based on amendment text. Using five-fold cross-validation, the model was benchmarked against two standard industry baselines: standard regularized linear regression (the lasso) and a two-stage pipeline where unsupervised topics are extracted first and then fed into a separate regression model.
The empirical findings show that jointly modeling text and outcomes delivers superior predictive performance. First, the supervised topic approach consistently outperformed two-stage unsupervised topic regression across both datasets and across varying numbers of topics. Second, on the legislative amendment data, the supervised topic model substantially outperformed regularized regression, achieving an 80% relative improvement in predictive explanatory power for the 109th Senate (a predictive R-squared of 0.27 versus 0.15) and a 43% relative improvement for the 110th Senate (0.23 versus 0.16). Third, on the movie review data, the model slightly outperformed the regularized baseline with an explanatory power of 0.432 compared to 0.426. Finally, unlike standard regression methods that function as black-box predictors, the proposed model successfully identified intuitive, interpretable thematic word clusters directly linked to positive or negative outcome values.
These results demonstrate that when the primary objective is outcome prediction, statistical dimensionality reduction must be guided directly by the target metric. Relying on disconnected two-stage text analysis pipelines degrades predictive accuracy and increases analytical risk. Furthermore, because this framework accommodates various outcome data types—such as continuous values, counts, and binary classifications—it provides decision-makers with a flexible tool that combines quantitative forecasting with qualitative, interpretable insights.
For organizations managing complex text repositories, the article supports adopting supervised topic models over disjointed unsupervised workflows when labeled outcome data exists. Practitioners should explore extensions of the framework, including semi-supervised implementations where only a subset of documents have associated outcome labels, or integrating additional metadata covariates alongside document text. Decision-makers should note that model performance is constrained by text quality and vocabulary preprocessing choices, and legislative outcomes remain inherently difficult to predict solely from text because external political factors also drive voting behavior. Overall, confidence in the model's predictive advantage over conventional two-stage topic regression remains high.
- Paper: Latent Dirichlet Allocation, David M. Blei et al. (2003). It introduces the fundamental unsupervised Latent Dirichlet Allocation model and variational inference framework upon which supervised LDA is directly built.
- Paper: Probabilistic Latent Semantic Analysis, Thomas Hofmann (1999). It develops probabilistic latent semantic analysis, providing the foundational generative aspect model that prefigured Dirichlet-based topic modeling.
- Paper: Indexing By Latent Semantic Analysis, Scott Deerwester et al. (1990). It provides the foundational conceptual basis for representing text corpora in low-dimensional latent semantic spaces.
- Paper: Seeing Stars: Exploiting Class Relationships for Sentiment Categorization with Respect to Rating Scales, Bo Pang et al. (2005). It introduces the problem of predicting continuous or multi-point ratings from review text, which serves as a core benchmark task in supervised LDA.
- Paper: Thumbs up? Sentiment Classification using Machine Learning Techniques, Bo Pang et al. (2002). It establishes standard machine learning benchmarks for document-level sentiment and review classification that motivate supervised topic modeling applications.
- Paper: Stochastic variational inference, Matt Hoffman et al. (2012). It scales variational inference for latent Dirichlet allocation and related topic models to massive datasets via stochastic optimization.
- Paper: Learning Word Vectors for Sentiment Analysis, Andrew L. Maas et al. (2011). It extends joint probabilistic topic and rating modeling to continuous word vectors for sentiment and polarity prediction.
- Paper: Semi-supervised Learning with Deep Generative Models, Diederik P. Kingma et al. (2014). It advances beyond linear supervised topic models by unifying generative latent variable modeling and classification via deep neural variational inference.
