Anchors Regularized: Adding Robustness and Extensibility to Scalable Topic-Modeling Algorithms

Thang Nguyen, Yuening Hu, Jordan L. Boyd-Graber

Abstract

Traditional topic modeling often faces a trade-off between the speed of spectral methods and the flexibility of Bayesian priors. This paper introduces $L_2$ and Beta regularization to the anchor words algorithm, bridging this gap. The resulting framework maintains the scalability of spectral methods while enhancing interpretability, robustness to hyperparameter tuning, and the ability to incorporate expert knowledge through informed priors.

Introduction

Topic modeling—the process of automatically discovering themes in a collection of documents—has traditionally relied on probabilistic methods like Latent Dirichlet Allocation (LDA) solved via MCMC or Variational Inference. While effective, these methods are often slow and prone to local optima.

Recently, "spectral methods" (specifically the anchor words algorithm) emerged as a lightning-fast alternative with mathematical guarantees of finding a global optimum. However, these methods were historically "rigid," lacking the ability to easily incorporate priors—the hints or constraints researchers use to guide a model. They were also notoriously sensitive to data pre-processing, specifically the document frequency threshold ($M$). This paper addresses these weaknesses by introducing a regularized objective function.

Methods

The authors modify the standard anchor words objective—which tries to reconstruct word co-occurrence statistics using a small set of "anchor" words—by adding regularization terms:

  1. $L_2$ Regularization: Mimics a Gaussian prior, penalizing the model if its coefficients stray too far from a mean vector. This is particularly useful for "informed priors," where a researcher can provide seed words to steer a topic toward a specific concept.
  2. Beta Regularization: Mimics the Dirichlet prior common in LDA. By leveraging the fact that the marginal of a Dirichlet distribution is a Beta distribution, this encourages the model to prefer certain types of topic-word distributions.
  3. Optimization: These regularized versions are solved using L-BFGS gradient optimization. Despite being iterative, the "anchor-beta" variant typically converges in very few iterations, maintaining a massive speed advantage over traditional Bayesian methods.

Experimental Setup

The researchers evaluated their approach on three diverse text corpora:

  • NIPS: Scientific articles (1,231 documents).
  • 20NEWS: Internet newsgroup postings (11,243 documents).
  • NYT: New York Times editorials (9,255 documents).

Performance was measured using Held-out Likelihood (HL Score) for generalization and Normalized Pairwise Mutual Information (TI-i Score) for topic coherence and interpretability.

Key Insights: Robustness and Interpretability

A significant challenge in unregularized anchor models is the "rich get richer" problem, where generic words (like "article") dominate every topic. Regularization redistributes probability mass from these common words to rarer, more topically relevant words, significantly improving interpretability.

Furthermore, the original anchor method is highly sensitive to the document frequency threshold ($M$). Regularization makes the model much more forgiving of a suboptimal $M$, as shown in the stability of scores across different frequency thresholds.

Robustness of the anchor-based model to the document frequency threshold M.

Key Results

The regularized models demonstrate a clear advantage in both interpretability and generalization across various settings:

  • Interpretability: The anchor-beta model consistently produces more coherent topics than the original unregularized method, as evidenced by higher TI-i scores.
  • Generalization: While highly-tuned MCMC still holds a slight edge in held-out likelihood, the regularized anchor methods significantly closed the gap compared to the original version.
  • Efficiency: The regularized models remain significantly faster than traditional MCMC, requiring only a few iterations to converge.
Performance metrics (HL Score and TI-i Score) across different regularization weights λ for Beta and L2 regularizers.

Conclusion and Future Work

By regularizing the anchor words algorithm, this paper provides a robust and extensible framework for scalable topic modeling. While current Beta regularization is limited to parameters $a, b > 1$ for convexity, future work may explore true sparsity through $L_1$ regularization or more complex structured priors. This bridge between spectral and Bayesian methods allows for the incorporation of domain expertise into high-speed topic discovery.

Summary updated

BibTeX
@inproceedings{nguyen2014anchors,
  author = {Thang Nguyen and Yuening Hu and Jordan L. Boyd-Graber},
  title = {{Anchors Regularized: Adding Robustness and Extensibility to Scalable Topic-Modeling Algorithms}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-1034},
}
Figure