Sparse Additive Generative Models of Text

Jacob Eisenstein, Amr Ahmed, Eric P. Xing

Introduction

Sparse Additive Generative Models of Text (SAGE) provide a novel framework for representing topics and document classes. Instead of relying on traditional distributions, SAGE models these elements as sparse deviations from a background word distribution in log-frequency space. By utilizing additive combinations rather than complex latent "switching" variables, SAGE simplifies multifaceted text modeling while significantly improving robustness and accuracy—especially on small datasets.

The Problem with Dirichlet-Multinomial Models

Most generative text models, such as Latent Dirichlet Allocation (LDA) or Naive Bayes, rely on the Dirichlet-multinomial conjugate pair. While mathematically convenient, this standard approach suffers from three major flaws:

  1. Inference Cost: In "multifaceted" models (e.g., modeling a document's topic and its sentiment simultaneously), standard approaches require a latent "switch" variable for every single word to decide which facet generated it. This massive increase in latent variables makes inference computationally expensive.
  2. Overparametrization: Standard models learn a full distribution over the entire vocabulary for every topic. This means the model wastes training data re-learning that common words like "the" and "of" are frequent in every single topic.
  3. Lack of Sparsity: Dirichlet priors are poor at inducing true sparsity. This makes models brittle; a single rare word that hasn't been seen in a specific class during training can "veto" a correct label by assigning it zero likelihood.

The SAGE Approach

The core innovation of SAGE is to model the difference in log-frequencies from a constant background distribution ($m$).

Comparison of traditional switching models (left) and the SAGE additive model (right).
  • The Additive Model: Instead of picking a multinomial distribution $\beta$, SAGE defines the probability of a word as $P(w) \propto \exp(m + \eta)$, where $m$ is the background log-frequency of words across the whole corpus, and $\eta$ is a vector of deviations for a specific topic or class.
  • Sparsity through Priors: The authors apply a zero-mean Laplace prior (equivalent to $L_1$ regularization) or a parameter-free Jeffrey’s prior to $\eta$. This forces the model to only "pay attention" to words that significantly distinguish a topic from the background, effectively ignoring noise and common stop words.
  • Facet Combination: To combine multiple facets (like Topic + Perspective), SAGE simply adds the vectors: $\exp(m + \eta_{topic} + \eta_{perspective})$. This eliminates the need for the per-token "switching" variables used in previous state-of-the-art models.
  • Optimization: The authors use a Newton optimization step for estimation. They demonstrate that the Hessian matrix for this problem has a "rank-one plus diagonal" structure, allowing for very efficient inversion that scales linearly with vocabulary size.

Key Insights

  • "Focus on the Delta": By modeling deviations rather than raw probabilities, SAGE naturally handles stop words. If a word like "the" has the same frequency in a topic as it does in the background, its $\eta$ value becomes zero, and it effectively drops out of the topic's definition.
  • Robustness to Rare Words: Because of the sparsity-inducing prior, SAGE is much less likely to overfit rare words. It only assigns a non-zero deviation if there is strong evidence, preventing the "veto" problem where one rare word ruins a classification.
  • Simpler Latent Structures: The additive nature of the model allows researchers to build "Topic-Aspect" models (e.g., what does a "conservative" person say about "education"?) without the combinatorial explosion of latent variables required by switching models.

Empirical Results

The authors evaluated SAGE across four distinct tasks: 20 Newsgroups (document classification), the NIPS Dataset (topic modeling perplexity), 2008 U.S. Political Blogs (ideological perspective prediction), and Twitter Geolocation.

SAGE outperforms the Dirichlet-multinomial baseline in classification accuracy, especially with limited training data.
  • Classification: On the 20 Newsgroups task, SAGE significantly outperformed the Dirichlet-multinomial baseline, particularly when training data was scarce. At 5% training data, SAGE provided a >10% absolute improvement in accuracy.
  • Topic Modeling: SAGE achieved lower (better) perplexity on held-out NIPS data compared to LDA, especially as the number of topics increased.
  • Ideology Prediction: SAGE matched the performance of much more complex "Multiview LDA" models (approx. 70% accuracy) while maintaining a simpler, more interpretable structure.
  • Geolocation: SAGE achieved the best mean error (845 km) on the Twitter geolocation task compared to previous specialized baselines.

Limitations and Future Work

While highly effective, SAGE has a few limitations. The current formulation treats each element of the deviation vector $\eta$ independently, ignoring potential correlations between different words. Additionally, for the $\eta$ components, the authors use Maximum A Posteriori (MAP) point estimates rather than a full Bayesian posterior, citing the difficulty of the logistic transformation. Future directions include extending SAGE to even more complex structures, such as hierarchical topic-aspect models or models that account for author-specific linguistic styles.

Summary updated

BibTeX
@inproceedings{eisenstein2011sparse,
  author = {Jacob Eisenstein and Amr Ahmed and Eric P. Xing},
  title = {{Sparse Additive Generative Models of Text}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
}
Figure