Abstract
Network embedding is an influential graph mining technique for representing nodes in a graph as distributed vectors. However, the majority of network embedding methods focus on learning a single vector representation for each node, which has been recently criticized for not being capable of modeling multiple aspects of a node. To capture the multiple aspects of each node, existing studies mainly rely on offline graph clustering performed prior to the actual embedding, which results in the cluster membership of each node (i.e., node aspect distribution) fixed throughout training of the embedding model. We argue that this not only makes each node always have the same aspect distribution regardless of its dynamic context, but also hinders the end-to-end training of the model that eventually leads to the final embedding quality largely dependent on the clustering. In this paper, we propose a novel end-to-end framework for multi-aspect network embedding, called asp2vec, in which the aspects of each node are dynamically assigned based on its local context. More precisely, among multiple aspects, we dynamically assign a single aspect to each node based on its current context, and our aspect selection module is end-to-end differentiable via the Gumbel-Softmax trick. We also introduce the aspect regularization framework to capture the interactions among the multiple aspects in terms of relatedness and diversity. We further demonstrate that our proposed framework can be readily extended to heterogeneous networks. Extensive experiments towards various downstream tasks on various types of homogeneous networks and a heterogeneous network demonstrate the superiority of asp2vec.
1. Introduction
Network embedding has become a cornerstone of graph analysis, enabling downstream tasks like link prediction and node classification. Traditional approaches like DeepWalk and node2vec typically assign a single vector to each node. However, real-world entities are often "polysemous," participating in multiple communities or roles simultaneously. For instance, a researcher might be active in both "Machine Learning" and "Bioinformatics." A single vector representation often collapses these distinct roles into a single average, losing critical structural information.
Existing multi-aspect embedding methods attempt to solve this by assigning multiple vectors per node. However, they often rely on a two-step process: offline clustering followed by embedding. This approach has two major drawbacks. First, the aspect assignment is static; a node's role is fixed regardless of the specific neighbors it interacts with in a given context. Second, the pipeline is not end-to-end differentiable, making the final embedding quality heavily dependent on the initial clustering step.
2. Methodology
To address these limitations, we propose asp2vec, an end-to-end framework that dynamically assigns aspects based on local context.
2.1 Context-Based Aspect Selection
Instead of a global cluster label, asp2vec determines a node's aspect by examining its immediate neighbors in a random walk. This allows the model to capture the specific role a node plays in a particular local interaction. By dynamically selecting aspects during random walks, asp2vec captures node polysemy much more accurately than global clustering.
2.2 Differentiable Selection via Gumbel-Softmax
Selecting a discrete aspect is inherently non-differentiable, which prevents standard backpropagation. We employ the Gumbel-Softmax trick to approximate this discrete choice with a differentiable sample. This innovation allows the entire model to be trained end-to-end, providing significant performance boosts—up to 29% in some cases compared to standard softmax approaches.
2.3 Aspect Regularization
We introduce a regularization framework to manage the relationship between aspects. We argue that aspects should be diverse enough to capture different roles but can be related if they share underlying characteristics. By using a thresholded similarity penalty ($\epsilon$), we encourage aspects to remain distinct while allowing natural overlaps between related fields (e.g., Data Mining and Databases).
3. Experiments and Results
We evaluated asp2vec on 13 real-world datasets, including social networks (e.g., BlogCatalog, Flickr), biological networks (PPI), and academic networks (e.g., Cora, DBLP).
In link prediction tasks, asp2vec consistently outperformed state-of-the-art baselines. For example, on the BlogCatalog dataset, asp2vec achieved an AUC-ROC of 0.9503, significantly higher than DeepWalk (0.8734) and PolyDW (0.7505). The performance gains were particularly pronounced in networks with high node polysemy, such as social and biological networks. In the heterogeneous DBLP task, asp2vec-het surpassed specialized models like Camel and TaPEm, demonstrating the robustness of dynamic aspect selection even in complex, multi-typed graphs.
4. Conclusion
asp2vec introduces a paradigm shift in multi-aspect network embedding by replacing static clustering with dynamic, context-aware aspect selection. By leveraging the Gumbel-Softmax trick for end-to-end differentiability and incorporating a flexible aspect regularization scheme, asp2vec achieves superior performance across diverse network types while maintaining parameter efficiency.
Summary updated