Introduction
The Graph Relational Topic Model (GRTM) presents a sophisticated approach to learning document representations by integrating textual content with complex, multi-hop network structures. Traditional Relational Topic Models (RTMs) typically focus on direct (first-order) neighbors, often missing the rich semantic information embedded in "friend-of-a-friend" relationships. While Graph Neural Networks (GNNs) can explore deeper connections, they frequently encounter the "over-smoothing" problem, where node representations become indistinguishable as more layers are added. GRTM overcomes these challenges using a Higher-order Graph Attention Network (HGAT) and a log-normal prior, capturing distant correlations without sacrificing unique semantic identity.
Methodology
The GRTM framework is built upon a Variational Auto-encoder (VAE) architecture, featuring several key innovations:
- Higher-order Document Proximity Network (HDPN): To avoid the noise associated with simple adjacency matrix powers, the model pre-calculates proximity based on the shortest path between documents.
- Higher-order Graph Attention Network (HGAT): Serving as the encoder, HGAT produces topic distributions. It incorporates a log-normal prior into the attention mechanism. This distribution naturally decays, allowing the model to weight neighbors' influence based on their distance (number of hops).
- Probabilistic Framework: The model utilizes a logistic normal distribution to approximate the Dirichlet distribution, enabling the use of the "reparameterization trick" for efficient neural network training.
The decoder reconstructs both the document's words and the network links, ensuring the latent space effectively captures both textual and relational signals.
Experimental Setup
The model was rigorously evaluated on four subsets of the Cora citation dataset:
- DS (Data Structure)
- HA (Hardware and Architecture)
- ML (Machine Learning)
- PL (Programming Language)
These datasets provide a standard benchmark, including document word counts, class labels, and citation links.
Key Insights
- Shortest Paths vs. Random Walks: Explicit shortest path calculations are preferred over random walks. Random walks can redundantly revisit neighbors, whereas shortest paths ensure the model accurately targets specific orders of proximity.
- Inductive Bias of the Log-Normal Prior: Unlike uniform priors, the log-normal prior provides a natural bias where closer neighbors are generally more relevant, yet distant ones still contribute valuable context.
- Efficiency of Single-Layer HGAT: The authors discovered that a single-layer HGAT often performs best. Since higher-order information is already encoded in the HDPN via shortest paths, additional GNN layers tend to introduce noise rather than useful signal.
Results and Discussion
GRTM was benchmarked against competitive baselines, including VGAE (Graph Variational Auto-encoder) and standard RTM, across tasks such as document classification, clustering, and link prediction.
- Superior Performance: GRTM consistently outperformed all baselines across the four datasets. As shown in the comparison on the PL dataset, GRTM maintains high accuracy even as the number of topics varies.
- Topic Coherence: Using the Pointwise Mutual Information (PMI) metric, GRTM demonstrated higher topic coherence, producing more semantically meaningful word groupings than models that ignore network structure.
- Ablation Studies: Removing either the HDPN or HGAT components resulted in significant performance drops, confirming that both higher-order structural modeling and the specific attention mechanism are vital.
Limitations and Future Work
While effective, calculating shortest paths for extremely large graphs can be computationally intensive, though this is a one-time pre-processing cost. Additionally, the model is sensitive to the variance ($\sigma$) of the log-normal prior; improper tuning can lead to either noise sensitivity or the loss of higher-order information. Future research may explore more complex prior distributions and the integration of diverse relational data types beyond simple links.
Summary updated