NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FlowGNN: A Dataflow Architecture for Universal Graph Neural Network Inference via Multi-Queue Streaming

Rishov Sarkar, Stefan Abi-Karam, Yuqi He, Lakshmi Sathidevi, Cong HaoarXiv 2022

TL;DR

This paper introduces FlowGNN, a novel FPGA-based dataflow architecture designed for universal and real-time inference of Graph Neural Networks (GNNs). By supporting a wide range of GNN models, including those with complex features like edge embeddings and attention, FlowGNN achieves significant speedups over CPU and GPU without requiring pre-processing, making it ideal for dynamic, streaming graph applications.

What Problem Does This Paper Address?

The rapid evolution of GNN models outpaces the development of specialized hardware accelerators. Existing accelerators often focus on specific GNN classes, like Graph Convolutional Networks (GCNs), and rely on graph pre-processing for efficiency. This pre-processing step makes them unsuitable for real-time applications where graphs are streamed dynamically and have varying structures. The challenge lies in creating a general-purpose, flexible, and efficient GNN accelerator that can handle diverse and emerging GNN architectures without sacrificing performance, especially for real-time scenarios.

Methods

FlowGNN proposes a novel, scalable dataflow architecture that generalizes to most message-passing GNNs. Key innovations include:

  • Configurable Dataflow: The architecture is optimized for simultaneous computation of node embeddings, edge embeddings, and message passing, making it broadly applicable.
  • Explicit Message Passing: This mechanism allows for the seamless integration of edge embeddings and various aggregation functions, which are often problematic for traditional matrix multiplication-based accelerators.
  • Multi-Level Parallelism: FlowGNN employs node, edge, scatter, and apply parallelism through a multi-queue-based on-the-fly multicasting adapter. This allows for pipelining of node transformation (NT) and message passing (MP) steps, even within a single node's processing.
  • Model-Specific Components: A rich library of modular components is provided, enabling easy adaptation to new GNN models.
  • Real-Time Inference: The architecture is designed for ultra-fast, real-time GNN inference without any graph pre-processing, making it agnostic to dynamically changing graph structures.

Datasets

The paper evaluates FlowGNN on a variety of datasets:

  • Molecular Property Prediction: MolHIV and MolPCBA (from Open Graph Benchmark), which include edge features.
  • High Energy Physics (HEP): 10k graphs generated using the EdgeConv method.
  • Single-Graph Benchmarks: Cora, CiteSeer, PubMed, and Reddit.

Key Insights and Ideas

  • Generality is Key: The paper argues that focusing solely on GCNs and matrix multiplication formulations limits GNN acceleration. Supporting explicit message passing and edge embeddings is crucial for handling the growing complexity and diversity of GNN models.
  • Pipelining NT and MP is Essential: Unlike previous approaches that might pipeline these stages sequentially, FlowGNN's dataflow architecture effectively overlaps node transformation and message passing, significantly reducing processing unit idle time.
  • Multi-Queue Dataflow for Parallelism: The core innovation of FlowGNN lies in its multi-queue dataflow architecture, which enables multiple levels of parallelism (node, edge, apply, scatter) and allows for on-the-fly multicasting, crucial for efficient handling of irregular graph data.
  • No Pre-processing for Real-Time: The emphasis on real-time performance is achieved by eliminating graph pre-processing, which is a significant bottleneck for dynamic graph applications.

Key Results

FlowGNN demonstrates impressive performance gains on the Xilinx Alveo U50 FPGA:

  • Speedup: Up to 24-254x against CPU (Intel Xeon Gold 6226R) and 1.3-477x against GPU (NVIDIA RTX A6000) with batch sizes from 1 to 1024.
  • Real-Time Advantage: For batch size 1 (simulating real-time streaming), FlowGNN achieves significant speedups, e.g., 13.3–443.4x faster than GPU on the HEP dataset.
  • SOTA Comparison: Outperforms the state-of-the-art GNN accelerator I-GCN by 1.26x in speedup and 1.55x in energy efficiency.
  • Energy Efficiency: Achieves 164–991x higher energy efficiency over CPU and 163–1748x over GPU.
  • Generality: Successfully implements and evaluates six representative GNN models (GCN, GIN, GAT, PNA, DGN, GIN+VN) with minimal modifications.

Limitations and Future Work

  • Workload Imbalance: While FlowGNN addresses many challenges, the paper acknowledges that workload imbalance among MP units can still occur, especially with varying edge assignments. Future work aims to improve this.
  • Extensibility: The paper highlights the modularity and ease of extending FlowGNN to new GNN models, suggesting that future GNN architectures can be readily supported.
  • Design Space Exploration: The paper presents an ablation study showing the impact of different parallelism parameters, indicating that further optimization is possible by tuning these parameters for specific workloads.

Summary updated

BibTeX
@misc{sarkar2022flowgnn,
  author = {Rishov Sarkar and Stefan Abi-Karam and Yuqi He and Lakshmi Sathidevi and Cong Hao},
  title = {{FlowGNN: A Dataflow Architecture for Universal Graph Neural Network Inference via Multi-Queue Streaming}},
  year = {2022},
  eprint = {2204.13103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.13103},
}
Figure