TL;DR
Standard topic models like Latent Dirichlet Allocation (LDA) treat documents as "bags of words," ignoring the rich syntactic and semantic structures that link words together. This paper introduces the Global Topic Random Field (GTRF), a novel approach that uses dependency trees to model non-linear relationships between words. By doing so, GTRF significantly improves topic coherence and predictive performance while cleverly sidestepping the computational nightmares usually associated with random fields.
The Problem with "Bag of Words"
Most probabilistic topic models rely on the "exchangeability" assumption. This essentially treats a document as a shuffled deck of words where the order and structural relationships don't matter—only their co-occurrence does.
However, natural language is inherently structured. Words in a sentence are linked by syntax (e.g., a subject and its verb) and semantics. While some researchers have tried to model these dependencies using linear chains (assuming a word only depends on the one immediately before it) or unidirectional trees, these methods struggle with the complex, mutual dependencies found in real-world text. Furthermore, modeling these "mutual" dependencies usually requires calculating a "normalization factor" (or partition function) that is mathematically intractable, making the models slow or impossible to scale.
Methods: Bringing Structure Back to Topic Modeling
The authors propose a two-step approach to reintroduce linguistic structure into topic modeling:
1. Graphic Representation via Dependency Parsing
Instead of a flat bag of words, each document is transformed into a graph based on dependency parsing. This creates a tree structure where edges represent actual linguistic relationships (like nsubj for nominal subject or dobj for direct object).
By using dependency trees, GTRF can capture "long-distance" non-linear relationships. For example, in the sentence "The sales of the new iPhone5 disappoint investors," GTRF recognizes the direct link between "sales" and "disappoint" even though they are separated by several words.
2. Global Topic Random Field (GTRF)
The core innovation is the Global Random Field (GRF). Unlike standard Markov Random Fields (MRFs) where you have to calculate a complex normalization factor for every clique, the authors mathematically prove that if certain constraints are met, the normalization factor for their GRF is a constant (1).
- The "Coherent Edge" Reward: The model introduces a parameter ($\lambda_2$) that acts as a reward mechanism. If two words connected by an edge in the dependency tree are assigned the same topic, the model "rewards" that configuration.
- Inference: To handle the remaining complexity, they use a variational Expectation-Maximization (EM) procedure combined with a Taylor series approximation to estimate the posterior distribution of topics.
Key Results: Perplexity and Coherence
The model was evaluated on four distinct datasets representing different types of text: Reuters-21578, 20NewsGroups, NIPS, and ICML. All documents were preprocessed using the Stanford Parser to generate the underlying dependency trees.
Lower Perplexity
GTRF consistently achieved lower (better) perplexity than both standard LDA and the linear-chain Conditional Topic Random Field (CTRF) across all datasets. The improvement was most significant in long-form academic papers (NIPS/ICML), where structural dependencies are more complex.
Context-Aware Topic Assignment
Unlike LDA, which tends to assign the same topic to a word regardless of its role in a specific sentence, GTRF can shift a word's topic based on its neighbors in the dependency tree. Statistical tests showed that words linked by dependency edges had much higher topical similarity in GTRF than in LDA, proving the model successfully captures linguistic intuition and produces more "human-like" topic clusters.
Limitations and Future Work
While GTRF represents a significant step forward, the authors note a few areas for future refinement:
- Stability vs. Performance: There is a trade-off with the reward parameter. While a lower $\lambda_2$ (higher reward for coherence) improves predictive performance, it also makes the model less stable, leading to higher variance in results.
- Uniform Edge Weighting: Currently, GTRF treats all dependency edges as equal. In reality, a "subject-verb" relationship might be a stronger indicator of topical dependency than an "adjective-modifier" relationship. Future versions could weight edges discriminatively based on their specific linguistic type.
- Parser Dependency: The model's performance is inherently capped by the accuracy of the dependency parser used in the first step. Errors in parsing will inevitably lead to "noisy" topical dependencies.
Summary updated