Cambricon-G: A Polyvalent Energy-efficient Accelerator for Dynamic Graph Neural Networks

2021 
Graph Neural Networks (GNNs), which extend traditional neural networks for processing graph-structured data, have been widely used in many fields. The GNN computation mainly consists of the edge processing to generate messages by combining the edge/vertex features and the vertex processing to update the vertex features with aggregated messages. In addition to non-trivial vector operations in the edge processing, huge random accesses and neural network operations in the vertex processing, the graph topology of GNNs may also vary during the computation (i.e., dynamic GNNs). The above characteristics pose significant challenges on existing architectures. In this paper, we propose a novel accelerator named Cambricon-G for efficient processing of both dynamic and static GNNs. The key of Cambricon-G is to abstract the irregular computation of a broad range of GNN variants to the process of regularly tiled adjacent cuboid (which extends the traditional adjacent matrix of graph by adding the dimension of vertex features). The intuition is that the adjacent cuboid facilitates exploitation of both data locality and parallelism by offering multi-dimensional multi-level tiling (including spatial and temporal tiling) opportunities. To perform the multi-dimensional spatial tiling, the Cambricon-G architecture mainly consists of the Cuboid Engine (CE) and hybrid on-chip memory. The CE has multiple Vertex Processing Units (VPUs) working in a coordinated manner to efficiently process the sparse data and dynamically update the graph topology with dedicated instructions. The hybrid on-chip memory contains the topology-aware cache and multiple scratchpad memory to reduce off-chip memory access. To perform the multi-dimensional temporal tiling, an easy-to-use programming model is provided to flexibly explore different tiling options for large graphs. Experimental results show that compared against Nvidia P100 GPU, the performance and energy efficiency can be improved by 7.14× and 20.18×, respectively, on various GNNs, which validates both the versatility and energy efficiency of Cambricon-G.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []