Locality Aware Graph Partitioning for Distributed Systems

33 concepts30 papers2 proposals

Distributed graph processing underpins many modern computational tasks, from running page-ranking algorithms on web-scale datasets to training deep graph neural networks. However, as graphs scale into billions of vertices and trillions of edges, they quickly outgrow the memory capacity of any single machine. Sharding the graph across a cluster of computers becomes inevitable.

The fundamental challenge of distributed graph processing is the "network wall." In a distributed environment, network latency is orders of magnitude slower than local memory access. If a graph is partitioned randomly—such as by hashing vertex IDs—the structural locality of the graph is destroyed. Every edge traversal or neighborhood aggregation step forces machines to constantly exchange data over the network, bottlenecking the entire system.

Locality-aware graph partitioning solves this by intelligently grouping tightly connected components of a graph onto the same physical hardware. As Claudio Martella et al. demonstrate with Spinner in Spinner: Scalable Graph Partitioning in the Cloud, shifting from naive hash partitioning to topology-aware placement can double the execution speed of iterative graph algorithms purely by mitigating network communication overhead.

The Geometry of Locality: Edge Cuts and Replication Factors

To understand why locality-aware partitioning works, we must look at how graphs are split across machines. Partitioning strategies generally fall into two categories: vertex-cuts and edge-cuts.

In an edge-cut approach, vertices are distributed across machines, and the edges connecting them are severed. Minimizing these severed edges (edge-cuts) ensures that highly connected neighborhoods remain on the same server. In distributed graph databases, this directly translates to query speed. Daniel Nicoara et al. show in Hermes: Dynamic Partitioning for Distributed Social Network Graph Databases that prioritizing query locality via edge-cut minimization increases system throughput by two to three times, as most multi-hop traversals can be resolved locally without network round-trips.

In a vertex-cut approach, edges are assigned to machines, meaning highly connected vertices must be duplicated or "mirrored" across multiple nodes. The average number of machines a vertex is assigned to is known as the replication factor. When a vertex's state updates during an algorithm, that update must be synchronized across all its mirrors.

Naive Hashing (High Replication Factor)
Machine A: [V1 (Master)] <--- Network Sync ---> Machine B: [V1 (Mirror)]
Machine C: [V1 (Mirror)] <--- Network Sync ---> Machine D: [V1 (Mirror)]

Locality-Aware (Low Replication Factor)
Machine A: [V1 (Master), V2, V3] (Local Processing)
Machine B: [V4, V5, V6]

A high replication factor creates a massive synchronization bottleneck. By minimizing the replication factor, systems drastically reduce the volume of network traffic during synchronization phases. M. Hanai et al. leverage this insight in Distributed Edge Partitioning for Trillion-edge Graphs, demonstrating that parallel greedy expansion strategies targeting low replication factors significantly accelerate iterative computations like PageRank. Similarly, Chengjun Liu et al. introduce a fine-grained splitting and merging framework in FSM: A Fine-grained Splitting and Merging Framework for Dual-balanced Graph Partition to optimize vertex and edge balance while driving down replication costs. As emphasized by Deyu Kong et al. in Clustering-based Partitioning for Large Web Graphs, minimizing this replication factor is the single most effective proxy for improving end-to-end distributed performance on web-scale datasets.

Capturing Topological Proximity

How do partitioners identify which nodes belong together without executing an expensive, globally optimal calculation? Modern frameworks look at structural proxies like community modularity, random-walk patterns, and multi-hop connectivity.

Modularity as a Proxy

Modularity is a metric traditionally used in network science to detect communities. However, Makoto Onizuka et al. demonstrate in Graph Partitioning for Distributed Graph Processing that modularity can double as an optimization target for distributed systems. Higher modularity partitions naturally group nodes that share dense internal connections, which consistently correlates with lower replication factors and reduced inter-node communication.

Random Walk Alignment

Algorithms like graph embeddings rely heavily on random walks to capture node contexts. If a random walker frequently crosses machine boundaries, the resulting network latency stalls the pipeline. To combat this, Arijit Khan et al. propose proximity-aware partitioning in Distributed Graph Embedding with Information-Oriented Random Walks. By grouping nodes that exhibit high first- and second-order connectivity on the same machine, they ensure that sequential steps of a random walk remain local, cutting cross-machine transitions by up to 45%.

Feature Vector Transfers in GCNs

In Graph Convolutional Networks (GCNs), nodes aggregate feature vectors from their neighbors. When partitioning ignores this multi-hop connectivity, the volume of cross-node feature transfers explodes. Gongjian Sun et al. address this in Multi-node Acceleration for Large-scale GCNs, showing that connectivity-aware partitioning strategies are essential to prevent feature-aggregation phases from overwhelming cluster network bandwidth.

