GDR-HGNN: A Heterogeneous Graph Neural Networks Accelerator Frontend with Graph Decoupling and Recoupling

Runzhen Xue, Mingyu Yan, Dengke Han, Yihan Teng, Zhimin Tang, Xiaochun Ye, Dongrui Fan

Abstract

Heterogeneous Graph Neural Networks (HGNNs) are powerful for modeling complex real-world data but suffer from severe memory bottlenecks due to irregular access patterns. GDR-HGNN is a novel hardware frontend designed to eliminate "buffer thrashing"—the constant swapping of data between on-chip memory and DRAM. By dynamically restructuring complex graphs into high-locality subgraphs on the fly, GDR-HGNN achieves a 14.6× speedup over high-end GPUs and reduces redundant memory traffic by up to 91.3%.

Introduction

While standard Graph Neural Networks (GNNs) deal with homogeneous graphs, Heterogeneous Graph Neural Networks (HGNNs) handle data with multiple types of nodes and relationships, such as medical databases or citation networks. However, HGNNs are notoriously difficult to accelerate. The "Neighbor Aggregation" stage, accounting for up to 74% of execution time, involves highly irregular memory access patterns. Because graph structures are unpredictable, hardware buffers often fail to maintain data locality, leading to "buffer thrashing." Current accelerators focus on scheduling but ignore the underlying issue: the graph topology itself is "cache-unfriendly."

Methodology: Graph Decoupling and Recoupling

GDR-HGNN addresses the memory bottleneck by acting as a hardware-based "frontend" that restructures graphs before they reach the main accelerator. The process follows two primary stages:

  1. Graph Decoupling: Inspired by the Hungarian Algorithm, this stage identifies a "maximal matching" within the graph to find a graph backbone. This backbone is a minimal subset of vertices that touch every edge in the graph.
  2. Graph Recoupling: Using the identified backbone, the system reorganizes the original semantic graph into three distinct subgraphs engineered for "robust community structure." This ensures that nodes within each group are highly likely to share neighbors, maximizing on-chip data reuse.
The three-step process of searching for backbone candidates, selecting the backbone, and restructuring the graph to optimize locality.

Hardware Architecture

The implementation consists of two custom modules: the Decoupler and the Recoupler. The Decoupler utilizes hash tables and FIFOs to identify backbone candidates in real-time. The Recoupler then partitions edges into four designated buffers (Src_in, Src_out, Dst_in, Dst_out) to generate locality-optimized subgraphs. This architecture operates in a pipeline, restructuring subsequent graph segments while the main accelerator processes the current one.

The hardware architecture of GDR-HGNN, featuring the Decoupler and Recoupler modules integrated with a standard HGNN accelerator.

Evaluation and Results

The researchers evaluated GDR-HGNN using three major datasets—ACM (citation network), DBLP (bibliography), and IMDB (movie database)—across three popular HGNN models: RGCN, RGAT, and Simple-HGN.

Key Performance Metrics

  • Speedup: Integrated with the HiHGNN accelerator, GDR-HGNN achieved an average speedup of 14.6× compared to an NVIDIA A100 GPU and 1.78× over the baseline HiHGNN accelerator.
  • Memory Efficiency: DRAM accesses were reduced by an average of 91.3% compared to software frameworks on a T4 GPU and 42.9% compared to standalone hardware.
  • Bandwidth Utilization: The system improved DRAM bandwidth utilization by up to 6.35× compared to an A100 GPU, preventing compute units from being "starved" for data.

Insights and Future Directions

The "aha moment" for this research was the observation that semantic graphs in HGNNs are essentially bipartite, allowing for efficient maximal matching algorithms. By changing the graph to fit the cache rather than just building a larger cache, the authors achieved significant gains with minimal overhead—adding only 2.3% to total chip area and 0.46% to power consumption.

Future work may explore recursive restructuring to exploit locality in even smaller, faster on-chip buffers (like L1 caches) and adapting this decoupling/recoupling logic to other irregular graph processing workloads.

Summary updated

BibTeX
@inproceedings{xue2024gdr,
  author = {Runzhen Xue and Mingyu Yan and Dengke Han and Yihan Teng and Zhimin Tang and Xiaochun Ye and Dongrui Fan},
  title = {{GDR-HGNN: A Heterogeneous Graph Neural Networks Accelerator Frontend with Graph Decoupling and Recoupling}},
  booktitle = {DAC},
  year = {2024},
  doi = {10.1145/3649329.3656540},
}
Figure