IRWE: Inductive Random Walk for Joint Inference of Identity and Position Network Embedding

Meng Qin, Dit-Yan Yeung

Introduction

Network embedding aims to represent nodes as low-dimensional vectors while preserving essential graph properties. Traditionally, these properties fall into two distinct categories: identity (structural roles, such as being a "hub" or a "bridge") and position (community membership). Most existing methods are "one-trick ponies," optimized for only one of these properties. Furthermore, they are often transductive, meaning they cannot handle new nodes without retraining the entire model. While some inductive methods exist, they typically rely on node attributes which are often noisy, inconsistent, or unavailable.

Problem Statement

The core challenge addressed by IRWE (Inductive Random Walk Embedding) is learning both identity and position simultaneously in an inductive manner, relying solely on the graph's connectivity. As illustrated in Figure 1, nodes can share the same structural identity while belonging to different communities. Traditional methods like node2vec capture community structure but fail to distinguish structural roles, while struc2vec captures roles but ignores global positioning.

Comparison of graph topology and embeddings from node2vec and struc2vec, highlighting the distinction between node identity and position.

Methodology: The IRWE Framework

IRWE is a unified framework that jointly learns node identity and node position using only graph topology. By leveraging anonymous walk statistics and attention mechanisms, it enables inductive inference—generalizing to new nodes or graphs—without requiring any node attributes. The architecture consists of two primary modules:

1. Identity Embedding Module

This module focuses on structural roles. It utilizes Anonymous Walks (AW)—a method of representing random walks that ignores specific node IDs, making them invariant across different graphs. It features an AW auto-encoder to learn robust AW representations and a multi-head attention unit that combines these with high-order degree statistics to produce identity embeddings.

2. Position Embedding Module

This module captures community structures using a Transformer encoder to process sequences of nodes from standard random walks. To represent a node's "global" position, it applies a Gaussian random projection to random walk statistics.

3. Joint Optimization via Attentive Reweighting

A key innovation of IRWE is the Attentive Reweighting mechanism. It uses the learned identity embeddings to reweight the position encodings. This is based on the hypothesis that nodes with different structural roles contribute differently to their local communities (e.g., an "opinion leader" vs. a "follower").

The overall architecture of IRWE, detailing the Identity and Position embedding modules and their joint optimization.

Experiments and Results

The authors evaluated IRWE on seven diverse real-world datasets, ranging from protein-protein interaction (PPI) networks to air traffic networks (USA, Europe, Brazil). IRWE consistently outperformed 17 unsupervised baselines in both transductive and inductive settings.

  • Identity Tasks: On the Brazil dataset, IRWE achieved significantly higher Micro F1-scores for role classification compared to traditional methods like struc2vec.
  • Position Tasks: It maintained superior performance in community detection and position-based classification, proving that its joint optimization does not sacrifice one property for the other.
  • Inductive Strength: In "across graphs" settings (PPIs), IRWE's attribute-free approach proved much more robust than GNN-based methods that struggle when node attributes are missing or replaced by naive encodings like one-hot degrees.

Conclusion

IRWE demonstrates that identity and position, while often contradictory in embedding space, are complementary for understanding graph structure. By utilizing Anonymous Walks as an "inductive gold" standard for structural roles and a Transformer-based readout for position, IRWE provides a robust, attribute-free solution for network embedding. Future work will focus on improving scalability through mini-batch optimization and extending the framework to graph-level representations.

Summary updated

BibTeX
@article{qin2024irwe,
  author = {Meng QIN and Dit-Yan Yeung},
  title = {{IRWE: Inductive Random Walk for Joint Inference of Identity and Position Network Embedding}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=bDse8Z2gff},
}
Figure