SURREAL: Subgraph Robust Representation Learning

Saba A. Al-Sayouri, Danai Koutra, Evangelos E. Papalexakis, Sarah S. Lam · DOI

Abstract

Modern graph representation learning often relies on stochastic random walks, which introduce instability and sensitivity to high-degree "hub" nodes. We present SURREAL (SUbgraph Robust REpresentAtion Learning), a deterministic framework that replaces random walks with a two-phase "spatio-electric" subgraph identification process. By treating the graph as an electrical circuit, SURREAL captures robust structural relationships while penalizing incidental hubs. Our evaluation across six diverse datasets shows that SURREAL consistently outperforms state-of-the-art methods like node2vec and DeepWalk, particularly in biological networks where it achieves a 37% improvement in accuracy.

Introduction

Graph embedding techniques such as DeepWalk and node2vec have become standard for learning node representations. However, these methods suffer from two primary drawbacks:

  1. Instability: The stochastic nature of random walks means that multiple runs on the same graph can produce different embeddings, hindering tasks like graph alignment or similarity detection across multiple networks.
  2. The Hub Problem: High-degree nodes (hubs) often act as incidental shortcuts between structurally unrelated communities, leading to "spurious" context windows that do not reflect true semantic proximity.

SURREAL addresses these issues by defining node neighborhoods through a deterministic, physics-inspired approach that captures both local and global connectivity without the noise of randomness.

Methods: The Spatio-Electric Framework

SURREAL identifies a node's context through a two-stage process: Neighborhood Expansion ($N_E$) and Neighborhood Refinement ($N_R$).

The two-phase spatio-electric approach: (a) Distance-driven Neighborhood Expansion and (b) Current-driven Neighborhood Refinement.

Phase A: Neighborhood Expansion ($N_E$)

In the first phase, SURREAL identifies potential neighbors using a novel distance metric. Crucially, this formula includes a penalty for high-degree nodes, ensuring that paths relying on incidental hubs are "downweighed" and less likely to be included in the initial subgraph.

Iterative process of neighborhood expansion for node $u$, showing the selection of nodes based on calculated distances.

Phase B: Neighborhood Refinement ($N_R$)

The expanded subgraph is then treated as an electrical circuit. The target node $u$ is assigned a voltage of 1, while a universal sink node $z$ is grounded (voltage 0). Edges act as resistors with conductance based on edge weights. By applying Ohm’s and Kirchhoff’s laws, the algorithm calculates the current flow. Nodes that receive the highest "information flow" are retained, effectively filtering out noise and capturing the "strength of weak ties."

Deterministic Learning and Optimization

Unlike standard SkipGram implementations, SURREAL uses a fixed random seed to ensure 100% reproducibility. To maintain efficiency on large-scale graphs, the authors utilize graph summarization—clustering nodes into "supernodes"—which drastically reduces the search space for neighborhood expansion.

Experimental Results

The model was evaluated on six real-world datasets, including PPI (biological), Wikipedia (language), and various social networks (BlogCatalog, Flickr, Youtube).

  • Accuracy: SURREAL outperformed baselines by an average of 6% across all tasks. The most significant gain was observed in the PPI dataset, with a 37% improvement over DeepWalk and node2vec.
  • Stability: Consistency tests confirmed that SURREAL produces identical embeddings across multiple runs (falling perfectly on a $y=x$ line), whereas stochastic methods show high variance.
  • Efficiency: Graph summarization reduced the expansion time for a single node in the Wikipedia dataset from 3.2 seconds to 0.0004 seconds, enabling large-scale application.

Discussion and Conclusion

SURREAL demonstrates that treating graphs as physical circuits provides a robust, deterministic alternative to random walks. By penalizing hubs and ensuring stability, it opens new possibilities for multi-graph alignment and consistent node identification. While the refinement phase remains a computational bottleneck compared to simple random walks, the use of graph summarization offers a viable path toward scalability. Future work will focus on adapting the model for dynamic graphs and improving the interpretability of the resulting high-dimensional vectors.

Summary updated

BibTeX
@article{alsayouri2019surreal,
  author = {Saba A. Al-Sayouri and Danai Koutra and Evangelos E. Papalexakis and Sarah S. Lam},
  title = {{SURREAL: Subgraph Robust Representation Learning}},
  journal = {Appl. Netw. Sci.},
  year = {2019},
  doi = {10.1007/s41109-019-0160-1},
}
Figure