H-GCN: A Graph Convolutional Network Accelerator on Versal ACAP Architecture

Chengming Zhang, Tong Geng, Anqi Guo, Jiannan Tian, Martin C. Herbordt, Ang Li, Dingwen Tao · DOI

Introduction

Graph Convolutional Networks (GCNs) have emerged as a powerful tool for processing unstructured data, such as social networks and molecular structures. However, their execution on standard hardware is hindered by two primary challenges: irregular data access patterns due to unpredictable node connectivity, and structural heterogeneity. Real-world graphs are not uniformly sparse; they contain a mix of "tightly clustered" dense communities and "scattered" isolated nodes.

Traditional accelerators often treat the entire graph as a uniform sparse workload, leading to significant inefficiencies. CPUs and GPUs struggle with irregular memory access, while conventional FPGAs often lack the raw clock frequency to compete with high-end processors. To address these issues, H-GCN leverages the Xilinx Versal ACAP—a heterogeneous architecture combining high-frequency AI Engines (AIE) with flexible Programmable Logic (PL)—to match hardware resources to the specific density characteristics of different graph regions.

Methodology

H-GCN employs a "divide and conquer" strategy to optimize GCN execution through graph reordering and density-aware hardware mapping.

Graph Reordering and Partitioning

The system utilizes the mt-metis algorithm to reorder graph vertices. This process clusters connected nodes, creating dense rectangular regions along the diagonal of the adjacency matrix. This reordering significantly improves data locality, making the workload more predictable for hardware engines.

Adjacency matrix after reordering, showing dense clusters along the diagonal.

Density-Aware Mapping

H-GCN classifies subgraphs into three distinct categories based on their structural density and maps them to specialized hardware components:

  1. Tightly Clustered (>50% density): These regions are mapped to Dense AI Engines to exploit high-frequency SIMD units.
  2. Loosely Clustered (1%–50% density): These are handled by a custom Sparse AI Engine design.
  3. Scattered (<1% density): These extremely irregular parts are mapped to Programmable Logic (PL), which is better suited for handling high irregularity than fixed-function AIEs.
Mapping of heterogeneous subgraphs to specialized hardware engines in the Versal ACAP.

AIE Sparse Tensor Engine

To enable AI Engines—typically optimized for dense mathematics—to process sparse data efficiently, the authors developed a grouping algorithm. By using a "moving average" strategy to pad sparse rows into groups with a fixed number of non-zero elements, the system creates "pseudo-regular" workloads. This allows the VLIW (Very Long Instruction Word) compiler to successfully pipeline loops that would otherwise be unoptimizable.

Intra-Layer Pipelining

The architecture further optimizes performance by overlapping the "Combination" phase (weight multiplication) with the "Aggregation" phase (graph traversal). For large-scale graphs, performing node feature transformation ($X \cdot W$) before aggregation ($A \cdot B$) reduces the total arithmetic operations required on the ultra-sparse adjacency matrix.

Evaluation and Results

H-GCN was evaluated on seven benchmarks ranging from small-scale datasets like Cora to large-scale graphs like Reddit and AmazonProducts, with vertex counts up to 1.5 million.

  • Performance: H-GCN achieves an average speedup of 1.9× (up to 2.3×) over BoostGCN and 1.2× over AWB-GCN. Compared to software frameworks like PyTorch Geometric (PyG) and Deep Graph Library (DGL) on high-end CPUs and GPUs, H-GCN is up to 3376× faster than CPU and 128× faster than GPU solutions.
  • Energy Efficiency: The design is 1.12× to 1.64× more energy-efficient than previous state-of-the-art FPGA accelerators (I-GCN and AWB-GCN), benefiting from the advanced power management of the Versal ACAP.

Conclusion

H-GCN demonstrates that tailoring hardware to the inherent heterogeneity of graph data can yield massive performance and efficiency gains. While the current implementation relies on offline graph reordering, future work aims to integrate online reordering using the Versal ACAP's on-chip ARM processors. This would enable the accelerator to adapt dynamically to evolving graphs in real-time applications.

Summary updated

BibTeX
@inproceedings{zhang2022h,
  author = {Chengming Zhang and Tong Geng and Anqi Guo and Jiannan Tian and Martin C. Herbordt and Ang Li and Dingwen Tao},
  title = {{H-GCN: A Graph Convolutional Network Accelerator on Versal ACAP Architecture}},
  booktitle = {FPL},
  year = {2022},
  doi = {10.1109/fpl57034.2022.00040},
}
Figure