Graph Convolutional Networks (GCNs) have emerged as a powerful tool for processing non-Euclidean data, yet they pose significant challenges for conventional hardware. This paper introduces HyGCN, a specialized accelerator designed to address the "bipolar" execution patterns inherent in GCN workloads. By employing a hybrid architecture, HyGCN achieves substantial performance gains over traditional CPU and GPU implementations.
The Bipolar Nature of GCNs
The primary difficulty in accelerating GCNs stems from their two distinct execution phases: Aggregation and Combination.
- Aggregation: This phase mimics traditional graph processing. It involves irregular memory accesses to neighbor nodes and is typically memory-bound.
- Combination: This phase resembles standard neural network computation (Multi-Layer Perceptrons). It consists of dense matrix-vector multiplications, is highly regular, and is typically compute-bound.
As shown in Figure 1, the ratio of execution time spent in each phase varies significantly across models like GCN, GSC, and GIN, but both phases represent substantial portions of the workload. General-purpose processors struggle to optimize both simultaneously: CPUs lack the parallelism for Combination, while GPUs suffer from inefficiencies during the irregular Aggregation phase.
HyGCN Architecture
To bridge this gap, HyGCN utilizes a hybrid architecture with two dedicated engines designed to handle these disparate workloads concurrently.
Aggregation Engine
The Aggregation Engine is optimized for irregularity. It employs a "vertex-disperse" processing mode to exploit parallelism within long feature vectors. Key innovations include:
- Static Graph Partitioning: Using an interval-shard approach to improve data locality.
- Dynamic Sparsity Elimination: A "window sliding-shrinking" technique that allows the hardware to skip empty spaces in sparse graphs dynamically, significantly reducing wasted cycles.
Combination Engine
The Combination Engine handles regular neural network tasks using multi-granular systolic arrays. These arrays can be configured in an "independent mode" for low latency or a "cooperative mode" for high energy efficiency, depending on the specific model requirements.
System Integration and Optimization
HyGCN integrates these engines via a fine-grained pipeline using ping-pong buffers. Furthermore, a priority-based memory coordination scheme prioritizes edge data requests over feature data, maximizing DRAM row buffer utilization and leading to a 4× improvement in effective bandwidth.
Key Insights
- Exploiting Intra-vertex Parallelism: Unlike traditional graph analytics where vertex data is minimal, GCNs feature long vectors. HyGCN leverages this to increase throughput.
- Hybrid Specialization: Treating GCNs as a hybrid workload rather than a pure graph or pure neural network problem is essential for peak efficiency. Standard architectures usually excel at one but fail at the other.
- Memory Coordination: Prioritizing irregular edge accesses helps mitigate the memory-bound nature of the Aggregation phase.
Performance Evaluation
HyGCN was evaluated against PyTorch Geometric (PyG) on an Intel Xeon CPU and an NVIDIA V100 GPU across six datasets (Cora, Citeseer, Pubmed, IMDB-BIN, COLLAB, and Reddit).
- Speedup: HyGCN achieved an average 1509× speedup over the CPU and 6.5× speedup over the GPU.
- Energy Efficiency: It demonstrated a 2500× reduction in energy consumption compared to the CPU and a 10× reduction compared to the GPU.
- Hardware Efficiency: The design is compact and efficient, occupying only 7.8 mm² and consuming 6.7W of power at 12nm.
Conclusion
HyGCN demonstrates that a hybrid architectural approach is highly effective for the unique demands of GCNs. By specializing hardware for both irregular graph aggregation and regular neural computation, HyGCN overcomes the bottlenecks that limit general-purpose processors. Future work could extend this architecture to support the backward passes required for training and more complex, non-uniform sampling strategies.
Summary updated