Co-Designing Partitioning with Hardware and Structure

The ideal partitioning strategy cannot be decoupled from the underlying hardware architecture or the structural properties of the graph itself.

Power-Law Distributions

Real-world graphs are rarely uniform; they typically follow a power-law distribution where a tiny fraction of "hub" nodes contain the vast majority of connections. Treating hub nodes the same as low-degree nodes leads to severe memory imbalances. Ruben Mayer et al. design a solution to this in Hybrid Edge Partitioner: Partitioning Large Power-Law Graphs under Memory Constraints by handling high- and low-degree vertices using distinct heuristics, allowing high-quality partitioning to run within constrained memory footprints.

Asymmetric Hardware Bandwidth

In architectures like Processing-in-Memory (PIM), the bandwidth inside a single memory module is significantly higher than the bandwidth between modules. In this environment, traditional load balancing fails. Ruoyan Ma et al. demonstrate in Accelerating Regular Path Queries over Graph Database with Processing-in-Memory that performance is optimized by prioritizing graph locality over perfectly balanced partitions. By using an adaptive heuristic that places new nodes alongside their first encountered neighbors, they ensure the majority of traversals occur entirely within a single memory unit.

Communication Scaling Laws

On massive supercomputers, standard one-dimensional partitioning causes the number of communication partners to scale linearly with the number of processors ($n$). To break this bottleneck, Aydin Buluc et al. utilize a two-dimensional grid partitioning approach in Parallel Breadth-First Search on Distributed Memory Systems. This geometric constraint limits data exchange to a subset of processors proportional to $\sqrt{n}$, allowing graph traversals to scale to tens of thousands of cores.

Storage and Memory Hierarchies

Locality preservation is equally vital when graphs spill from RAM onto disk or require dynamic migration:

Cross-Domain Applications

The core mechanism of locality-aware graph partitioning—mapping relational intensity to physical co-location—extends to any distributed workload that can be modeled as a network.

Domain                 Graph Nodes                 Optimization Goal
-----------------------------------------------------------------------------------------
Computer Vision        Cameras & 3D Points         Minimize cross-node visibility links
Blockchain Sharding    Transactions & Accounts     Minimize cross-shard transactions
Numerical Algebra      Matrix Rows & Columns       Cluster non-zero elements together
Agent Simulations      Interacting Entities        Localize frequent agent interactions
Data Centers           Virtual Machines            Minimize inter-rack network traffic

In computer vision, distributed bundle adjustment requires optimizing camera parameters and 3D points. Runze Zhang demonstrates in Distributed Very Large Scale Bundle Adjustment by Global Camera Consensus that using graph partitioning to minimize visibility links between distributed nodes minimizes the synchronization requirements between parallel solvers.

In blockchain networks, sharding is often used to scale transaction throughput. Shen Su et al. highlight in Introduction to the Special Issue on The Bottleneck of Blockchain Techniques Scalability, Security and Privacy Protection that organizing blockchain shards based on transaction graphs rather than random assignment significantly reduces cross-shard transactions, eliminating cross-network consensus latency.

For numerical linear algebra, sparse-sparse matrix multiplication (SpGEMM) can be modeled as a graph problem. Yuxi Hong shows in A sparsity-aware distributed-memory algorithm for sparse-sparse matrix multiplication that graph partitioning can be used to cluster non-zero elements on the same processing node, ensuring that data-fetching routines only target a few concentrated remote locations rather than performing random reads across the cluster.

In large-scale agent-based simulations, such as modeling software ecosystems, Jim Blythe et al. utilize multi-level graph partitioning in Massive Multi-Agent Data-Driven Simulations of the GitHub Ecosystem to cluster frequently interacting agents and repositories on the same physical compute nodes, enabling millions of concurrent actions to run on commodity hardware.

Finally, at the infrastructure layer, Lin Wang et al. apply these exact partitioning principles to data center traffic engineering in A General Framework for Achieving Energy Efficiency in Data Center Networks. By treating virtual machines as nodes and their communication intensities as edges, they partition workloads to minimize inter-rack and inter-pod traffic, allowing data centers to safely power down underutilized higher-level network switches to save energy.

Key Foundational Work

Fast nearest-neighbor search in disk-resident graphs (2010) — contributed 1 concept elements to this direction.
Automatic network optimization of voice applications (2004) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_locality_preserving_graph_partitioning_7feb72bd,
  title = {locality-preserving graph partitioning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/locality-preserving-graph-partitioning/rdr_7feb72bdbb8046a9892c5a580a07bf4e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_locality_preserving_graph_partitioning_7feb72bd_v1,
  title = {locality-preserving graph partitioning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/locality-preserving-graph-partitioning/rdr_7feb72bdbb8046a9892c5a580a07bf4e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake