Abstract
Standard network embedding models typically map each node to a single vector. However, real-world entities are often "polysemous," playing multiple roles or possessing diverse interests. This paper introduces a framework for polysemous network embedding, allowing nodes to possess multiple vectors (facets) that are activated based on context. This approach leads to significant performance gains in classification and link prediction tasks across various network types.
Introduction: The Problem of Node Polysemy
Most graph embedding techniques, such as DeepWalk or node2vec, aim to map each node to a single point in a continuous vector space. While effective for many tasks, a single vector is often insufficient to capture the complexity of real-world entities.
Consider a user in a movie recommendation network who enjoys both "slasher horrors" and "romantic comedies." In a traditional single-vector space, the model attempts to position the user close to both genres. If these genres are distant in the embedding space, the user's vector ends up in a "no man's land" between them, failing to represent either interest accurately. This phenomenon is known as node polysemy. By forcing disparate characteristics into one vector, we lose the nuance of the node’s different "facets."
Methodology: Polysemous Deepwalk (PolyDW)
To address this, the authors propose a general framework for handling multiple facets, specifically extending the DeepWalk algorithm into Polysemous Deepwalk (PolyDW). The framework consists of several key components:
- Multiple Embeddings: Each node $v_i$ is assigned $K$ distinct embedding vectors, each representing a possible facet.
- Facet Assignment: To determine the distribution of facets for each node, the model utilizes Non-negative Matrix Factorization (NMF) on the network's adjacency matrix as a prior.
- Context-Aware Activation: During training via random walks, the model does not update all $K$ vectors. Instead, it samples an "activated" facet for the target node and its neighbors based on the specific local context of that walk.
- Efficient Optimization: To maintain computational efficiency, the authors derive a lower bound for the objective function using Jensen’s inequality, enabling the use of negative sampling similar to standard Word2Vec implementations.
Experimental Evaluation
The researchers evaluated PolyDW on four real-world datasets: BlogCatalog and Flickr (homogeneous social networks), and MovieLens and Pinterest (heterogeneous interaction networks).
Key Results
- Node Classification: On BlogCatalog and Flickr, PolyDW consistently outperformed standard DeepWalk and other multi-vector baselines like MNE and MSSG. Performance generally improved as the number of facets ($K$) increased.
- Link Prediction: The gains were particularly pronounced in heterogeneous networks. On the Pinterest dataset, PolyPTE (an extension for heterogeneous networks) achieved an AUC of 0.919, significantly outperforming the single-vector PTE baseline (0.703).
- Efficiency: Despite the increased number of parameters, training remains feasible because only one facet is sampled and updated per observation.
Discussion and Insights
The work draws a strong analogy to natural language processing, where words like "bank" have different meanings depending on context. Similarly, a node's "meaning" in a graph changes based on its interacting neighbors.
One notable finding is the context window trade-off. While standard DeepWalk typically benefits from larger context windows, PolyDW's performance can degrade if the window is too large. This is because an overly large window "over-smooths" the facet distribution, making it difficult for the model to identify which specific facet is active. Furthermore, PolyDW demonstrates greater robustness to high dimensionality, as information is distributed across specialized vectors rather than being compressed into a single, overloaded representation.
Conclusion
By moving beyond the single-vector paradigm, polysemous network embeddings provide a more nuanced and interpretable representation of complex entities in graphs. Future work aims to move toward end-to-end learning of facet distributions and extending the framework to more complex knowledge graph structures.
Summary updated