Abstract
Representing networks in a low dimensional latent space is a crucial task with many interesting applications in graph learning problems, such as link prediction and node classification. A widely applied network representation learning paradigm is based on the combination of random walks for sampling context nodes and the traditional Skip-Gram model to capture center-context node relationships. In this paper, we emphasize on exponential family distributions to capture rich interaction patterns between nodes in random walk sequences. We introduce the generic exponential family graph embedding model, that generalizes random walk-based network representation learning techniques to exponential family conditional distributions. We study three particular instances of this model, analyzing their properties and showing their relationship to existing unsupervised learning models. Our experimental evaluation on real-world datasets demonstrates that the proposed techniques outperform well-known baseline methods in two downstream machine learning tasks.
Introduction
In graph learning, the primary objective is to map nodes into low-dimensional vectors—embeddings—that preserve the network's structural properties. Prevailing methods like DeepWalk and node2vec adapt the Skip-Gram architecture from Natural Language Processing, treating random walks as sentences and nodes as words.
However, the standard Skip-Gram model typically employs a softmax function to model the probability of a "context" node appearing near a "center" node. This approach is fundamentally binary: it merely records whether a node appeared within a specific window. This paper argues that such a view is overly restrictive. Real-world networks often exhibit varying interaction strengths or multiple occurrences of a node within a context window. By ignoring these counts or weights, standard models may discard significant structural information.
The EFGE Framework
The researchers propose the Exponential Family Graph Embedding (EFGE) framework. EFGE replaces the standard softmax with conditional distributions from the exponential family. The probability of an interaction $y$ between nodes is modeled as:
$$p(y) = h(y) \exp(\eta T(y) - A(\eta))$$
where the natural parameter $\eta$ is defined as the dot product of the center and context node embeddings.
The paper explores three specific instances of this framework:
- EFGE-BERN (Bernoulli): Models binary occurrence. The authors prove that this variant, when used with negative sampling, converges to the same objective as the traditional Skip-Gram model.
- EFGE-POIS (Poisson): Models the count of how many times a node appears in a context window, effectively capturing local density and community structures.
- EFGE-NORM (Normal/Gaussian): Models interactions as continuous weights, allowing for a more nuanced representation of node relationships.
To maintain scalability, the model utilizes Stochastic Gradient Descent (SGD) combined with a generalized version of negative sampling, ensuring computational complexity remains on par with existing Skip-Gram methods.
Experimental Setup and Results
The models were evaluated on diverse real-world networks, including citation networks (CiteSeer, Cora), co-authorship networks (DBLP, AstroPh, HepTh, GrQc), and social networks (Facebook).
Node Classification
EFGE models consistently outperformed baselines. Notably, on the CiteSeer dataset, EFGE-NORM achieved a Micro-F1 score improvement of up to 9.33% over the best-performing baseline when training data was sparse (2%).
Link Prediction
In predicting missing edges, EFGE-NORM and EFGE-POIS showed superior performance. For instance, on the AstroPh dataset, EFGE-NORM achieved an AUC of 0.973, outperforming node2vec (0.969) and NETMF (0.897).
Sensitivity to Window Size
Unlike the Bernoulli model (and node2vec), which can degrade with excessively large context windows, EFGE-POIS and EFGE-NORM benefit from larger windows. They accurately model the increased counts and interactions that occur within larger neighborhoods.
Key Insights
A qualitative comparison of the embedding spaces reveals how different distributions capture network structure.
- Generalization: DeepWalk is shown to be a specific case (Bernoulli) of the broader EFGE framework.
- Frequency as a Signal: The success of EFGE-POIS suggests that the frequency of node visits in a random walk contains vital structural signals, particularly for identifying communities.
- Community Detection Link: The objective function of EFGE-POIS is theoretically linked to BigClam, a well-known algorithm for overlapping community detection, explaining its proficiency in capturing community-level features.
- Robustness of Gaussian Priors: EFGE-NORM's effectiveness across datasets suggests that treating node proximity as a weighted Gaussian relationship is a powerful heuristic for graph structure.
Conclusion and Future Work
EFGE demonstrates that leveraging exponential family distributions significantly enhances the quality of graph embeddings. Future work may explore other distributions like Gamma or Exponential for power-law graphs, investigate non-linear link functions $f(\cdot)$, or integrate these objectives with Graph Neural Network (GNN) architectures.
Summary updated