Latent Topic Models for Hypertext

Amit Gruber, Michal Rosen-Zvi, Yair WeissUAI 2008

Abstract

Latent topic models have been successfully applied as an unsupervised topic discovery technique in large document collections. With the proliferation of hypertext document collection such as the Internet, there has also been great interest in extending these approaches to hypertext. These approaches typically model links in an analogous fashion to how they model words - the document-link co-occurrence matrix is modeled in the same way that the document-word co-occurrence matrix is modeled in standard topic models. In this paper we present a probabilistic generative model for hypertext document collections that explicitly models the generation of links. Specifically, links from a word $w$ to a document $d$ depend directly on how frequent the topic of $w$ is in $d$, in addition to the in-degree of $d$. We show how to perform EM learning on this model efficiently. By not modeling links as analogous to words, we end up using far fewer free parameters and obtain better link prediction results.

Introduction

In the early days of the web, researchers realized that the "glue" holding the internet together—hyperlinks—contained as much information as the text itself. However, early attempts to combine these two worlds often treated links as just "extra words." In this paper, Gruber, Rosen-Zvi, and Weiss argue that links deserve a more sophisticated generative story. They introduce the Latent Topic Hypertext Model (LTHM), a generative model that treats hyperlinks not as additional vocabulary, but as semantic bridges.

Standard topic models like Latent Dirichlet Allocation (LDA) excel at finding themes in a "bag of words," but they are blind to the connectivity of hypertext. Previous extensions, such as link-LDA, attempted to bridge this gap by treating a link to "Document A" as if it were just another word in the vocabulary.

This approach suffers from two major flaws:

  1. Parameter Explosion: If a model has $K$ topics and $D$ documents, treating links as words adds $K \times D$ parameters. In large collections, this leads to massive overfitting.
  2. Ignoring Target Content: These models do not account for the content of the document being linked to; they only track citation frequency.

The authors sought a model where the decision to link depends on the semantic content of both the source and the target.

The Latent Topic Hypertext Model (LTHM)

The LTHM uses a two-stage generative process to couple text and topology:

  1. Text Generation: The model generates the words of all documents using a standard LDA approach, where each word is assigned a latent topic.
  2. Link Generation: For every word in a document, the model decides whether to create an outgoing link. It picks a potential target document based on that document's overall "importance" (roughly its in-degree). Crucially, a link is only formed if the topic of the source word matches a topic sampled from the target document’s distribution.
Comparison of graphical models: (a) LDA, (b) link-LDA, (c) LTHM, and (d) LTHM with document-specific parameters.

To make this work at scale, the authors developed an efficient Expectation-Maximization (EM) algorithm. While the number of potential latent variables is quadratic (every word could link to every document), they utilize mathematical symmetries to keep the computation time linear relative to the corpus size.

Experimental Evaluation

The model was evaluated on two primary datasets:

  • Wikipedia: A small, curated set of 105 documents with 799 links, starting from the "NIPS" entry.
  • WebKB: A larger, noisier dataset consisting of 8,282 web pages from computer science departments, containing 12,911 links.

Key Results

The authors compared LTHM against link-PLSA, link-LDA, and a simple frequency-based baseline.

  • Superior Generalization: On the Wikipedia test set, LTHM significantly outperformed all other methods in link prediction precision and recall.
  • Overfitting in Rivals: While link-PLSA and link-LDA performed well on training data, their performance plummeted on the test set, indicating they were "memorizing" specific links rather than learning semantic patterns.
  • Semantic Clarity: Qualitatively, LTHM assigned higher weights to relevant topics for short documents by leveraging the high-quality links pointing to them.

Conclusion

By modeling links as a function of document importance and topic matching rather than topic-specific document preferences, LTHM uses significantly fewer parameters than its predecessors. This parsimony prevents overfitting and forces the model to learn generalizable semantic patterns. Future work may involve integrating the model with Hidden Topic Markov Models (HTMM) to account for local topic transitions and moving beyond single-word link anchors to capture the context of phrases or entire sections.

Summary updated

BibTeX
@inproceedings{gruber2008latent,
  author = {Amit Gruber and Michal Rosen-Zvi and Yair Weiss},
  title = {{Latent Topic Models for Hypertext}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2008},
  url = {https://openreview.net/forum?id=E5chu232o7},
}
Figure