Abstract
Graph Neural Networks (GNNs) have recently gained attention due to their performance on non-Euclidean data. The use of custom hardware architectures proves particularly beneficial for GNNs due to their irregular memory access patterns, resulting from the sparse structure of graphs. However, existing FPGA accelerators are limited by their double buffering mechanism, which doesn't account for the irregular node distribution in typical graph datasets. To address this, we introduce AMPLE (Accelerated Message Passing Logic Engine), an FPGA accelerator leveraging a new event-driven programming flow. We develop a mixed-arithmetic architecture, enabling GNN inference to be quantized at a node-level granularity. Finally, a prefetcher for data and instructions is implemented to optimize off-chip memory access and maximize node parallelism. Evaluation on citation and social media graph datasets ranging from 2K to 700K nodes showed a mean speedup of 243× and 7.2× against CPU and GPU counterparts, respectively.
Introduction: The GNN Bottleneck
Graph Neural Networks (GNNs) are powerful for modeling non-Euclidean data like social networks or biological molecules, but they present significant challenges for traditional hardware. GNN inference typically consists of two distinct phases: Aggregation, which gathers data from a node's neighbors (highly irregular and memory-intensive), and Transformation, which involves standard matrix multiplication (highly regular).
The "Aggregation" phase is the primary bottleneck. Real-world graphs are sparse and non-uniform; a single node might have two neighbors while another has thousands. Traditional accelerators rely on "double buffering," which forces the hardware to wait for the slowest node in a batch to finish before proceeding. This creates massive "pipeline gaps" where expensive hardware resources sit idle. Furthermore, large graphs often exceed the on-chip memory of specialized accelerators, limiting their practical utility.
The AMPLE Architecture
To solve these issues, we introduce AMPLE, which reimagines the GNN execution pipeline through three key innovations: an event-driven flow, mixed-precision arithmetic, and a node-centric prefetcher.
Event-Driven Programming Flow
Instead of processing fixed batches, AMPLE utilizes a Node Instruction Decoder (NID). The host CPU programs individual "nodeslots" asynchronously. As soon as a node finishes its computation, its resources are immediately freed and reassigned to a new node. This event-driven approach eliminates the idle time caused by non-uniform node degrees in traditional synchronous batch processing.
Mixed-Precision and Node-Level Granularity
Research indicates that high-degree nodes are more sensitive to quantization errors than low-degree ones. While most systems quantize an entire model, AMPLE quantizes at the node level. It features a heterogeneous pool of Aggregation Cores (AGCs) supporting float, int8, and int4. By keeping only the top ~3% of high-degree nodes in floating-point (the "DQ ratio"), the system maintains high accuracy while the remaining 97% of nodes run on much faster, leaner fixed-point hardware.
Node-Centric Prefetcher
To handle massive graphs that exceed on-chip memory, AMPLE implements a prefetcher with a "partial response" mechanism. It begins the aggregation process as soon as the first few neighbors are fetched from High-Bandwidth Memory (HBM), hiding memory latency by overlapping data transfer with computation. This transforms a traditionally memory-bound task into a compute-parallel one.
Performance Evaluation
We evaluated AMPLE using six diverse datasets, ranging from small citation networks (Cora, CiteSeer, PubMed) to large-scale social media graphs (Flickr, Reddit, Yelp) with up to 717,000 nodes. These were tested across three foundational GNN models: GCN, GIN, and GraphSAGE.
Key Results
- Significant Speedups: Compared to an Intel Xeon CPU, AMPLE is 243× faster on average. Compared to an NVIDIA RTX A6000 GPU, it is 7.2× faster. For GCN models specifically, the speedup reached 12.9× over the GPU.
- Scalability: AMPLE maintains high throughput even on the largest datasets (like Yelp), where traditional FPGA accelerators often struggle due to on-chip memory constraints.
- Hardware Utilization: The event-driven approach successfully minimized pipeline gaps, allowing the FPGA to maintain high active cycles despite the irregular nature of the input graphs.
Conclusion and Future Work
AMPLE demonstrates that moving away from rigid batch processing to a node-centric, event-driven model can significantly alleviate the bottlenecks of GNN inference. While highly effective, the current architecture has a fixed ratio of float vs. fixed-point cores at compile-time, which could be further optimized for specific graph distributions. Future work will explore adapting this event-driven flow for GNN training and more complex architectures like Graph Attention Networks (GATs).
Summary updated