Distributed Graph Embedding with Information-Oriented Random Walks

Peng Fang, Arijit Khan, Siqiang Luo, Fang Wang, Dan Feng, Zhenli Li, Wei Yin, Yuchao Cao

TL;DR

Learning node embeddings on billion-edge graphs is notoriously bottlenecked by the sheer volume of redundant random walks, heavy cross-machine communication, and cache thrashing during Skip-Gram training. DistGER is an end-to-end distributed graph embedding framework that pairs information-oriented random walks with $O(1)$ incremental metric updates, proximity-aware streaming graph partitioning, and a cache-conscious distributed Skip-Gram learner. Compared to leading distributed systems like KnightKing, DistDGL, and PyTorch-BigGraph, DistGER delivers $2.33\times$ to $129\times$ speedups and reduces cross-machine communication by 45% while achieving higher downstream accuracy.

What Problem Does This Paper Address?

Random-walk-based graph embedding methods (e.g., node2vec, DeepWalk) convert graph structures into "sentences" of visited nodes and learn representations via Skip-Gram models. However, standard methods use rigid, one-size-fits-all hyperparameters (e.g., fixed walk length $L=80$, $r=10$ walks per node), producing massive redundancy in dense areas and under-sampling sparse regions.

Recent "information-centric" alternatives (such as HuGE) dynamically terminate walks once information entropy converges. However, porting this idea to a distributed cluster introduces severe systems challenges:

  1. Computation & Communication overhead: Measuring entropy on-the-fly naively requires full-path traversal at each step ($O(L)$ time complexity per step, quadratic overall) and requires network messages to carry the entire walk history.
  2. Poor Locality: Standard distributed partitioning balances edge counts across machines without considering the jump behavior of walkers, causing excessive cross-machine communication.
  3. Training Bottlenecks: Distributed Skip-Gram implementations suffer from CPU cache-line bouncing (ping-ponging) under asynchronous SGD (Hogwild!), small matrix operations that under-utilize SIMD units, and high synchronization costs.

Methods

DistGER solves these bottlenecks with an integrated, three-part architecture:

[ Input Graph ]
       │
       ▼
[ MPGP: Multi-Proximity Streaming Partitioning ] ──► Minimizes cross-machine hops
       │
       ▼
[ InCoM: Distributed Walk Sampler ] ─────────────► O(1) incremental entropy updates
       │
       ▼
[ DSGL: Distributed Skip-Gram Learner ] ─────────► Thread-local buffers + Level-3 BLAS
       │
       ▼
[ Node Embeddings (φ) ]
  • Incremental Information-Centric Computing (InCoM): Instead of passing the full walk history, DistGER mathematically derives how to update information entropy $H(W)$ and the linear termination coefficient $R^2$ incrementally in $O(1)$ time. Computing nodes only track local node visit frequencies, shrinking message payloads to a fixed 80 bytes (up to $8.3\times$ smaller than baseline messages for $L=80$).
  • Multi-Proximity-Aware Streaming Graph Partitioning (MPGP): Partitions streaming nodes by maximizing first- and second-order proximity scores (shared neighbors) while enforcing a dynamic load-balancing penalty. This keeps walkers on the local worker as long as possible. DistGER uses the Galloping algorithm and parallel streaming (BFS/DFS + degree ordering) to partition massive graphs in seconds to minutes.
  • Distributed Skip-Gram Learning (DSGL):
  • Local Buffers & Global Ordering: Global parameter matrices are ordered by corpus frequency, keeping popular nodes in high-speed CPU caches. Each worker thread maintains local context and negative buffers to eliminate cross-core cache line invalidation during SGD.
  • Multi-Window Negative Sharing: Merges negative sampling batches across multiple walk windows on the same thread, upgrading level-1 BLAS vector dot-products into compute-dense level-3 BLAS matrix multiplications.
  • Hotness-Block Synchronization: Instead of sending full embedding tables ($O(|V|dm)$), DistGER groups nodes into frequency blocks and samples heavily from "hot" blocks, cutting network synchronization overhead to $O(\text{ocn}_{\max} \cdot d \cdot m)$.

