Modeling General and Specific Aspects of Documents with a Probabilistic Topic Model

Chaitanya Chemudugunta, Padhraic Smyth, Mark SteyversNeurIPS 2006

TL;DR

The "Special Words with Background" (SWB) model is a probabilistic framework that bridges the gap between broad topic modeling (like LDA) and precise keyword matching (like TF-IDF). By allowing words to originate from general topics, document-specific "special" distributions, or a corpus-wide background, it prevents the "over-generalization" trap where specific, rare terms are lost in favor of broad themes.

The Generality vs. Specificity Trade-off

In information retrieval and text analysis, we often face a trade-off between generality and specificity.

Standard topic models like Latent Dirichlet Allocation (LDA) are great at capturing the "forest"—the broad themes of a document. However, they often miss the "unique trees"—specific names, rare technical terms, or misspellings that are crucial for precise searching. For example, if you search for "election + campaign + Camejo," a topic model might return many articles about elections that never mention the specific candidate "Camejo" because "Camejo" isn't a frequent word in the general "election" topic.

Conversely, word-based techniques like TF-IDF are hyper-specific but lack semantic "understanding." They won't find a relevant document unless it contains the exact words in your query. The authors aim to create a model that handles this trade-off automatically and probabilistically.

Methods: The SWB Model

The authors propose the Special Words with Background (SWB) model, which is an extension of LDA.

Graphical models comparing standard LDA (a) and the proposed SWB model (b)

The core innovation is the introduction of a latent "switch" variable ($x$) for every word token in a document. This switch determines which of three routes a word takes:

  1. The Topic Route ($x=0$): The word is generated from a standard mixture of topics (like in LDA). This captures the general subject matter.
  2. The Special Word Route ($x=1$): The word is generated from a distribution unique to that specific document. This captures idiosyncratic terms, rare names, or unique technical jargon.
  3. The Background Route ($x=2$): The word is generated from a corpus-wide distribution of common words that appear everywhere but aren't topical (e.g., "report," "based," "results").

The model uses Gibbs sampling for inference, allowing it to simultaneously learn the topics, the document-specific "special" vocabularies, and the global background noise.

Datasets and Key Insights

The researchers evaluated their model using five distinct datasets ranging from short news articles (AP, NYT) to long, technical documents (NIPS, PATENTS, Federal Register).

  • Automatic Separation: The model effectively "filters" words. In a qualitative test using NYT articles, it correctly identified "biznesmen" (a misspelling) and "Camejo" (a rare name) as "special words," while assigning "election" to a general topic.
  • Document Length Matters: A fascinating finding was that longer, more detailed collections (like Patents or NIPS) have a much higher percentage of "special" words (up to 58% in Patents) compared to shorter, abstract-like collections (11% in AP). This suggests that as documents get more detailed, they rely more on specific, non-topical terminology.
  • Solving the "Camejo" Problem: By explicitly modeling a "special" route, the model retains the identity of rare words that LDA would otherwise "smooth over" or ignore during the abstraction process.

Key Results

Perplexity comparison showing SWB and SW outperforming standard LDA as more words are observed
  • Perplexity: On the NIPS and PATENTS datasets, the SWB model showed significantly lower perplexity (better predictive power) than standard LDA once at least 10-20% of a test document was observed. This indicates the model is much better at predicting the specific vocabulary of an individual document.
  • Information Retrieval (IR): In head-to-head tests against TF-IDF, LSI, and LDA, the SWB model consistently achieved the highest Mean Average Precision (MAP) and Precision at 10 (Pr@10d).
  • Exact Matching: Unlike LDA or LSI, which often fail to retrieve documents containing specific query words, SWB maintained high exact-match rates (nearly 100% in some tests) while still benefiting from the semantic "boost" of topic modeling.

Limitations and Future Work

  • Computational Complexity: Like most models relying on Gibbs sampling, the SWB model is more computationally intensive than simpler methods like TF-IDF.
  • Statistical Significance: While SWB consistently outperformed LDA, the authors noted that the difference between the "Special Words" (SW) version and the "Special Words with Background" (SWB) version was not always statistically significant, though both were improvements over the baseline.
  • Generative Performance: The authors suggest that while their model performs well, there is still room to investigate fully generative models that can match the performance of "ad-hoc" hybrid methods (which manually combine LDA and TF-IDF scores).

Summary updated

BibTeX
@inproceedings{chemudugunta2006modeling,
  author = {Chaitanya Chemudugunta and Padhraic Smyth and Mark Steyvers},
  title = {{Modeling General and Specific Aspects of Documents with a Probabilistic Topic Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2006},
  url = {https://openreview.net/forum?id=BJWK0IbuWB},
}
Figure