Toward Understanding and Evaluating Structural Node Embeddings

Junchen Jin, Mark Heimann, Di Jin, Danai Koutra

In the rapidly evolving field of graph representation learning, most researchers are familiar with proximity-based embeddings like DeepWalk or node2vec, which place nodes close together in vector space if they are close together in the network. However, a parallel branch of research focuses on structural embeddings, which aim to group nodes that play similar "roles" (e.g., hubs, bridges, or peripheral nodes) regardless of their distance from one another.

In their paper, "Towards Understanding and Evaluating Structural Node Embeddings," Junchen Jin and colleagues from the University of Michigan argue that while structural embeddings are gaining popularity, their evaluation remains "immature," often relying on small, contrived datasets and vague connections to sociological theory.

TL;DR

This paper provides the first rigorous framework for evaluating structural node embeddings by bridging the gap between representation learning and sociological equivalence theories. The authors demonstrate that many complex structural embedding methods are surprisingly outperformed by simple baselines based on local degree distributions.

What Problem Does This Paper Address?

The core challenge is that "structural similarity" is a slippery concept. In sociology, this is defined through equivalence:

  • Structural Equivalence: Nodes are equivalent if they share the exact same neighbors.
  • Automorphic Equivalence: Nodes are equivalent if the graph can be rotated/flipped such that one node takes the other's place.
  • Regular Equivalence: Nodes are equivalent if they relate to equivalent neighbors (e.g., two different "managers" who both oversee "employees").
Different types of equivalence. Nodes with the same color belong to the same equivalent roles.

Existing evaluations of structural embeddings often use small air-traffic datasets with arbitrary labels (like quartiles of passenger counts) that don't truly reflect these deep structural properties. Furthermore, there is no standard for whether to use Euclidean distance or Cosine similarity, or which downstream classifier is best, all of which can drastically change a method's reported performance.

Methods

The authors propose a dual-pronged evaluation methodology:

  1. Intrinsic Evaluation: Directly measuring how well the geometry of the embedding space correlates with mathematical definitions of equivalence (using Kendall rank correlation).
  2. Extrinsic Evaluation: Testing performance on downstream tasks like node classification, clustering, network alignment (matching nodes across different graphs), and graph classification.

They evaluate 11 methods, including proximity-based hybrids (node2vec, LINE) and dedicated structural methods (struc2vec, GraphWave, xNetMF, etc.). Crucially, they introduce degree distribution baselines (degree, degree1, degree2), which represent a node by the histogram of degrees in its 1-hop or 2-hop neighborhood.

Datasets

The study utilizes a massive suite of 35 datasets:

  • Real-world: BlogCatalog, Facebook, ICEWS (socio-political actors), Email networks, PPI (protein-protein interactions), and various Air-traffic networks.
  • Synthetic: The authors designed new synthetic benchmarks (e.g., "City of Stars," "Knitting Wheel") specifically to exhibit clear automorphic and regular equivalence, providing a "ground truth" that real-world data often lacks.

Key Insights and Ideas

  • The Proximity Paradox: Despite the name, "structural equivalence" (sharing neighbors) is actually best captured by proximity-based methods like node2vec, because sharing neighbors implies being only two hops apart.
  • The Power of the Histogram: Simple local degree histograms (the "degree1" and "degree2" baselines) are incredibly effective. They often perform on par with or better than state-of-the-art neural methods, suggesting that much of what we call "structural role" is just a reflection of local degree distributions.
  • Importance vs. Density: Current structural embeddings are great at capturing node importance (PageRank and Degree) but struggle to capture the density of a node's neighborhood (Clustering Coefficient).
  • Evaluation Sensitivity: The choice of distance metric (Euclidean vs. Cosine) can flip the rankings of methods. For example, struc2vec performs significantly better with Cosine similarity on certain tasks.

Key Results

  • Intrinsic Alignment: In synthetic data, structural methods like GraphWave and xNetMF show high correlation with automorphic equivalence, while proximity methods fail completely.
  • Network Alignment: For cross-network tasks, xNetMF and RiWalk are top performers. Proximity methods like LINE fail because they cannot generalize a node's position across two different, disconnected graphs.
  • Classification: On real-world datasets, there is no "universal winner." However, methods that explicitly model local neighborhoods (like MultiLENS and the degree-histogram baselines) are consistently among the top performers.
Average correlation between node embeddings and different types of equivalences.

Limitations and Future Work

The authors acknowledge that their study focuses on unweighted and undirected graphs. Many real-world networks are directed or have rich edge attributes, which would require extending these structural definitions.

Additionally, while they found that local degree information is a powerful baseline, they suggest that future work should focus on more robust generalizations of connectivity that can handle noise better than simple degree counts, particularly for tasks like network alignment where edge deletions can easily "break" a degree-based feature.

Reference: Jin, J., Heimann, M., Jin, D., & Koutra, D. (2021). Towards Understanding and Evaluating Structural Node Embeddings. ACM Transactions on Knowledge Discovery from Data (TKDD).

Summary updated

BibTeX
@article{jin2022toward,
  author = {Junchen Jin and Mark Heimann and Di Jin and Danai Koutra},
  title = {{Toward Understanding and Evaluating Structural Node Embeddings}},
  journal = {ACM Trans. Knowl. Discov. Data},
  year = {2022},
  url = {https://openreview.net/forum?id=hoYiHD8Nd5c},
}
Figure