Fast Iterative Graph Computing with Updated Neighbor States

Yijie Zhou, Shufeng Gong, Feng Yao, Hanzhang Chen, Song Yu, Pengxi Liu, Yanfeng Zhang, Ge Yu, Jeffrey Xu Yu

Abstract

Iterative graph algorithms, such as PageRank and Single-Source Shortest Path (SSSP), are fundamental to modern data mining. While traditional optimization efforts focus on enhancing the efficiency of individual execution rounds through hardware-level improvements, the number of iterations required for convergence is often treated as a fixed constraint. This paper introduces GoGraph, a novel graph reordering framework that accelerates convergence by optimizing the processing order of vertices in asynchronous execution modes. By maximizing the propagation of updated neighbor states within a single iteration, GoGraph reduces the total number of rounds required, achieving up to a 6.30× speedup over traditional synchronous methods.

Introduction

Graph processing systems typically operate in either synchronous or asynchronous modes. In synchronous execution, vertices use data from the previous iteration, ensuring consistency but often slowing convergence. Asynchronous execution allows a vertex to utilize the most recent state of its neighbors. However, the effectiveness of this approach is highly dependent on the vertex processing order. If a source vertex is processed after its destination vertex, the update is delayed until the subsequent round.

GoGraph addresses this by reordering vertices to maximize "positive edges"—edges where the source vertex precedes the destination vertex in the execution sequence. This strategy ensures that information flows more rapidly through the graph, significantly reducing the total computational work required to reach a stable state.

The GoGraph Framework

The Optimization Objective

The core of GoGraph is the maximization of a metric function, $\mathcal{M}(O_V)$, which counts the number of positive edges for a given vertex order $O_V$. Maximizing this metric is equivalent to solving the Maximum Acyclic Subgraph (MAS) problem. Given that MAS is NP-hard, GoGraph employs a practical divide-and-conquer pipeline to handle massive real-world datasets.

Divide-and-Conquer Reordering

To maintain scalability, GoGraph processes the graph through several distinct phases:

  1. Hub Vertex Extraction: High-degree "hub" vertices are temporarily removed. Because these nodes are connected to a vast portion of the graph, they can obscure local ordering benefits and complicate the partitioning process.
  2. Graph Partitioning: The remaining graph is divided into smaller subgraphs using standard partitioning tools (e.g., Metis or Rabbit). This step ensures that highly connected clusters remain together, which benefits both the logical information flow and physical CPU cache locality.
  3. Hierarchical Reordering: The system performs reordering at two levels: intra-subgraph, where vertices within a partition are ordered to maximize local positive edges, and inter-subgraph, where the partitions themselves are sequenced to optimize the flow between them.
  4. Vertex Re-insertion: Finally, the previously extracted hub vertices and any isolated nodes are re-inserted into the global sequence at positions that maximize the overall positive edge count.

Experimental Evaluation

Methodology

The authors evaluated GoGraph across six diverse real-world datasets, including web crawls (Indochina, SK-2005, Google), social networks (LiveJournal), and citation networks (Cit-Patents). Performance was compared against state-of-the-art reordering algorithms like Gorder and Rabbit, as well as standard synchronous baselines.

Performance Results

  • Convergence Acceleration: GoGraph reduced the number of required iteration rounds by an average of 52%, with some cases showing a reduction as high as 71%.
  • Total Runtime: The framework outperformed existing reordering methods by an average of 1.83×. When compared to traditional synchronous execution, GoGraph achieved speedups ranging up to 6.30×.
  • Hardware Efficiency: Although designed for logical flow, the partitioning strategy also improved hardware utilization, resulting in a roughly 30% reduction in L3 cache misses.
  • Overhead: The memory footprint and pre-processing time of GoGraph were found to be comparable to existing baselines, making it a viable "drop-in" optimization for production environments.

Key Insights

Information Flow vs. Cache Locality

Previous research in graph reordering has focused heavily on cache locality (ensuring data used together is stored together). GoGraph demonstrates that for iterative algorithms, the logical flow of data—how quickly an update at one node reaches another—is often a more critical bottleneck than memory access patterns.

Strategic Handling of Hubs

In power-law graphs, a small number of vertices (hubs) account for a disproportionate number of edges. By treating these hubs as a separate class during reordering, GoGraph prevents them from negatively influencing the ordering of the millions of lower-degree nodes, leading to a more efficient global sequence.

Conclusion and Future Work

GoGraph represents a significant shift in graph processing optimization by focusing on the convergence rate rather than just the speed of individual iterations. While highly effective for monotonic update functions (like SSSP and PageRank), future work is needed to adapt these techniques for non-monotonic algorithms. Additionally, extending the GoGraph framework to dynamic graphs and highly distributed systems remains an open area for research, particularly regarding the trade-off between reordering costs and iteration savings in rapidly changing topologies.

Summary updated

BibTeX
@inproceedings{zhou2024fast,
  author = {Yijie Zhou and Shufeng Gong and Feng Yao and Hanzhang Chen and Song Yu and Pengxi Liu and Yanfeng Zhang and Ge Yu and Jeffrey Xu Yu},
  title = {{Fast Iterative Graph Computing with Updated Neighbor States}},
  booktitle = {ICDE},
  year = {2024},
  doi = {10.1109/icde60146.2024.00193},
}
Figure