On a Topic Model for Sentences

Georgios Balikas, Massih-Reza Amini, Marianne ClauselSIGIR 2016 · OpenReview

Abstract: Probabilistic topic models are generative models that describe the content of documents by discovering the latent topics underlying them. However, the structure of the textual input, and for instance the grouping of words in coherent text spans such as sentences, contains much information which is generally lost with these models. In this paper, we propose sentenceLDA, an extension of LDA whose goal is to overcome this limitation by incorporating the structure of the text in the generative and inference processes. We illustrate the advantages of sentenceLDA by comparing it with LDA using both intrinsic (perplexity) and extrinsic (text classification) evaluation tasks on different text collections.

Introduction

Standard Latent Dirichlet Allocation (LDA) operates on the "exchangeability" assumption, treating documents as a "bag of words." By ignoring the sequence and grouping of words, LDA fails to leverage the inherent structure of human language. In reality, sentences serve as coherent units of thought that typically focus on a single specific topic. This paper introduces senLDA, a model that incorporates this structural constraint by requiring all words within a sentence to share a single latent topic.

The senLDA Model

The core innovation of senLDA is the addition of a "sentence plate" to the traditional LDA graphical model. This architectural change alters the generative process: instead of sampling a topic for every individual word, the model samples a single topic $z$ for an entire sentence. Subsequently, every word within that sentence is drawn from the word-distribution associated with that specific topic.

The graphical model for senLDA, featuring a nested sentence plate (S) within the document plate (D).

This constraint effectively "denoises" the topic assignment process. While the model is primarily evaluated using sentences, the authors note that these "coherent spans" can be adjusted to paragraphs or phrases depending on the desired granularity. Furthermore, the authors propose senLDA+, a hybrid approach that concatenates the topic distributions of both standard LDA and senLDA to capture information at multiple levels of resolution.

Experimental Evaluation

The model was rigorously tested against standard LDA using several large-scale datasets:

  • Wikipedia: Training sets (WikiTrain1 & 2) and classification sets (Wiki37 & 46) containing up to 46 distinct classes.
  • PubMed: A complex collection of biomedical articles (PubMedTrain1 & 2) and multi-label classification sets (PubMed25 & 50). This dataset is particularly challenging due to its specialized medical terminology and large vocabulary.

Key Results and Discussion

The experimental results highlight two primary advantages of the senLDA approach: massive speedups in convergence and improved classification utility.

Convergence and Efficiency

senLDA demonstrates remarkable efficiency, reaching convergence in approximately 30 iterations, whereas standard LDA typically requires between 160 and 200 iterations. In terms of raw processing time, senLDA was found to be 8 times faster on Wikipedia data and 12 times faster on the more complex PubMed dataset. This efficiency stems from the reduced number of "decisions" the model must make—one per sentence rather than one per word.

Classification Performance

In extrinsic evaluation tasks, senLDA consistently outperformed standard LDA in $F_1$ scores for text classification. The hybrid senLDA+ model provided the most robust results, suggesting that the word-level flexibility of LDA and the structural coherence of senLDA provide complementary features.

Classification performance ($F_1$ measure) across various datasets, comparing LDA, senLDA, and the hybrid senLDA+ model.

An interesting observation made by the authors is the rift between perplexity and utility. While standard LDA may eventually achieve better perplexity (a measure of how well the model predicts unseen words) given enough time, senLDA proves more useful for downstream tasks like classification. This suggests that the structural constraints of senLDA produce more discriminative and meaningful topic representations.

Conclusion

By acknowledging the sentence as a fundamental unit of topical coherence, senLDA offers a more realistic and efficient generative model than standard LDA. While it sacrifices some word-level flexibility, the gains in convergence speed and classification accuracy make it a powerful tool for large-scale text analysis. Future work may explore dependencies between sentences to further refine the modeling of document flow.

Summary updated

BibTeX
@inproceedings{balikas2016topic,
  author = {Georgios Balikas and Massih-Reza Amini and Marianne Clausel},
  title = {{On a Topic Model for Sentences}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2016},
  url = {https://openreview.net/forum?id=CQLLAZnvvM},
}
Figure