Abstract
Previously topic models such as PLSI (Probabilistic Latent Semantic Indexing) and LDA (Latent Dirichlet Allocation) were developed for modeling the contents of plain texts. Recently, topic models for processing hypertexts such as web pages were also proposed. The proposed hypertext models are generative models giving rise to both words and hyperlinks. This paper points out that to better represent the contents of hypertexts it is more essential to assume that the hyperlinks are fixed and to define the topic model as that of generating words only. The paper then proposes a new topic model for hypertext processing, referred to as Hypertext Topic Model (HTM). HTM defines the distribution of words in a document (i.e., the content of the document) as a mixture over latent topics in the document itself and latent topics in the documents which the document cites. The topics are further characterized as distributions of words, as in the conventional topic models. This paper further proposes a method for learning the HTM model. Experimental results show that HTM outperforms the baselines on topic discovery and document classification in three datasets.
Introduction
Traditional topic models like Latent Dirichlet Allocation (LDA) were designed for "plain text"—isolated documents with no external connections. However, the modern web is a dense thicket of hypertexts. Previous attempts to adapt topic models for hypertexts, such as Link-LDA, treated hyperlinks as variables to be "generated" by the model, much like words.
This paper argues that this approach is counter-intuitive for content-focused tasks. If the goal is to understand what a webpage is about, we should not attempt to predict which links it contains; instead, we should leverage existing links as high-quality context. The challenge lies in effectively "propagating" topical information across these links to better represent documents that might be word-sparse but link-rich.
The Hypertext Topic Model (HTM)
HTM is a generative model built within the Bayesian framework, extending the logic of LDA to the graph structure of the web. Unlike previous models that generate links, HTM treats hyperlinks as fixed structural constraints.
The Generative Process
In HTM, the word distribution of a document is defined as a mixture of internal and external topics. For every word in a document, the model decides between:
- Internal Topics: Latent topics inherent to the document itself.
- External Topics: Latent topics belonging to the documents it cites (outlinks).
This decision is controlled by a hyperparameter $\lambda$. If "Internal" is chosen, the model samples a topic from the current document’s distribution. If "External" is chosen, the model picks one of the cited documents and samples a topic from that document’s distribution. Finally, a word is drawn from the chosen topic. This allows the model to account for "anchor text" or citations where a document uses the vocabulary of its references.
Key Insights
- Links as Fixed Constraints: By assuming hyperlinks are given and fixed, HTM avoids the complexity of modeling link formation, allowing the model to focus on accurately representing word distributions.
- Topic Propagation: HTM allows topics to "flow" backward along links. For example, a homepage citing technical papers can be correctly identified as belonging to that technical field even if the homepage itself lacks specific keywords.
- Disentangling Content: The model is particularly effective for "hub" pages. While other models might see a jumble of topics, HTM can attribute specific clusters of words to specific cited works, leading to cleaner topic discovery.
Experimental Evaluation
The authors evaluated HTM on three distinct datasets: WebKB (computer science pages), Wikipedia (science-focused documents with high link density), and ODP (researcher homepages).
Key Results
HTM consistently outperformed LDA and existing hypertext models (Link-LDA and Link-PLSA-LDA) across all tests:
- Classification Accuracy: On the ODP dataset, HTM achieved an accuracy of 0.698, significantly higher than LDA (0.640) and Link-PLSA-LDA (0.581).
- Topic Purity: Qualitative analysis showed that HTM extracted distinct, recognizable topics (e.g., "Statistics," "Neural Networks") where baseline models often produced "Mixed" topics that were harder to interpret.
- Statistical Significance: Sign-tests confirmed that HTM's improvements were statistically significant ($p < 0.05$) in nearly all experimental scenarios.
Conclusion
HTM demonstrates that treating hyperlinks as fixed context rather than generated data leads to superior topic modeling for hypertexts. By allowing topics to propagate through the link structure, HTM provides a more robust representation of linked documents. Future work may involve exploring non-uniform link weighting, as some citations are inherently more influential than others, and scaling the inference methods for extremely large-scale datasets.
Summary updated