ZIPPER: Exploiting Tile- and Operator-level Parallelism for General and Scalable Graph Neural Network Acceleration

Zhihui Zhang, Jingwen Leng, Shuwen Lu, Youshan Miao, Yijia Diao, Minyi Guo, Chao Li, Yuhao ZhuarXiv 2021

Abstract

ZIPPER is a hardware-software co-designed system that accelerates Graph Neural Networks (GNNs) by bridging the "semantics gap" between high-level programming models and efficient hardware. By utilizing a graph-native intermediate representation (IR) and inter-tile pipelining, it achieves massive speedups and energy savings over traditional CPUs and GPUs while scaling to much larger graphs.

The Challenge: The GNN Semantics Gap

Graph Neural Networks (GNNs) represent a "hybrid" workload that combines compute-intensive matrix mathematics with irregular, memory-intensive data access patterns typical of graph processing. Current general-purpose hardware, such as GPUs, struggles with GNNs for two primary reasons:

  1. The Semantics Gap: High-level frameworks treat graphs as giant tensors. This abstraction hides the underlying graph structure, preventing hardware from performing fine-grained optimizations like pipelining.
  2. Resource Underutilization and Memory Pressure: GNNs interleave different operation types, often leaving parts of the processor idle. Furthermore, the intermediate data generated during execution frequently leads to "Out of Memory" (OOM) errors on GPUs when processing large-scale graphs.
Memory usage comparison between GNNs and CNNs, highlighting the massive workspace requirements that lead to OOM errors on GPUs.

The ZIPPER Architecture

ZIPPER addresses these challenges through a full-stack approach involving a specialized compiler and custom hardware.

Graph-Native IR and Compiler

The system uses a specialized IR that decomposes tensor-based GNN models into vertex and edge computational segments. This visibility allows for optimizations such as Edge-to-Vertex (E2V) transformation, which reduces redundant computations by shifting them from the edge level to the vertex level.

Inter-tile Pipelining

To maintain high hardware utilization, ZIPPER partitions graphs into smaller "tiles" and employs a multi-streamed execution model. This allows the hardware to overlap memory-heavy graph propagation with compute-heavy matrix multiplication.

Execution profile of GraphSAGE showing the interleaved nature of matrix and sparse graph phases, leading to fluctuating resource utilization.

Hardware Implementation

The ZIPPER accelerator features a Matrix Unit (MU) for GEMM operations and a Vector Unit (VU) for element-wise and graph-specific tasks. A two-level run-time scheduler manages instruction flow to sustain the pipeline. To handle graph sparsity, ZIPPER utilizes sparse tiling and a degree-sorting heuristic to maximize data reuse and minimize off-chip memory traffic.

Evaluation and Key Results

The system was evaluated using six diverse real-world datasets (e.g., soc-LiveJournal1, europe-osm) across five popular GNN models (GCN, GAT, SAGE, GGNN, and R-GCN).

  • Performance: ZIPPER achieves an average 93.6× speedup over an Intel Xeon CPU and 1.56× speedup over an NVIDIA V100 GPU.
  • Efficiency: It delivers a 147× energy reduction compared to the CPU and 4.85× reduction compared to the GPU.
  • Scalability: Unlike the V100 GPU, ZIPPER successfully processed the europe-osm dataset (50M+ vertices) without OOM errors.
  • Area: The architecture is highly efficient, occupying only 6.57% of a baseline GPU's die size, with 97.9% of that area dedicated to on-chip memory.

Conclusion

The core insight of ZIPPER is that the diversity of GNN operations is an opportunity rather than just a bottleneck. By breaking the tensor abstraction and implementing inter-tile pipelining, ZIPPER provides a scalable and efficient path for GNN acceleration. Future work will focus on extending these techniques to GNN training and more complex scheduling policies.

Summary updated

BibTeX
@misc{zhang2021zipper,
  author = {Zhihui Zhang and Jingwen Leng and Shuwen Lu and Youshan Miao and Yijia Diao and Minyi Guo and Chao Li and Yuhao Zhu},
  title = {{ZIPPER: Exploiting Tile- and Operator-level Parallelism for General and Scalable Graph Neural Network Acceleration}},
  year = {2021},
  eprint = {2107.08709},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.08709},
}
Figure