Datasets

DistGER was evaluated on five standard real-world graph benchmarks:

  • Flickr (FL): 80.51K nodes, 5.90M edges (multi-label node classification).
  • YouTube (YT): 1.14M nodes, 2.99M edges (node classification & link prediction).
  • LiveJournal (LJ): 2.24M nodes, 14.61M edges (link prediction).
  • Com-Orkut (OR): 3.07M nodes, 117.19M edges (link prediction).
  • Twitter (TW): 41.65M nodes, 1.47B edges (large-scale link prediction).
  • Synthetic & Web Graphs: Synthetic R-MAT graphs up to 1 billion nodes and 10 billion edges, plus the real-world UK-2007 web graph (100M nodes, 3.7B edges) to benchmark scalability.

Key Insights and Ideas

  • Walk entropy is memoryless when formulated locally: You do not need to transmit full random-walk trajectories to compute whether information entropy has plateaued. Tracking visit increments locally across distributed partitions achieves mathematically exact step-wise entropy in constant time.
  • Graph partitioning must mimic the walker, not just edge counts: Standard partitioners minimize static edge cuts. MPGP explicitly accounts for second-order common neighbor proximity, which directly aligns with candidate selection probabilities in random walks.
  • Skip-Gram's bottleneck is CPU memory hierarchy, not model complexity: Asynchronous updates cause severe cache-line thrashing. Introducing thread-local context buffers and multi-window matrix batching boosts SGD throughput to 49.5 million nodes/sec (compared to 16.1 million nodes/sec in Intel's pWord2Vec).

Key Results

  • End-to-End Speedup: Evaluated on an 8-node dual-socket Intel Xeon cluster, DistGER ran $9.3\times$ faster than KnightKing, $26.2\times$ faster than PyTorch-BigGraph (PBG), and $51.9\times$ faster than DistDGL on average.
  • Scalability to Billion-Edge Graphs: DistGER embedded the 1.47-billion-edge Twitter graph in 746 seconds on 8 machines. Competitors either crashed with Out-of-Memory errors (KnightKing) or failed to finish within 24 hours (DistDGL).
  • Communication & Walk Reduction: MPGP cut cross-machine messages by 45% and random-walk latency by 38.9% over KnightKing's partitioning. Walk length ($L$) and walk count ($r$) dropped by 63.2% and 18% on average versus fixed baselines.
  • Downstream Accuracy: In link prediction tasks, DistGER achieved higher AUC scores across datasets (e.g., 0.976 on LiveJournal vs. PBG's 0.882 and DistDGL's 0.718), averaging an 11.7% AUC gain over competitors.

Limitations and Future Work

  • CPU vs. GPU Asymmetry: The authors noted that deploying DistGER on GPUs did not yield significant speedups on large graphs because the random-walk generation phase and host-to-device parameter transfers quickly bottleneck GPU compute.
  • Hyperparameter Sensitivity: MPGP relies on a slack balancing parameter ($\gamma$) where setting $\gamma=1$ enforces strict balance but damages cut quality, while higher $\gamma$ values risk partition skew.
  • Graph Types: While the framework technically supports weighted and directed graphs, the primary system optimisations and evaluations were demonstrated on undirected, unweighted networks. Future work could investigate end-to-end multi-relational knowledge graphs and automated tuning of entropy stopping thresholds.

Summary updated

BibTeX
@article{fang2023distributed,
  author = {Peng Fang and Arijit Khan and Siqiang Luo and Fang Wang and Dan Feng and Zhenli Li and Wei Yin and Yuchao Cao},
  title = {{Distributed Graph Embedding with Information-Oriented Random Walks}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  url = {https://openreview.net/forum?id=mhlzxW982z},
}
Figure