Relational Topic Models for Document Networks

Jonathan D. Chang, David M. BleiAISTATS 2009

Introduction

In modern information systems, documents are rarely isolated entities. They exist within complex networks: scientific papers are linked by citations, web pages by hyperlinks, and social media posts by user interactions. Traditionally, these data sources have been analyzed in silos. Topic models like Latent Dirichlet Allocation (LDA) focus on internal word distributions to uncover latent themes but ignore network topology. Conversely, network analysis focuses on the "who links to whom" structure, often treating nodes as content-less entities.

The Relational Topic Model (RTM) bridges this gap by providing a generative framework that jointly models document content and the network of links. The core intuition is that links are not random; they are driven by the content and shared topics of the connected documents.

The Relational Topic Model (RTM)

RTM extends the standard LDA framework. In LDA, each document is represented as a mixture of topics, and each word is drawn from a specific topic. RTM introduces a link probability function, $\psi$, which models the existence of a link between any pair of documents as a binary random variable.

The graphical model for a pair of documents in the RTM, showing how link $y$ is influenced by topic assignments $z$.

The "coupling" between text and links is achieved by making the link probability dependent on the topic assignments of the words within the documents. Specifically, the probability of a link between document $d$ and $d'$ is conditioned on the Hadamard product (element-wise multiplication) of their topic distributions. This captures the idea that documents are more likely to link if they share overlapping latent themes. The authors explored two primary link functions: a logistic (sigmoid) function and an exponential mean function, the latter of which often demonstrated superior empirical performance.

Experimental Evaluation

The model was evaluated on three benchmark datasets:

  • Cora: Scientific paper abstracts and their citation links.
  • WebKB: Computer science department web pages linked by hyperlinks.
  • PNAS: Abstracts from the Proceedings of the National Academy of Sciences linked by internal citations.

The RTM was compared against several baselines, including a two-stage "LDA + Regression" approach (where topics are learned first and then used to predict links) and the Mixed-Membership stochastic block model.

Key Results

The RTM consistently outperformed independent models in both link prediction and word prediction tasks. By learning topics and links simultaneously, the model identifies "relational" topics—themes that are not just statistically prevalent in the text but are also highly predictive of network connections.

Performance comparison across Cora, WebKB, and PNAS datasets. $\Psi_\sigma$ and $\Psi_e$ represent the logistic and exponential RTM variants, respectively.

Key findings include:

  • Link Prediction: On the Cora dataset, the Exponential RTM showed a 6% improvement in log-likelihood over the baseline.
  • Precision: RTM improved citation suggestion precision by 80% compared to the two-stage LDA + Regression approach.
  • Cold Start Capability: Because link probability is tied to text, RTM can predict potential citations for a new document that has not yet been integrated into the network.
  • Bidirectional Utility: The model can predict likely words for a document based on its neighbors in the network, using the link structure to "smooth" the topic distribution.

Conclusion

The Relational Topic Model demonstrates that document content and network structure are deeply intertwined. By modeling them jointly, RTM provides a more robust framework for link prediction and content analysis. While more computationally intensive than standard LDA, its ability to handle "cold start" scenarios and improve predictive precision makes it a powerful tool for navigating and understanding large-scale document networks.

Summary updated

BibTeX
@article{chang2009relational,
  author = {Jonathan D. Chang and David M. Blei},
  title = {{Relational Topic Models for Document Networks}},
  journal = {AISTATS},
  year = {2009},
}
Figure