Exploiting On-Chip Heterogeneity of Versal Architecture for GNN Inference Acceleration

Paul Chen, Pavan Manjunath, Sasindu Wijeratne, Bingyi Zhang, Viktor K. Prasanna

Abstract

Graph Neural Networks (GNNs) have emerged as a powerful paradigm for learning from unstructured data, yet their execution on standard hardware remains inefficient due to the dual nature of their computational requirements. GNN inference necessitates both dense feature transformations and sparse neighborhood aggregations. This paper introduces a novel acceleration framework that exploits the heterogeneous architecture of the AMD Versal ACAP. By dynamically partitioning tasks between AI Engines (AIE) for dense matrix math and Programmable Logic (PL) for sparse operations, the proposed system—termed Dynasparse—achieves up to 162x speedup over high-end CPUs and 17x over modern GPUs.

1. Introduction

The proliferation of graph-structured data in domains such as social network analysis, molecular biology, and recommendation systems has driven the demand for efficient Graph Neural Network (GNN) inference. However, GNNs present a "split personality" in terms of computation:

  1. Dense Operations: Standard matrix multiplications used for node feature transformations.
  2. Sparse Operations: Irregular memory accesses and "holey" data structures used to aggregate information from neighboring nodes.

General-purpose processors like CPUs lack the throughput for these tasks, while GPUs, despite their parallel processing power, are often bottlenecked by the irregular memory patterns of sparse operations. Existing FPGA-based accelerators typically optimize for one type of computation at the expense of the other. This research addresses the challenge of on-chip heterogeneity, utilizing a single chip to balance both dense and sparse workloads effectively.

2. System Architecture: The Dynasparse Approach

The proposed system utilizes the AMD Versal VCK5000 Adaptive Compute Acceleration Platform (ACAP), which provides a unique mix of software-programmable processors (AI Engines) and hardware-programmable logic. The Dynasparse framework consists of three primary components:

2.1 The AIE Array (Dense Specialist)

The AI Engines are configured as a dedicated array for General Matrix Multiplication (GEMM). These highly optimized vector processors are utilized when data is packed and predictable, maximizing throughput for the feature transformation stages of the GNN.

2.2 The ALU Array on PL (Sparse Specialist)

Custom hardware modules are implemented within the Programmable Logic (PL) to handle Sparse-Dense Matrix Multiplication (SpDMM) and Sparse-Sparse Matrix Multiplication (SpMM). These modules utilize a "Scatter-Gather" paradigm, allowing the system to process irregular data without wasting computational cycles on zero-valued entries.

2.3 Dynamic Runtime System

The "brain" of the accelerator is a runtime system hosted on the chip's ARM processor. It includes:

  • Analyzer: Evaluates the sparsity of the incoming task in real-time.
  • Scheduler: Uses a performance model to determine whether the PL or the AIE array will complete the task more efficiently, subsequently routing the workload to the appropriate hardware queue.

3. Experimental Evaluation

The design was evaluated on the VCK5000 platform using a variety of standard GNN benchmarks:

  • Datasets: Planetoid (Cora, CiteSeer, PubMed) and large-scale datasets (Flickr, NELL, Reddit).
  • Models: GCN, GraphSage, GIN, and SGC.

A key advantage of this method is the elimination of complex graph partitioning. By employing a simple 2D data partitioning strategy, the system significantly reduces the preprocessing overhead typically associated with hybrid accelerators.

4. Results and Discussion

The experimental results demonstrate substantial performance gains across all tested models and datasets:

  • General Performance: The system achieved an average speedup of 162.42× compared to a high-end CPU (Ryzen 3990x) and 17.01× compared to an Nvidia RTX3090 GPU.
  • Comparative Analysis: Dynasparse outperformed other state-of-the-art ACAP and custom FPGA designs by 9.90× and 27.23×, respectively.
  • Architectural Efficiency: For GCN models, the hybrid PL+AIE approach proved to be up to 96.7× faster than utilizing the Programmable Logic alone, validating the necessity of the heterogeneous approach.

5. Limitations and Future Work

Despite the significant performance leaps, two primary bottlenecks were identified:

  1. Memory Bandwidth: External memory access remains a limiting factor; increasing the number of AI Engines provides diminishing returns if the data feed cannot keep pace.
  2. PL Resource Constraints: The limited amount of Programmable Logic restricts the number of sparse ALU arrays, occasionally leading to queuing delays for sparse tasks.

Future research will focus on developing more resource-efficient ALU arrays and investigating methods to offload specific sparse computations to the AI Engines to further optimize workload balancing.

6. Conclusion

By embracing the inherent heterogeneity of the AMD Versal architecture, this research provides a scalable and highly efficient solution for GNN inference. The dynamic routing of tasks based on sparsity ensures that neither the dense nor the sparse components of the GNN become a bottleneck, setting a new benchmark for graph processing on adaptive compute platforms.

Summary updated

BibTeX
@inproceedings{chen2023exploiting,
  author = {Paul Chen and Pavan Manjunath and Sasindu Wijeratne and Bingyi Zhang and Viktor K. Prasanna},
  title = {{Exploiting On-Chip Heterogeneity of Versal Architecture for GNN Inference Acceleration}},
  booktitle = {FPL},
  year = {2023},
  url = {https://openreview.net/forum?id=LHWNaG6ee3},
}
Figure