Factorial LDA: Sparse Multi-Dimensional Text Models

Michael J. Paul, Mark DredzeNeurIPS 2012

Introduction

Factorial LDA (f-LDA) evolves traditional topic modeling by allowing word choices to be influenced by multiple latent dimensions simultaneously—such as topic, sentiment, and author perspective. By using structured word priors and a sparsity mechanism, the model captures complex linguistic interactions without succumbing to the "curse of dimensionality" that plagues simpler multi-factor models.

The Challenge of Multi-Dimensional Text

Standard Latent Dirichlet Allocation (LDA) assumes each word in a document is generated by a single latent "topic." However, real-world language is multi-faceted. A word like "deficit" might be chosen because the topic is economics, the perspective is fiscally conservative, and the genre is an editorial.

While previous researchers created models for two factors (e.g., topic + sentiment), scaling to $K$ factors creates two massive hurdles:

  1. Consistency: If you have "Economics-Liberal" and "Economics-Conservative," both should still share a core vocabulary about money and markets. Standard models treat these as entirely independent "topics," losing that shared information.
  2. The Combinatorial Explosion: As you add dimensions, the number of possible combinations (tuples) grows multiplicatively. Most of these combinations will never appear in actual data, leading to overparameterization and "noisy" models.

Introducing Factorial LDA (f-LDA)

To address these challenges, the authors introduce Factorial LDA (f-LDA), which represents each word as a $K$-dimensional vector of latent variables. The core innovations are structured word priors and a sparsity mechanism.

Factorial LDA Graphical Model and Structured Priors
  • Structured Word Priors: Instead of independent Dirichlet priors for every possible combination of factors, f-LDA uses a log-linear parameterization. The prior for a specific tuple is constructed by summing weights for each individual component. This "ties" the distributions together, ensuring that related tuples share a common linguistic foundation.
  • Sparsity via "Sparsity Bits": To handle the explosion of possible factor combinations, the model includes a sparsity array. This acts as a mask that can "turn off" unsupported combinations. To make this computationally feasible, the binary mask is relaxed to a continuous value in $(0, 1)$ governed by a "U-shaped" Beta prior, encouraging values to stay near 0 or 1.
  • Inference: The model uses a collapsed Gibbs sampler for latent variable assignment, interleaved with a Monte Carlo EM (MCEM) routine to optimize the hyperparameters.

Datasets and Evaluation

The model was evaluated on two primary corpora of scientific text:

  1. ACL Anthology: 5,000 abstracts from computational linguistics research.
  2. CLEP: A larger collection of 4,000 articles spanning Computational Linguistics, Linguistics, Education, and Psychology.

These datasets contain clear multi-dimensional factors, such as research topic, scientific discipline, and focus (e.g., method vs. application).

Key Results and Insights

The most significant performance gains came from the structured priors. By forcing the model to recognize shared components across different factor combinations, it learns much more robust word distributions with less data.

Held-Out Perplexity and Sparsity Distribution
  • Quantitative Performance: f-LDA—specifically the version using both structured priors and sparsity (SW)—consistently outperformed the baseline multi-dimensional model and the Topic Aspect Model (TAM) in terms of held-out perplexity.
  • Qualitative Interpretability: While sparsity didn't always drastically lower perplexity, it significantly improved human interpretability by removing "junk" topics. In "word intrusion" tests, the structured priors version achieved 76% accuracy on the ACL corpus, compared to just 39% for the baseline model.
  • Factor Discovery: The model successfully disentangled three distinct dimensions in the ACL data: Topic (e.g., Speech, Translation), Approach (Empirical vs. Theoretical), and Focus (Methods vs. Applications). The sparsity mechanism effectively filtered out nonsensical combinations, such as deactivating the "Theoretical" approach for the "Data" topic.

Limitations and Future Work

While powerful, f-LDA is roughly 1 to 2 times slower per iteration than a standard LDA implementation due to computational overhead. Additionally, learning the sparsity array is difficult because the model can get stuck in local minima. Although a continuous relaxation helps the model "mix" better, achieving a truly discrete sparse model remains a challenge. Future work may explore incorporating supervision (like author labels or timestamps) to further refine the multi-dimensional structure.

Summary updated

BibTeX
@inproceedings{paul2012factorial,
  author = {Michael J. Paul and Mark Dredze},
  title = {{Factorial LDA: Sparse Multi-Dimensional Text Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
}
Figure