Skip to main content
QUICK REVIEW

[Paper Review] FeatGraph: A Flexible and Efficient Backend for Graph Neural Network Systems

Yuwei Hu, Zihao Ye|arXiv (Cornell University)|Aug 26, 2020
Advanced Graph Neural NetworksComputer Science43 references12 citations
TL;DR

FeatGraph is a high-performance backend for graph neural networks (GNNs) that co-optimizes graph traversal and feature dimension computation through a two-level programming interface combining coarse-grained sparse templates (generalized SpMM and SDDMM) with fine-grained user-defined functions (UDFs). It achieves up to 32× speedup on CPU and 7× on GPU over state-of-the-art systems by exploiting both graph structure and tensor-level parallelism.

ABSTRACT

Graph neural networks (GNNs) are gaining increasing popularity as a promising approach to machine learning on graphs. Unlike traditional graph workloads where each vertex/edge is associated with a scalar, GNNs attach a feature tensor to each vertex/edge. This additional feature dimension, along with consequently more complex vertex- and edge-wise computations, has enormous implications on locality and parallelism, which existing graph processing systems fail to exploit. This paper proposes FeatGraph to accelerate GNN workloads by co-optimizing graph traversal and feature dimension computation. FeatGraph provides a flexible programming interface to express diverse GNN models by composing coarse-grained sparse templates with fine-grained user-defined functions (UDFs) on each vertex/edge. FeatGraph incorporates optimizations for graph traversal into the sparse templates and allows users to specify optimizations for UDFs with a feature dimension schedule (FDS). FeatGraph speeds up end-to-end GNN training and inference by up to 32x on CPU and 7x on GPU.

Motivation & Objective

  • Address the performance bottleneck in GNN workloads caused by inefficient handling of sparse operations and feature tensor computations.
  • Overcome the limitations of existing deep learning frameworks, which lack flexible support for diverse GNN kernels beyond basic sparse operations.
  • Bridge the gap between traditional graph processing systems and GNN workloads by accounting for the feature tensor dimension that fundamentally changes computation patterns.
  • Enable high-performance GNN training and inference on both CPU and GPU through decoupled, composable optimizations for graph traversal and feature dimension computation.
  • Provide a portable, extensible backend that can be integrated into existing GNN frameworks like DGL and PyTorch Geometric.

Proposed method

  • Introduce two generalized sparse templates: generalized SpMM for vertex-wise computations and generalized SDDMM for edge-wise computations, supporting arbitrary user-defined functions (UDFs) on feature tensors.
  • Decouple kernel specification into coarse-grained traversal logic (via templates) and fine-grained feature computation (via UDFs), enabling independent optimization at each level.
  • Apply graph partitioning and cache-aware optimizations to improve data locality and reduce memory access overhead on CPU.
  • Adapt parallelization strategies for sparse patterns to fully utilize GPU’s massive parallelism, especially in feature dimension computation.
  • Leverage a tensor compiler approach to automatically search for optimal scheduling and code generation strategies on both CPU and GPU.
  • Support flexible integration with existing GNN frameworks by exposing a clean, extensible interface for backend acceleration.

Experimental results

Research questions

  • RQ1How can graph neural network workloads be efficiently expressed and optimized when they involve both sparse graph structures and dense feature tensors?
  • RQ2What are the key performance bottlenecks in existing deep learning and graph processing systems when handling GNN-specific kernels?
  • RQ3Can co-optimization of graph traversal and feature dimension computation significantly improve end-to-end GNN training and inference performance?
  • RQ4To what extent can a two-level programming abstraction (templates + UDFs) enable both flexibility and high performance for diverse GNN models?
  • RQ5How do targeted optimizations for feature dimension computation and graph traversal jointly impact performance on CPU and GPU platforms?

Key findings

  • FeatGraph achieves up to 32× speedup on CPU and 7× on GPU over state-of-the-art systems in end-to-end GNN training and inference workloads.
  • The combination of generalized SpMM and SDDMM templates with customizable UDFs enables expressive support for diverse GNN models, including MLP aggregation and attention mechanisms.
  • Cache-aware graph partitioning and feature dimension-aware load balancing significantly improve CPU performance by reducing memory access overhead.
  • GPU performance is substantially enhanced by exploiting parallelism in both graph traversal and feature tensor computation, which prior GPU graph systems largely ignore.
  • FeatGraph outperforms vendor-optimized libraries like cuSPARSE and MKL in GNN-specific kernels due to its ability to co-optimize traversal and feature computation.
  • The system is portable and can be integrated as a high-performance backend into existing GNN frameworks such as DGL and PyTorch Geometric.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.