Abstract
Standard probabilistic topic models like Latent Dirichlet Allocation (LDA) often ignore the rich semantic relationships between words, treating them as independent entities. This paper introduces MRF-LDA, a model that integrates external word correlation knowledge using a Markov Random Field (MRF). By placing soft constraints on latent topic assignments, MRF-LDA encourages related words to cluster together while remaining flexible enough to handle polysemy—where a single word carries different meanings in different contexts. Evaluations on standard datasets show that MRF-LDA significantly improves topic coherence and reduces noise compared to traditional approaches.
Introduction
Probabilistic Topic Models (PTMs) are essential tools for discovering underlying themes in large document collections. However, most PTMs rely on a "bag-of-words" assumption, assuming words are generated independently. This ignores valuable external knowledge, such as synonyms or semantic correlations found in resources like WordNet or Wikipedia.
Previous attempts to incorporate this knowledge often used rigid "must-link" constraints, forcing similar words to share the same distribution across all topics. This approach fails to account for polysemy. For example, "apple" is related to "orange" in a fruit-related topic but related to "microsoft" in a technology-related topic. Forcing a global similarity between "apple" and "orange" can degrade the model's ability to distinguish between diverse contexts. MRF-LDA addresses this by making word similarity context-dependent.
Methodology: The MRF-LDA Framework
The authors propose integrating external knowledge into the LDA framework via a Markov Random Field layer.
The MRF Layer and Soft Regularization
Instead of sampling topics independently for each word, MRF-LDA defines an undirected graph over the latent topic assignments ($z$). If external knowledge indicates that word $A$ and word $B$ are correlated, an edge is drawn between their respective topic labels in the model.
The MRF uses a potential function to provide "soft" regularization. This encourages connected nodes to share the same topic label without forcing them. If the surrounding text strongly suggests a different topic for a word, the model can override the external suggestion, allowing for the flexible handling of polysemous terms.
Variational Inference
Coupling an undirected MRF with a directed LDA model introduces significant computational challenges, particularly regarding the normalization constant (partition function). The authors derive a novel variational inference method using Taylor expansions and Jensen’s inequality to create a tractable lower bound for optimization, ensuring the model can scale to real-world datasets.
Experimental Evaluation
The model was evaluated on two classic text datasets: 20-Newsgroups (18,846 posts) and NIPS (1,500 research papers). External knowledge was sourced from Web Eigenwords, real-valued vector representations where words were considered correlated if their cosine similarity exceeded 0.99.
Qualitative Results
MRF-LDA demonstrates a clear ability to "clean up" topics by pushing down high-frequency, low-meaning noise words. In the "Sex" topic on 20-Newsgroups, standard LDA included irrelevant terms like "com" and "cramer." In contrast, MRF-LDA produced a semantically tighter cluster including "men," "women," "homosexual," and "child."
Quantitative Coherence
Using a Coherence Measure (CM) based on human judgment of the top 10 words in a topic:
- 20-Newsgroups: MRF-LDA achieved 60.8% coherence, more than doubling standard LDA (28.5%) and outperforming other knowledge-based models like Quad-LDA (36.8%).
- NIPS: MRF-LDA reached 85.8% coherence, compared to 73% for LDA.
Conclusion
MRF-LDA successfully bridges the gap between directed graphical models and undirected Markov Random Fields to incorporate semantic knowledge into topic modeling. By focusing on latent topic correlations rather than word distributions, it handles polysemy effectively and produces more interpretable topics. While the MRF layer adds computational complexity and depends on the quality of external word vectors, it provides a robust framework for enhancing automated text analysis with human-like semantic understanding.
Summary updated