Skip to main content
QUICK REVIEW

[Paper Review] Redundancy-Free Computation Graphs for Graph Neural Networks

Zhihao Jia, Sina Lin|arXiv (Cornell University)|Jun 9, 2019
Advanced Graph Neural NetworksComputer Science17 references9 citations
TL;DR

This paper introduces Hierarchically Aggregated Computation Graphs (HAGs), a novel GNN representation that eliminates redundant computation and data transfers by explicitly managing shared neighbor aggregations through hierarchical structures. HAGs reduce aggregation costs by up to 6.3× and boost end-to-end training and inference throughput by up to 2.8× and 2.9×, respectively, while preserving model accuracy across real-world graphs.

ABSTRACT

Graph Neural Networks (GNNs) are based on repeated aggregations of information across nodes' neighbors in a graph. However, because common neighbors are shared between different nodes, this leads to repeated and inefficient computations. We propose Hierarchically Aggregated computation Graphs (HAGs), a new GNN graph representation that explicitly avoids redundancy by managing intermediate aggregation results hierarchically, eliminating repeated computations and unnecessary data transfers in GNN training and inference. We introduce an accurate cost function to quantitatively evaluate the runtime performance of different HAGs and use a novel HAG search algorithm to find optimized HAGs. Experiments show that the HAG representation significantly outperforms the standard GNN graph representation by increasing the end-to-end training throughput by up to 2.8x and reducing the aggregations and data transfers in GNN training by up to 6.3x and 5.6x, while maintaining the original model accuracy.

Motivation & Objective

  • To address the inefficiency of standard GNN computation graphs that redundantly compute shared neighbor activations across nodes.
  • To design a new GNN representation that captures common computational patterns in real-world graphs with clustering structures.
  • To develop a cost model and search algorithm for automatically discovering optimized HAGs with strong theoretical guarantees.
  • To achieve significant performance gains in GNN training and inference without compromising model accuracy.

Proposed method

  • Propose HAGs, a hierarchical graph representation that reuses intermediate aggregation results across nodes sharing common neighbors.
  • Define a cost model to quantitatively estimate the runtime performance of different HAGs based on computation and memory access.
  • Develop a novel HAG search algorithm that leverages submodularity to find HAGs with at least a (1−1/e)≈63% approximation of the optimal solution.
  • Prove theoretical optimality guarantees: global optimality for GNNs requiring ordered neighbor aggregation, and (1−1/e)-approximation for others.
  • Apply the search algorithm to real-world graphs to automatically generate optimized HAGs for arbitrary GNN models.
  • Ensure HAGs are model-agnostic and functionally equivalent to standard GNN-graphs, preserving original model accuracy.

Experimental results

Research questions

  • RQ1Can a new GNN computation graph representation reduce redundant computation caused by shared neighbors in real-world graphs?
  • RQ2How can we systematically search for HAGs that minimize computation and memory access while maintaining model accuracy?
  • RQ3What theoretical performance guarantees can be provided for the HAG search algorithm under different GNN aggregation schemes?
  • RQ4To what extent can HAGs improve end-to-end training and inference efficiency compared to standard GNN-graphs?

Key findings

  • HAGs reduce the number of aggregations by up to 6.3× compared to standard GNN-graphs.
  • HAGs reduce data transfer sizes by up to 5.6×, significantly lowering memory bandwidth pressure.
  • End-to-end training throughput increases by up to 2.8×, and inference throughput by up to 2.9×, with no drop in model accuracy.
  • The HAG search algorithm achieves at least a (1−1/e)≈63% approximation of the globally optimal HAG under the cost model.
  • The method is general and applicable to any GNN model, as HAGs are model-agnostic and preserve original computation semantics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.