A Deep Latent Space Model for Graph Representation Learning

Hanxuan Yang, Qingchao Kong, Wenji MaoarXiv 2021 · DOI

Abstract

Graph representation learning is a fundamental problem for modeling relational data and benefits a number of downstream applications. Traditional Bayesian-based graph models and recent deep learning based GNN either suffer from impracticability or lack interpretability, thus combined models for undirected graphs have been proposed to overcome the weaknesses. As a large portion of real-world graphs are directed graphs, in this paper, we propose a Deep Latent Space Model (DLSM) for directed graphs to incorporate the traditional latent variable based generative model into deep learning frameworks. Our proposed model consists of a graph convolutional network (GCN) encoder and a stochastic decoder, which are layer-wise connected by a hierarchical variational auto-encoder architecture. By specifically modeling the degree heterogeneity using node random factors, our model possesses better interpretability in both community structure and degree heterogeneity. The experiments on real-world datasets show that the proposed model achieves the state-of-the-art performances on both link prediction and community detection tasks while learning interpretable node embeddings.

Introduction

Graph representation learning—the process of mapping complex network data into low-dimensional vector spaces—is critical for tasks such as link prediction and community detection. However, existing methods often face a trade-off between scalability and interpretability. Traditional Bayesian models offer clear insights into network structure but struggle with large-scale data due to computationally expensive inference methods like MCMC. Conversely, modern Graph Neural Networks (GNNs) provide high performance and scalability but often operate as "black boxes."

Furthermore, most hybrid models have focused on undirected graphs. Real-world networks, such as citation or social media follow-graphs, are inherently directed. These networks exhibit "degree heterogeneity," where a small number of nodes possess a disproportionately high number of incoming or outgoing edges. The Deep Latent Space Model (DLSM) addresses these challenges by providing a scalable, interpretable framework specifically designed for directed graphs.

The DLSM Framework

DLSM utilizes a Hierarchical Variational Auto-Encoder (HVAE) architecture to bridge the gap between deterministic deep learning and stochastic latent variable modeling.

Architecture of the Deep Latent Space Model (DLSM) showing the GCN encoder and LSM stochastic decoder.

The Encoder

The model employs a directed GCN encoder that processes the graph's adjacency matrix ($A$) and node attributes ($X$). Unlike standard GCNs, this encoder explicitly accounts for in-degrees and out-degrees during normalization, ensuring that the directionality of edges is preserved in the hidden states.

The Decoder

The stochastic decoder is the interpretable core of the model. It generates four distinct types of latent variables to represent node characteristics:

  • Latent Positions ($z$): Coordinates in a multi-dimensional "social space."
  • Community Memberships ($s$): Indicators of group affiliation, allowing for overlapping communities.
  • Activity Factors ($\gamma$): A node's propensity to initiate edges (out-degree).
  • Popularity Factors ($\delta$): A node's propensity to receive edges (in-degree).

The probability of an edge existing from node $i$ to node $j$ is determined by the distance between their latent positions, scaled by node $i$'s activity and node $j$'s popularity. This effectively treats activity and popularity as distance scales: a highly popular node "shrinks" the distance for incoming edges, making them more likely.

Experimental Evaluation

The authors evaluated DLSM on diverse real-world directed networks, including citation networks (Kohonen, DBLP), social trust networks (CiaoDVD, WikiVote), and organizational communication (Emails, British MP). For inference, the model uses Stochastic Gradient Variational Bayes (SGVB), allowing for efficient training via backpropagation.

Link prediction performance (AUC) across various datasets.

As shown in the results, DLSM consistently outperforms established baselines like VGAE and Graphite. In link prediction tasks on the DBLP dataset, DLSM achieved an AUC of 0.946, significantly higher than the 0.707 achieved by standard VGAE. The model also demonstrated superior performance in community detection; on the Emails dataset, DLSM reached 81.6% accuracy, a substantial improvement over the next best deep learning baseline, LGVG (63.8%).

Conclusion

DLSM represents a significant advancement in graph representation learning by combining the representational power of GNNs with the interpretability of latent space models. By explicitly modeling degree heterogeneity and using a hierarchical structure to capture multi-level community features, it provides a robust framework for analyzing complex directed networks. Future work may extend this model to handle weighted edges and dynamic, time-evolving graph topologies.

Summary updated

BibTeX
@misc{yang2021deep,
  author = {Hanxuan Yang and Qingchao Kong and Wenji Mao},
  title = {{A Deep Latent Space Model for Graph Representation Learning}},
  year = {2021},
  eprint = {2106.11721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.11721},
}
Figure