Skip to main content
QUICK REVIEW

[Paper Review] VersaGNN: a Versatile accelerator for Graph neural networks

Shi Feng, Ahren Yiqiao Jin|arXiv (Cornell University)|May 4, 2021
Advanced Graph Neural NetworksComputer Science45 references9 citations
TL;DR

VersaGNN is a systolic-array-based hardware accelerator that unifies dense and sparse matrix multiplication for Graph Neural Networks (GNNs), enabling high throughput and energy efficiency. By integrating Strassen’s algorithm for dense multiplication and a greedy workload-balancing algorithm for sparse-dense operations, it achieves up to 3712× speedup and 1301.25× energy reduction over CPU, and 35.4× speedup with 17.66× energy reduction over GPU compared to state-of-the-art software frameworks.

ABSTRACT

extit{Graph Neural Network} (GNN) is a promising approach for analyzing graph-structured data that tactfully captures their dependency information via node-level message passing. It has achieved state-of-the-art performances in many tasks, such as node classification, graph matching, clustering, and graph generation. As GNNs operate on non-Euclidean data, their irregular data access patterns cause considerable computational costs and overhead on conventional architectures, such as GPU and CPU. Our analysis shows that GNN adopts a hybrid computing model. The extit{Aggregation} (or extit{Message Passing}) phase performs vector additions where vectors are fetched with irregular strides. The extit{Transformation} (or extit{Node Embedding}) phase can be either dense or sparse-dense matrix multiplication. In this work, We propose extit{VersaGNN}, an ultra-efficient, systolic-array-based versatile hardware accelerator that unifies dense and sparse matrix multiplication. By applying this single optimized systolic array to both aggregation and transformation phases, we have significantly reduced chip sizes and energy consumption. We then divide the computing engine into blocked systolic arrays to support the extit{Strassen}'s algorithm for dense matrix multiplication, dramatically scaling down the number of multiplications and enabling high-throughput computation of GNNs. To balance the workload of sparse-dense matrix multiplication, we also introduced a greedy algorithm to combine sparse sub-matrices of compressed format into condensed ones to reduce computational cycles. Compared with current state-of-the-art GNN software frameworks, extit{VersaGNN} achieves on average 3712$ imes$ speedup with 1301.25$ imes$ energy reduction on CPU, and 35.4$ imes$ speedup with 17.66$ imes$ energy reduction on GPU.

Motivation & Objective

  • To address the performance and energy inefficiency of CPUs and GPUs in executing GNNs due to irregular data access and hybrid computation patterns.
  • To unify the acceleration of Aggregation (sparse) and Transformation (dense) phases in GNNs using a single, versatile hardware accelerator.
  • To reduce computational complexity and memory access in dense matrix multiplication via hardware-level integration of Strassen’s algorithm.
  • To improve load balancing and utilization in sparse-dense matrix multiplication through a static, greedy pre-processing algorithm.
  • To design a memory-efficient, high-throughput accelerator tailored for real-world graphs with power-law degree distributions.

Proposed method

  • The accelerator uses a systolic array architecture with re-factored processing elements to support both dense and sparse matrix multiplication.
  • It partitions the computing engine into blocked systolic arrays to enable efficient execution of Strassen’s algorithm, reducing the number of multiplications in dense matrix operations.
  • A greedy workload-balancing algorithm combines compressed sparse sub-matrices into condensed tiles to minimize idle cycles and improve processing element utilization.
  • The architecture supports dynamic tiling strategies that adapt to varying sparsity levels and neighbor distributions across nodes.
  • The system is implemented in Chisel HDL and evaluated on six benchmark graph datasets using four GNN models.
  • The design leverages pipelined dataflow with ordered operand feeding to prevent memory access stalls during sparse matrix multiplication.

Experimental results

Research questions

  • RQ1Can a single hardware accelerator efficiently handle both the irregular access patterns of GNN aggregation and the regular patterns of transformation phases?
  • RQ2How can Strassen’s algorithm be effectively integrated into a systolic array to reduce computation and memory access in dense GNN matrix operations?
  • RQ3What is the impact of a greedy, static workload-balancing algorithm on performance and energy efficiency in sparse-dense matrix multiplication for GNNs?
  • RQ4How does the proposed accelerator compare to state-of-the-art software frameworks in terms of speedup and energy efficiency across CPU and GPU platforms?
  • RQ5To what extent can tiling and data reorganization strategies improve utilization and reduce stalls in GNN acceleration?

Key findings

  • VersaGNN achieves an average of 3712× speedup and 1301.25× energy reduction compared to CPU-based GNN software frameworks.
  • On GPU, VersaGNN delivers 35.4× speedup and 17.66× energy reduction over the best-performing software frameworks.
  • The integration of Strassen’s algorithm into the systolic array reduces the number of multiplications in dense matrix multiplication, significantly lowering computational complexity.
  • The greedy workload-balancing algorithm improves processing element utilization by efficiently packing sparse tiles and avoiding memory access stalls.
  • The accelerator’s design supports both dense and sparse operations with a single unified architecture, reducing chip area and energy consumption.
  • The system demonstrates high scalability and efficiency across diverse real-world graphs with power-law degree distributions.

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.