TL;DR
Graph Convolutional Networks (GCNs) are powerful for analyzing graph data, but real-world graphs are often highly unbalanced, leading to significant performance bottlenecks in hardware accelerators. This paper introduces AWB-GCN, a novel GCN accelerator that uses runtime autotuning and workload rebalancing techniques to dynamically adapt to these imbalances, achieving substantial speedups over existing solutions.
What Problem Does This Paper Address?
Deep learning models have excelled in processing structured data like images and text. However, many real-world applications involve complex relationships best represented by graphs. Graph Convolutional Networks (GCNs) are designed to learn from these graph structures. A major challenge in accelerating GCNs on hardware is that real-world graphs are often extremely large and exhibit highly irregular structures, particularly "power-law" distributions. This means a few nodes (or rows/columns in the adjacency matrix) have a disproportionately large number of connections (non-zeros), while most nodes have very few. This "workload imbalance" severely degrades the efficiency of parallel processing elements in hardware accelerators, leading to underutilization and slow performance. Existing accelerators designed for more balanced data structures struggle to cope with this extreme imbalance.
Methods
The core innovation of AWB-GCN is its runtime autotuning framework designed to dynamically rebalance workloads. It employs three key hardware-based techniques:
- Distribution Smoothing: This technique aims to balance workloads among neighboring processing elements (PEs) by offloading tasks from overloaded PEs to less busy ones. This is a local adjustment mechanism.
- Remote Switching: To address more significant regional clustering of non-zeros, remote switching allows for the exchange of workloads between PEs that are at the "crests" (overloaded) and "troughs" (underloaded) of the utilization wave. This is a more global adjustment than distribution smoothing.
- Evil Row Remapping: For the most severe cases of imbalance, particularly "evil rows" containing an exceptionally high number of non-zeros, this technique remaps these rows to specialized "Super-PEs" and then distributively reassigns their workloads to a set of "Labor-PEs." This is the most aggressive rebalancing strategy, targeting the most problematic data structures.
These techniques are applied iteratively at runtime, allowing the system to converge on an optimal workload distribution for the specific graph being processed.
Datasets
The paper evaluates AWB-GCN using five widely-used GCN datasets:
- Cora
- Citeseer
- Pubmed
- Nell
These datasets are known to exhibit varying degrees of power-law distribution, making them suitable for testing the effectiveness of the proposed rebalancing techniques. No new benchmarks were introduced; the focus was on evaluating the accelerator on existing, standard GCN datasets.
Key Insights and Ideas
- Workload Imbalance is the Bottleneck: The paper convincingly demonstrates that the primary performance limiter for GCN accelerators is not raw computational power but the extreme workload imbalance inherent in power-law graph structures.
- Runtime Autotuning is Crucial: Static configurations are insufficient for handling dynamic and highly variable graph structures. AWB-GCN's success hinges on its ability to adapt during execution.
- Hierarchical Rebalancing: The combination of local (distribution smoothing), regional (remote switching), and global (evil row remapping) rebalancing strategies provides a robust solution to tackle different scales of workload imbalance.
- "Evil Rows" are a Major Challenge: The paper highlights "evil rows" as particularly problematic, requiring dedicated remapping strategies to achieve high utilization.
- Hardware-Assisted Autotuning: Implementing these rebalancing strategies in hardware, rather than relying solely on software, is key to achieving the necessary speed and efficiency for runtime adaptation.
Key Results
AWB-GCN demonstrates significant performance improvements:
- PE Utilization: Achieves an average PE utilization improvement of 7.7x compared to a baseline without rebalancing.
- Speedups:
- 3255x over CPUs (Intel Xeon E5-2680v3 + PyTorch Geometric)
- 80.3x over GPUs (NVIDIA Quadro RTX 8000 + PyG)
- 5.1x over a prior GCN accelerator (HyGCN)
- Scalability: The complete AWB-GCN design (Design D) shows high and stable PE utilization, leading to near-linear performance scaling with an increasing number of PEs.
- Resource Efficiency: The overhead for rebalancing techniques is minimal, with distribution smoothing adding only 3.5-6.7% and remote switching/row remapping adding about 0.9% to hardware resource usage on average.
Limitations and Future Work
- FPGA as Evaluation Platform: While the design is general and not FPGA-specific, the current evaluation is performed on an Intel D5005 FPGA. Future work could involve ASIC implementations for direct comparison of energy efficiency.
- General SpMM vs. GCN SpMM: The paper notes that while AWB-GCN is optimized for power-law SpMMs common in GCNs, a global element-wise controller might be more efficient for general SpMM workloads.
- Energy Efficiency Comparison: Direct energy efficiency comparisons with ASIC implementations are challenging due to the FPGA platform.
- Future Work: The authors suggest exploring more advanced autotuning strategies and potentially adapting the architecture for other GNN variants that rely on SpMM primitives. They also highlight the potential for further optimization by considering more distant hop neighbors for distribution smoothing.
Summary updated