I-GCN: A Graph Convolutional Network Accelerator with Runtime Locality Enhancement through Islandization

Tong Geng, Chunshu Wu, Yongan Zhang, Cheng Tan, Chenhao Xie, Haoran You, Martin C. Herbordt, Yingyan Lin, Ang Li · DOI

TL;DR

Graph Convolutional Networks (GCNs) are powerful for non-Euclidean data but suffer from poor data locality and redundant computations, hindering hardware acceleration. This paper introduces I-GCN, a novel hardware accelerator that uses an "islandization" technique to dynamically restructure graphs at runtime, improving data locality and pruning redundant computations, leading to significant speedups.

What Problem Does This Paper Address?

Graph Convolutional Networks (GCNs) have emerged as a powerful tool for analyzing data structured as graphs, finding applications in areas like social network analysis, recommendation systems, and drug discovery. Unlike traditional deep learning models that operate on structured grid-like data (e.g., images for CNNs), GCNs are designed to handle the irregular and complex relationships present in graph data. However, accelerating GCNs in hardware presents significant challenges. Real-world graphs are often massive, highly sparse, and exhibit irregular connectivity patterns. This leads to two major problems:

  1. Poor Data Locality: Accessing node features and adjacency information from memory becomes inefficient due to scattered, non-contiguous memory accesses. This can lead to frequent off-chip memory transfers, creating a bottleneck.
  2. Redundant Computations: The aggregation step in GCNs, where a node's features are combined with its neighbors' features, can involve redundant calculations, especially when nodes share many common neighbors.

Existing hardware accelerators often struggle to overcome these issues, either relying on offline graph preprocessing (which is not suitable for dynamic graphs) or failing to efficiently handle the inherent data access patterns. This paper aims to address these fundamental data locality and redundancy problems for efficient GCN hardware acceleration.

Methods

The core innovation of I-GCN is its islandization technique, a novel online graph restructuring algorithm implemented entirely in hardware at runtime. This process aims to identify clusters of nodes with strong internal connections but weak external connections, effectively creating "islands" within the graph.

Here's how it works:

  • Island Locator: This module dynamically identifies "hubs" (nodes with high degrees) and then uses them as starting points to explore and discover these "islands" using a parallel Breadth-First Search (BFS) approach. The islandization process gradually clusters nodes, transforming the sparse, irregular adjacency matrix into a more structured form with clustered non-zeros around the anti-diagonal and in L-shapes. This process happens incrementally and in parallel.
  • Island Consumer: Once an island is identified, this module processes it as a smaller, denser sub-graph. This allows for significantly improved on-chip data reuse for node features, as the data for an island can be fetched once and reused for all computations within that island. Crucially, the islandization process also makes it easier to identify and skip redundant aggregation operations for shared neighbors within an island. The paper describes a technique to pre-aggregate features of shared neighbors and reuse these results, avoiding repeated computations.

The overall I-GCN architecture consists of these two main components, working in tandem to restructure the graph and then process it efficiently. The combination phase of GCNs is handled using a PULL-based approach, which is less sensitive to data locality issues compared to aggregation.

Datasets

The paper evaluates I-GCN on five commonly used GCN benchmark datasets:

  • Cora (CR)
  • Citeseer (CS)
  • Pubmed (PM)
  • Nell (NE)
  • Reddit (RD)

These datasets represent a range of graph sizes, sparsity levels, and structural properties, including those with significant component structures, which are particularly challenging for GCN processing.

Key Insights and Ideas

  • Runtime Graph Restructuring is Key: The paper argues that static, offline graph reordering is insufficient for dynamic or real-time GCN applications. I-GCN's online, hardware-based islandization offers a flexible and efficient alternative.
  • "Islands" Unlock Data Locality: By clustering nodes with strong internal connections, islandization creates localized working sets for feature data, dramatically reducing off-chip memory accesses. This is a fundamental shift from processing individual nodes to processing these cohesive "islands."
  • Redundancy Removal Becomes Feasible: The structured nature of islands makes it practical to identify and eliminate redundant aggregation computations for shared neighbors. This is a significant optimization that is difficult to achieve on raw, unstructured graphs.
  • Hardware-First Approach: The entire islandization process is designed to be implemented in hardware, enabling high-speed, low-latency execution without the overhead of software-based graph processing.

Key Results

I-GCN demonstrates significant performance improvements across various metrics:

  • Speedup: On average, I-GCN achieves speedups of:
  • 5549x over CPUs (PyG- & DGL-based)
    • 403x over GPUs (PyG- & DGL-based)
    • 5.7x over prior art GCN accelerators (HyGCN and AWB-GCN)
  • Redundancy Pruning: The island-based redundancy removal effectively prunes approximately 38% of aggregation operations.
  • Off-chip Access Reduction: The islandization technique significantly reduces off-chip data accesses, alleviating memory bandwidth bottlenecks.
  • Islandization Effect: Visualizations show that islandization effectively clusters non-zeros into L-shaped and anti-diagonal regions, creating a much more structured adjacency matrix compared to lightweight reordering algorithms.

Limitations and Future Work

  • Component Structures: The effectiveness of islandization relies on the presence of component structures in the graph. While these are common in real-world graphs, their absence might limit the benefits.
  • Hubs as Bottlenecks: While hubs are a small fraction of the graph, their repeated access for inter-island connections could still pose a challenge if not managed efficiently. The paper mentions that their data is likely to be stored on-chip due to their small size, but this might not always hold.
  • Future Work: The paper suggests that further exploration of optimizing the islandization process itself and investigating its application to other graph-based deep learning models could be fruitful. The authors also mention that their approach is compatible with both static and dynamic graphs, and inductive and transductive GNN models, opening avenues for broader applications.

Summary updated

BibTeX
@inproceedings{geng2021i,
  author = {Tong Geng and Chunshu Wu and Yongan Zhang and Cheng Tan and Chenhao Xie and Haoran You and Martin C. Herbordt and Yingyan Lin and Ang Li},
  title = {{I-GCN: A Graph Convolutional Network Accelerator with Runtime Locality Enhancement through Islandization}},
  booktitle = {MICRO},
  year = {2021},
  doi = {10.1145/3466752.3480113},
}
Figure