Characterizing and Understanding GCNs on GPU

Mingyu Yan, Zhaodong Chen, Lei Deng, Xiaochun Ye, Zhimin Zhang, Dongrui Fan, Yuan Xie

Abstract

Graph Convolutional Networks (GCNs) have become the standard for analyzing graph-structured data, yet their performance characteristics on modern GPUs are not well-defined. This paper presents a comprehensive characterization of GCNs, revealing them as a "hybrid" workload that combines irregular graph processing with regular neural network computation. By decomposing GCN execution into Aggregation and Combination phases, we identify significant bottlenecks, including a paradoxically low L2 cache hit rate during aggregation. We propose several software and hardware optimizations, such as degree-aware caching and phase reordering, which can lead to substantial performance gains.

Introduction

While Graph Convolutional Networks (GCNs) are state-of-the-art for graph data, their "under-the-hood" behavior on GPUs differs significantly from both standard graph processing and traditional deep learning. Standard graph processing is typically memory-bound and irregular, while traditional Deep Learning (e.g., MLPs) is compute-bound and regular. GCNs sit at the intersection of these two paradigms. This study profiles GCN inference on an NVIDIA V100 to understand these unique bottlenecks and develop targeted optimization strategies.

Methodology

The researchers performed deep-dive profiling of three popular GCN models—GCN, Graph Isomorphism Network (GIN), and GraphSAGE (SAG)—using the NVIDIA NVProf tool on an NVIDIA V100 GPU. The execution is analyzed through two primary phases:

  1. Aggregation: Gathering feature vectors from neighbor nodes (similar to graph processing).
  2. Combination: Updating feature vectors using weights/MLPs (similar to traditional neural networks).

The study utilizes benchmarks including Cora (CR), Citeseer (CS), Pubmed (PB), and Reddit (RD), comparing them against "pure" workloads like PageRank and MLP on MNIST.

Execution time breakdown across GCN models and datasets, showing the split between sgemm (Combination) and indexSelect/scatter (Aggregation).

Characterization and Key Insights

The Hybrid Bottleneck

GCNs exhibit a "Jekyll and Hyde" execution profile. As shown in Figure 1, the execution time is split between regular kernels like sgemm (Combination) and irregular kernels like indexSelect and scatter (Aggregation). The Aggregation phase is primarily memory-bound with irregular access patterns, while the Combination phase is compute-bound and highly regular.

The L2 Cache Paradox

A significant finding is that the Aggregation phase has a much lower L2 cache hit rate (6.9%) compared to standard graph processing (56.2%). This "paradox" stems from the length of GCN feature vectors; unlike the single-value nodes in standard graph processing, GCN vectors are hundreds of elements long, causing them to "flush" the cache before they can be reused by subsequent neighbors.

Detailed profiling of the Aggregation phase, illustrating the low cache hit rates and memory bottlenecks.

Parallelism and Phase Reordering

GCNs possess massive intra-vertex parallelism because entire feature vectors are processed simultaneously. One powerful optimization identified is phase reordering: for models like GraphSAGE, executing the Combination phase before Aggregation can reduce data dimensionality early, leading to a 4.76x speedup in the irregular aggregation step.

Key Results and Optimization Guidelines

On the Reddit dataset, the Aggregation phase achieved an IPC of 1.78, whereas the Combination phase reached 2.49 with 90% unit utilization. Based on these findings, we propose the following guidelines:

  • Software: Utilize degree-aware feature access to prioritize high-degree nodes for reuse and vectorize atomic operations.
  • Hardware: Implement degree- and length-aware cache replacement policies to retain high-value feature vectors in the L2 cache longer.

Conclusion and Future Work

This characterization highlights the unique challenges GCNs pose to GPU architectures. While this study focuses on inference on the NVIDIA V100, the insights regarding phase-specific bottlenecks and "sweet spots" for resource utilization provide a foundation for future hardware-software co-design. Future work will explore adaptive execution granularities to overlap memory-bound and compute-bound phases dynamically.

Summary updated

BibTeX
@article{yan2020characterizing,
  author = {Mingyu Yan and Zhaodong Chen and Lei Deng and Xiaochun Ye and Zhimin Zhang and Dongrui Fan and Yuan Xie},
  title = {{Characterizing and Understanding GCNs on GPU}},
  journal = {IEEE Comput. Archit. Lett.},
  year = {2020},
  doi = {10.1109/lca.2020.2970395},
}
Figure