Structural Topic Model for Latent Topical Structure Analysis

Hongning Wang, Duo Zhang, ChengXiang Zhai

Abstract

Traditional topic models, such as Latent Dirichlet Allocation (LDA), often rely on the "bag-of-words" assumption, treating documents as unordered collections of words. This approach ignores the inherent sequential structure and cohesive flow of human language. We present the Structural Topic Model (strTM), a framework that explicitly captures how topics transition from one sentence to the next. By modeling a document as a first-order Markov chain of topical states, strTM significantly improves performance in sentence-level topic labeling and document reordering tasks.

Introduction

Most classic topic models assume exchangeability, meaning the order of words and sentences is irrelevant for discovering latent topics. However, real-world discourse is highly structured; for instance, an apartment rental ad typically follows a logical progression from "size" and "location" to "rent" and "contact info." While previous attempts like the Hidden Topic Markov Model (HTMM) tried to capture this, they were often limited to modeling whether a topic changed or remained the same. The strTM moves beyond this by learning a specific transition matrix that identifies the likely "flow" between distinct topics.

The strTM Framework

The Structural Topic Model introduces several key innovations to capture document structure:

  1. Sentence-Level Coherence: Unlike word-level models, strTM assumes all content words in a single sentence share the same topic, aligning with natural communication patterns.
  2. Content vs. Functional Topics: To reduce noise, the model distinguishes between specific content topics and a general "functional" background topic (e.g., common verbs or articles).
  3. Explicit Transition Matrix: The core of strTM is a transition matrix that calculates the probability of moving from Topic A to Topic B, allowing the model to learn the latent discourse structure of a specific genre.
The graphical representation of the Structural Topic Model (strTM), showing the Markov chain of topics $z_m$ and word generation $w_m$.

The model utilizes the Forward-Backward and Viterbi algorithms for inference, combined with Expectation-Maximization (EM) and Variational Bayesian (VB) estimation to learn parameters simultaneously.

Experimental Evaluation

The researchers evaluated strTM on two datasets with varying degrees of structure:

  • Apartment Ads (Ads): 8,031 Craigslist ads, characterized by a highly formulaic structure.
  • Movie Reviews (Review): 1,991 IMDB reviews, which exhibit more varied and "noisy" discourse patterns.

Quantitative Results

The strTM model consistently outperformed baselines such as pLSA and HTMM. On the Ads dataset, strTM achieved a sentence annotation accuracy of 74.7%, compared to HTMM’s 60.6%. On the more challenging Movie Review dataset, it reached 54.1% accuracy, nearly double the performance of some baselines.

Furthermore, the model's ability to capture logic was tested via sentence ordering. Using Kendall’s $\tau$, strTM scored 0.619 on the Ads dataset and perfectly recovered the original sentence order for over 50% of the ads.

Qualitative Topical Flow

Beyond metrics, strTM successfully mapped logical transitions within text genres. In the apartment ads, it identified clear clusters for starting a document (size, features) and concluding it (contact information).

Learned topical transition structure for the Apartment Ads dataset, illustrating the logical flow from features to contact information.

Conclusion and Future Work

By treating topical cohesion as a form of regularization, strTM provides a more robust understanding of document logic. Current limitations include the first-order Markov constraint, which prevents the model from capturing long-range dependencies. Future work may involve incorporating Named Entity Recognition (NER) or co-reference resolution to further refine the discovery of latent structures in complex, large-scale datasets.

Summary updated

BibTeX
@inproceedings{wang2011structural,
  author = {Hongning Wang and Duo Zhang and ChengXiang Zhai},
  title = {{Structural Topic Model for Latent Topical Structure Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2011},
}
Figure