Abstract
Node embeddings for directed graphs often struggle with sparsity, particularly for nodes with zero in-degree or out-degree. This limitation arises because traditional methods learn "source" and "target" vectors independently. We present DGGAN (Directed Graph Generative Adversarial Network), a framework that jointly learns these representations through a minimax game between a discriminator and two coupled generators sharing a latent space. This mutual reinforcement allows DGGAN to infer robust embeddings even for nodes with incomplete connectivity, significantly outperforming baselines in link prediction, graph reconstruction, and node classification tasks.
Introduction
Graph embedding is a fundamental technique for mapping high-dimensional network structures into low-dimensional vector spaces, enabling downstream tasks such as link prediction and node classification. While methods like DeepWalk and node2vec have seen success in undirected graphs, they often fail to capture the inherent asymmetry of directed networks, such as social media followings or citation indices. To address directionality, models typically assign two vectors to each node: a source vector for outgoing edges and a target vector for incoming edges. However, the independent training of these vectors leads to significant performance degradation in sparse regions of the graph.
The Zero-Degree Blind Spot
A major challenge in directed graph embedding is the presence of nodes with zero in-degree or out-degree. In a typical Twitter dataset, for instance, many users may follow others (high out-degree) but have no followers themselves (zero in-degree).
When source and target vectors are trained independently, a node with zero in-degree never receives updates for its target vector, leaving it poorly defined. This "blind spot" hinders the model's ability to generalize and accurately predict potential future connections. Older matrix-factorization methods also struggle to scale to the massive datasets where these sparsity issues are most prevalent.
The DGGAN Framework
To overcome the limitations of independent training, we propose DGGAN. The architecture utilizes a Generative Adversarial Network (GAN) approach where a discriminator ($D$) and two generators ($G^s$ and $G^t$) compete in a minimax game.
The core innovation lies in the coupling of the generators. Both $G^s$ (generating fake source neighbors) and $G^t$ (generating fake target neighbors) are fed a shared latent variable $z$ drawn from a continuous Gaussian distribution. By processing this shared variable through Multi-Layer Perceptrons (MLPs), an update to one generator indirectly informs the other. This coupling allows the model to leverage a node's source behavior to infer its latent target characteristics, effectively bridging the gap created by zero-degree nodes.
Experimental Evaluation
DGGAN was evaluated against several state-of-the-art baselines, including DeepWalk, LINE, node2vec, and HOPE, across five diverse datasets: Cora, CoCit, Twitter, Epinions, and Google.
Link Prediction and Graph Reconstruction
DGGAN achieved superior performance in link prediction, particularly on the Google dataset, where it reached an AUC score of 94.4%, outperforming the next best baseline (LINE-2) by over 5%. In graph reconstruction tasks, which measure the ability to rebuild the original network from embeddings, DGGAN showed a ~33% improvement in Precision@1 over the second-best method, HOPE, on the Google dataset.
Node Classification and Scalability
Beyond connectivity-based tasks, DGGAN demonstrated strong generalization in node classification on the Cora and CoCit datasets. Unlike some baselines that excel in link prediction but fail in classification (e.g., HOPE), DGGAN maintained high Micro-F1 and Macro-F1 scores across varying training ratios. Furthermore, the model's time complexity scales linearly with the number of edges $O(|E|)$, ensuring its applicability to large-scale real-world networks.
Conclusion
DGGAN addresses the fundamental flaw of independent source-target vector training in directed graph embeddings. By employing coupled generators in an adversarial framework, the model captures the implicit relationship between a node's incoming and outgoing roles. This approach not only solves the zero-degree problem but also provides a robust, scalable solution for a wide range of graph-based machine learning applications.
Summary updated