Practical Correlated Topic Modeling and Analysis via the Rectified Anchor Word Algorithm

Moontae Lee, Sungjun Cho, David Bindel, David Mimno

Topic modeling—the automated discovery of themes in large document collections—has traditionally faced a trade-off. Probabilistic models like Latent Dirichlet Allocation (LDA) offer high quality but struggle with scalability. Conversely, spectral methods are fast but sensitive to the noise inherent in real-world data. Researchers from the University of Illinois at Chicago, Microsoft Research, and Cornell University have introduced the Rectified Anchor Word (RAW) algorithm to bridge this gap.

The Scalability Wall

Traditional topic modeling algorithms, such as Gibbs Sampling or Variational Inference, require multiple passes over entire datasets, making them computationally expensive for millions of documents. Spectral methods circumvent this by analyzing word co-occurrence statistics in a single parallel pass. However, real-world text often violates the mathematical assumptions (e.g., positive semi-definiteness) required by these methods. RAW addresses this "model-data mismatch" through a robust rectification process.

The RAW Algorithm

The RAW algorithm utilizes a five-step pipeline based on the Joint Stochastic Matrix Factorization (JSMF) framework:

  1. Matrix Rectification: A word co-occurrence matrix $C$ is built and "cleaned" using Alternating Projection (AP) to satisfy mathematical constraints (low-rank, non-negative, normalized).
  2. Anchor Word Identification: Using a sparse pivoted QR decomposition, the algorithm identifies "anchor words"—words unique to specific topics (e.g., "dunk" for a basketball topic).
  3. Topic Recovery: Word-topic distributions are reconstructed using an Alternating Direction Method of Multipliers (ADMM) solver, which offers superior stability compared to previous methods.
  4. Correlation Analysis: RAW explicitly calculates pairwise correlations between topics, providing more flexibility than standard LDA.

Key Insights: Rectification and Pruning

The "secret sauce" of RAW is the rectification step. The authors found that 5 to 20 iterations of Alternating Projection can transform a noisy, unusable matrix into a high-quality estimator. Furthermore, the study emphasizes that vocabulary pruning—specifically removing words appearing in more than 50% of documents—is essential for spectral stability.

Results & Performance

RAW demonstrates significant improvements in both speed and quality. On the massive NYTimes dataset, RAW achieved a 40x speedup over Gibbs sampling while maintaining comparable or better topic quality. It also outperformed other spectral alternatives like Tensor-based methods and Online Variational Inference (OVI).

Performance metrics for NeurIPS and NYTimes datasets across different vocabulary pruning thresholds.

As shown in the figure above, the algorithm's performance across metrics like Recovery, Specificity, and Sparsity is sensitive to the vocabulary pruning threshold (Category). The 50% threshold mentioned in the research aligns with stable performance across these dimensions for both the NeurIPS and NYTimes datasets.

Conclusion

By "rectifying" noisy data to fit mathematical constraints, the RAW algorithm achieves the speed of spectral methods while matching the quality of probabilistic models. While it relies on the "separability assumption" (the existence of anchor words), its robustness on diverse datasets—from news articles to music playlists—marks a significant advancement in making topic modeling practical for web-scale data.

Summary updated

BibTeX
@inproceedings{lee2019practical,
  author = {Moontae Lee and Sungjun Cho and David Bindel and David Mimno},
  title = {{Practical Correlated Topic Modeling and Analysis via the Rectified Anchor Word Algorithm}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1504},
}
Figure