Local2Global: Scaling global representation learning on graphs via local training

Lucas G. S. Jeub, Giovanni Colavizza, Xiaowen Dong, Marya Bazzi, Mihai CucuringuarXiv 2021

Abstract

Graph embedding techniques often struggle with scalability when applied to massive datasets. We present "Local2Global," a decentralized framework that enables scalable and parallelizable graph representation learning. By partitioning a large network into overlapping patches, training local embeddings independently, and then mathematically stitching them into a unified global coordinate system, the approach eliminates the need for costly parameter synchronization. Experimental results on benchmark datasets demonstrate that this method achieves performance comparable to global training while offering significant advantages in parallelism and potential for privacy-sensitive applications.

Introduction

Graph Neural Networks (GNNs) and related embedding techniques have become essential for analyzing networked data. However, they face a significant hurdle: scalability. In standard GNN architectures, a node’s representation depends on its multi-hop neighborhood. As the number of layers increases, the dependency graph grows exponentially—a phenomenon known as the "neighborhood explosion" problem.

Existing solutions typically involve subgraph sampling or layer-wise approximations to fit data into memory. However, these methods often require synchronous training, where multiple processors must frequently communicate to maintain parameter consistency. This communication overhead becomes a bottleneck for industrial-scale graphs or decentralized environments where data cannot be easily centralized due to privacy or logistical constraints.

Methodology: The Local2Global Pipeline

The Local2Global framework addresses these challenges through a "divide-and-conquer" pipeline consisting of three primary stages:

1. Patching

The input graph is partitioned into overlapping subgraphs, or "patches." This is achieved by first using a standard partitioning algorithm (such as METIS) to create non-overlapping clusters, which are then expanded to ensure sufficient overlap between adjacent patches.

2. Independent Local Training

Each patch is treated as an independent graph. Any standard embedding technique—such as Variational Graph Auto-Encoders (VGAE)—can be trained on these patches separately. Crucially, there is zero communication between patches during this stage, allowing for massive parallelism. Each patch results in its own local coordinate system.

3. Global Stitching

Because local embeddings are rotationally invariant, the independently trained coordinate systems are mismatched (rotated, reflected, or shifted). The Local2Global algorithm uses group synchronization to align them:

  • Rotations and Reflections: An eigenvector-based method (the ASAP algorithm) identifies the optimal orthogonal transformations to align overlapping nodes.
  • Translations: A least-squares problem is solved to determine the optimal shift for each patch.
  • Final Embedding: The global position of a node is calculated as the centroid of its positions across all patches to which it belongs.

Experimental Evaluation

The authors validated the framework using the Largest Connected Component (LCC) of two standard benchmarks: Cora and Amazon Photo.

Statistics for the Largest Connected Component (LCC) of the evaluation datasets.

While these datasets are medium-scale, they provide a robust proof of concept for the mathematical validity of the stitching process.

Key Results and Insights

The performance of the l2g (aligned) method was compared against full (global training) and a no-trans baseline (simple averaging without alignment).

Performance comparison (AUC) across different embedding dimensions for Cora and Amazon Photo datasets.

As shown in the results, the l2g approach achieves an AUC nearly identical to the full global model, particularly as the embedding dimension increases. In contrast, the no-trans baseline performs significantly worse, highlighting that mathematical synchronization is essential for maintaining a coherent global representation.

Key Advantages

  • Decoupled Training: By treating alignment as a post-processing step, the framework avoids network latency bottlenecks during training.
  • Mathematical Rigor: The use of group synchronization provides a robust way to resolve arbitrary local coordinate choices.
  • Scalability: The computational cost of the stitching step depends on the number of patches and overlap size, rather than the total number of nodes in the graph.
  • Implicit Regularization: Local training may act as a regularizer, potentially mitigating common GNN issues like "oversmoothing."

Conclusion and Future Work

Local2Global offers a promising path toward scaling graph embeddings to massive networks. While the current evaluation focuses on medium-scale datasets and graph reconstruction tasks, the mathematical foundation is sound. Future research will explore the framework's performance on billion-node graphs, its application to downstream tasks like node classification, and its potential in federated learning environments where data privacy is paramount.

Summary updated

BibTeX
@misc{jeub2021local,
  author = {Lucas G. S. Jeub and Giovanni Colavizza and Xiaowen Dong and Marya Bazzi and Mihai Cucuringu},
  title = {{Local2Global: Scaling global representation learning on graphs via local training}},
  year = {2021},
  eprint = {2107.12224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12224},
}
Figure