Abstract
Standard topic models like Latent Dirichlet Allocation (LDA) treat documents as independent entities, ignoring the rich relational structures—such as citations or hyperlinks—that often connect them. This paper introduces xLDA, a topic model that improves upon LDA by conditioning document-topic distributions on external relations using a Relational Gaussian Process. By treating links as observed features rather than generative targets, xLDA avoids the computational complexity of traditional Relational Topic Models (RTMs) while achieving superior predictive performance and semantic consistency.
Introduction
Topic modeling has long been a staple for uncovering latent themes in large text corpora. However, the independence assumption in models like LDA fails to capture the networked nature of real-world data, such as scientific literature or web pages. While Relational Topic Models (RTMs) attempt to address this by modeling the probability of links, they often suffer from high computational costs and mathematical intractability. The authors propose xLDA to leverage relational information as a prior for topic distributions, improving model accuracy without the overhead of link prediction.
Methodology
The core of xLDA is a Dirichlet-multinomial nonparametric regression framework. Unlike generative models, xLDA treats relations and metadata as observed features that influence the document-specific topic prior $\alpha_d$.
The model employs a Relational Gaussian Process (GP) to define Dirichlet hyperparameters. The GP's covariance function integrates three distinct components:
- Per-document metadata ($\Sigma_Y$): Captures similarities based on attributes like authorship.
- Relation-wise metadata ($\Sigma_R$): Captures network-based similarities, such as citations.
- Topic metadata ($\Sigma_T$): Learns latent correlations between topics.
Inference is performed using a stochastic EM algorithm, alternating between sampling topics and optimizing GP parameters. This approach keeps the word-sampling phase computationally efficient, comparable to standard LDA.
Experimental Evaluation
The model was evaluated on two real-world networked datasets:
- Cora: A collection of 2,410 computer science research abstracts with 4,356 citation links.
- Wikipedia: A dense subset of 105 pages processed into a "co-citation" structure.
Results showed that xLDA consistently outperformed LDA and Dirichlet Multinomial Regression (DMR) in terms of perplexity across different percentages of observed words. Performance gains remained stable even as the number of topics ($K$) increased.
Key Insights
- Information Borrowing: xLDA effectively "borrows" topic information from neighboring documents in the network, allowing for accurate topic estimation even with minimal text.
- Semantic Consistency: Using Hellinger distance, the authors demonstrated that xLDA assigns more similar topic profiles to linked documents than independent models.
- Latent Correlations: The model successfully identifies relationships between topics (e.g., "Science" and "Intelligence") through its latent metadata component ($X$).
Conclusion and Future Work
While xLDA excels at topic modeling in networked data, it is not designed for link prediction. Future work includes scaling the Gaussian Process component for massive datasets using sparse extensions and exploring multi-relational GPs to handle diverse link types simultaneously.
Summary updated