[Paper Review] Learning Role-based Graph Embeddings
Role2Vec learns type-based embeddings via attributed random walks to generalize graph embeddings to new nodes and graphs, achieving improved AUC with much lower space usage than traditional methods.
Random walks are at the heart of many existing network embedding methods. However, such algorithms have many limitations that arise from the use of random walks, e.g., the features resulting from these methods are unable to transfer to new nodes and graphs as they are tied to vertex identity. In this work, we introduce the Role2Vec framework which uses the flexible notion of attributed random walks, and serves as a basis for generalizing existing methods such as DeepWalk, node2vec, and many others that leverage random walks. Our proposed framework enables these methods to be more widely applicable for both transductive and inductive learning as well as for use on graphs with attributes (if available). This is achieved by learning functions that generalize to new nodes and graphs. We show that our proposed framework is effective with an average AUC improvement of 16.55% while requiring on average 853x less space than existing methods on a variety of graphs.
Motivation & Objective
- Motivate the need for transferable, inductive graph embeddings that capture structural roles beyond vertex identities.
- Introduce the Role2Vec framework that maps nodes to a small set of vertex-types using attributes/structural features.
- Develop attributed random walks that operate on vertex-types to learn embeddings shared across types.
- Demonstrate space efficiency and transferability compared to transductive, id-based embedding methods.
Proposed method
- Define vertex-types via a mapping Phi from node attributes X to M types, where M << Nv.
- Introduce attributed walks Phi(x_vi), guiding random walks to produce sequences of vertex-types instead of vertex IDs.
- Model P[Phi(x_ci)|Phi(xi)] as the product over context types using a softmax with embeddings for types.
- Learn embeddings for each vertex-type with SGD, sharing parameters across same-type nodes.
- Offer two options for Phi: simple concatenation of attributes or a learned low-rank factorization to form types.
- Provide space complexity O(MD + Nv) and show convergence to baseline methods as M approaches Nv.
Experimental results
Research questions
- RQ1Can Role2Vec produce transferable embeddings that generalize to unseen nodes and graphs?
- RQ2Does incorporating vertex attributes and structural features via attributed walks improve predictive performance over traditional random-walk-based methods?
- RQ3What are the space-efficiency benefits of learning embeddings for vertex-types instead of individual vertices?
- RQ4How do different Phi mappings (concatenation vs. factorization) affect embedding quality?
- RQ5Do attributed random walks better capture roles (structural similarity) than proximity-only methods?
Key findings
- Role2Vec achieves an average AUC improvement of 16.55% with much lower space usage (Average 853x less) across various graphs.
- Embeddings are learned for vertex-types, not individual vertices, yielding strong space-efficiency (O(MD + Nv) vs O(NvD)).
- Using attributed walks generalized Role2Vec to outperform DeepWalk, node2vec, and other baselines on link prediction tasks across multiple graphs.
- Mean operator embedding and product operator embedding provide +11.1% and +22% average gains, respectively, over baselines.
- Phi based on concatenation and simple motifs (2-stars, triangles, etc.) delivers competitive results; factorization-based Phi is comparable."
- Role2Vec variants closely approach baseline performance while remaining orders of magnitude more space-efficient.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.