Abstract
Oftentimes documents are linked to one another in a network structure, e.g., academic papers cite other papers, Web pages link to other pages. In this paper we propose a holistic topic model to learn meaningful and unified low-dimensional representations for networked documents that seek to preserve both textual content and network structure. On the basis of reconstructing not only the input document but also its adjacent neighbors, we develop two neural encoder architectures. Adjacent-Encoder, or AdjEnc, induces competition among documents for topic propagation, and reconstruction among neighbors for semantic capture. Adjacent-Encoder-X, or AdjEnc-X, extends this to also encode the network structure in addition to document content. We evaluate our models on real-world document networks quantitatively and qualitatively, outperforming comparable baselines comprehensively.
Introduction
Traditional topic models, such as Latent Dirichlet Allocation (LDA) or standard neural Auto-Encoders, typically treat documents as independent entities. However, in many real-world scenarios, documents are part of a network: academic papers cite each other, and web pages are linked via hyperlinks. While some models incorporate network structure, they often do so as a secondary constraint or struggle to balance textual content with graph topology.
The challenge is to create a "holistic" representation that captures both what a document says and its position in the network. If two documents are linked, they likely share underlying topics; this relationship should be central to the learning process.
Methodology
We propose two novel neural architectures based on the Auto-Encoder framework: Adjacent-Encoder (AdjEnc) and Adjacent-Encoder-X (AdjEnc-X).
Adjacent-Encoder (AdjEnc)
Instead of the standard "input $A \rightarrow$ reconstruct $A$" pipeline, AdjEnc uses a target document to reconstruct its neighbors. This approach incorporates several key mechanisms:
- Neighbor Competition: An attention mechanism determines which neighbors are most relevant to the target document, preventing "topic drift" in dense or noisy networks.
- Topic Propagation: Topics from neighbors are propagated to the target document, allowing the network to "collaborate" during learning.
- Neighbor Reconstruction: In the decoding phase, the model attempts to reconstruct the word counts of adjacent neighbors. This acts as a natural form of regularization, forcing the model to find invariant topic features that persist across related documents.
Adjacent-Encoder-X (AdjEnc-X)
This version explicitly models the network structure. It takes both the document’s text and its adjacency vector (who it links to) as inputs. It then jointly reconstructs both the text and the network links of its neighbors. This dual approach proves particularly powerful for capturing higher-order proximities.
Experimental Evaluation
The models were evaluated on four subsets of the Cora citation dataset: Data Structure (DS), Hardware and Architecture (HA), Machine Learning (ML), and Programming Language (PL). These datasets provide both clear textual content (abstracts) and a well-defined citation network.
Key Results
- Superior Classification: In transductive settings, AdjEnc-X achieved classification accuracies significantly higher than baselines. For example, it reached 0.857 on the ML dataset vs. 0.762 for the KATE baseline.
- Robust Link Prediction: The models were highly effective at predicting missing links, suggesting the learned topic space accurately reflects the underlying graph topology.
- Topic Coherence: Using Pointwise Mutual Information (PMI), AdjEnc models consistently produced more coherent topics than standard Auto-Encoders.
- Generalization: The models performed well in inductive settings, effectively representing new, unseen documents added to the network after training.
Conclusion
Adjacent-Encoder and AdjEnc-X offer a powerful way to integrate network structure into topic modeling. By treating neighbors as "natural noise" for reconstruction, the models learn more robust and semantically meaningful representations. Future work will address computational complexity in extremely dense networks and explore the application of these models to purely directed web-link data.
Summary updated