NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CommonGraph: Graph Analytics on Evolving Data

Mahbod Afarin, Chao Gao, Shafiur Rahman, Nael B. Abu-Ghazaleh, Rajiv GuptaASPLOS 2023

TL;DR

This paper introduces CommonGraph, a novel approach for analyzing evolving graphs that significantly speeds up queries by converting expensive edge deletions into additions. By identifying a "common graph" across snapshots and optimizing for additions, CommonGraph breaks sequential dependencies and unlocks parallelism, achieving substantial performance gains over existing methods.

What Problem Does This Paper Address?

Analyzing graphs that change over time, known as evolving graphs, is crucial for understanding dynamic systems. This often involves querying multiple "snapshots" of the graph over a period. Two common approaches exist: processing each snapshot independently (inefficient due to redundant computations) or using streaming methods that incrementally update results from one snapshot to the next. However, streaming methods struggle with edge deletions, which are significantly more computationally expensive than additions for many graph algorithms. This high cost, coupled with the overhead of graph mutations, limits the efficiency of analyzing evolving graphs.

Methods

CommonGraph tackles these challenges with three core ideas:

  1. Converting Deletions to Additions: The central innovation is to transform all edge deletions into additions. This is achieved by first computing a "CommonGraph" that contains only the edges present across all relevant snapshots. Once queries are run on this CommonGraph, reaching a specific snapshot's result involves only adding the missing edges and incrementally updating the query results. This effectively sidesteps the costly deletion operations.
  2. Work Sharing for Additions: Beyond the CommonGraph, CommonGraph identifies further opportunities for work sharing among subsets of snapshots that share common edge additions. This is facilitated by a "Triangular Grid" representation, which helps systematically discover and exploit these shared computations.
  3. Efficient Graph Representation: CommonGraph employs a graph representation that avoids costly in-place graph mutations. This allows for the direct reuse of shared edges among different snapshots, further reducing overhead.

These techniques are integrated into the KickStarter streaming framework.

Datasets

The paper evaluates CommonGraph on five benchmarks and five graphs, using 50 snapshots per evaluation. Each snapshot is characterized by a batch of 75,000 edge changes, split evenly between additions and deletions.

Key Insights and Ideas

  • Deletions are the Bottleneck: The paper highlights that for many monotonic graph algorithms, edge deletions are substantially more expensive than additions, often costing nearly 3x as much. This is a critical observation that drives the core of CommonGraph.
  • Reversing the Order is Key: By focusing on a "CommonGraph" and treating deletions as additions (by effectively processing changes in a different order), the system bypasses the most expensive operations.
  • Parallelism Beyond Sequential Streaming: Traditional streaming methods are inherently sequential. CommonGraph breaks this dependency, enabling parallelism not only for additions but also for sharing computations across subsets of snapshots.
  • Avoiding Graph Mutation: The overhead of modifying graphs in place is significant. CommonGraph's representation allows for edge reuse without these costly mutations.

Key Results

CommonGraph demonstrates significant performance improvements over the baseline KickStarter framework. Across multiple benchmarks, it achieves speedups ranging from 1.38x to 8.17x. Even when processing a higher number of edges due to the conversion of deletions to additions, CommonGraph outperforms KickStarter, with speedups for "Direct-Hop" alone ranging from 1.02x to 7.91x. The full CommonGraph approach, incorporating work sharing, further enhances these gains.

Limitations and Future Work

The paper mentions that this work is an abstracted version of a more detailed paper. Specific limitations are not explicitly detailed in this abstract, but the success of CommonGraph suggests that further exploration into more complex graph update patterns and different types of graph analytics could be fruitful. Future work could involve applying these principles to a wider array of graph algorithms and exploring more sophisticated methods for identifying and exploiting shared computations among diverse subsets of snapshots.

Summary updated

BibTeX
@inproceedings{afarin2023commongraph,
  author = {Mahbod Afarin and Chao Gao and Shafiur Rahman and Nael B. Abu-Ghazaleh and Rajiv Gupta},
  title = {{CommonGraph: Graph Analytics on Evolving Data}},
  booktitle = {ASPLOS},
  year = {2023},
  url = {https://openreview.net/forum?id=wUAdhjPbP_},
}
Figure