Abstract
Graph Random Walks (GRWs) offer efficient approximations of key graph properties and have been widely adopted in many applications. However, GRW workloads are notoriously difficult to accelerate due to their strong data dependencies, irregular memory access patterns, and imbalanced execution behavior. RidgeWalker is a high-performance GRW accelerator designed for datacenter FPGAs that achieves "perfect pipelining" by decomposing walks into stateless, fine-grained tasks. By combining an asynchronous architecture with a feedback-driven scheduler grounded in queuing theory, RidgeWalker achieves up to 88% of theoretical memory bandwidth, outperforming state-of-the-art FPGA and GPU solutions by significant margins.
Introduction
Graph Random Walks are the engine behind modern recommendation systems (such as Pinterest’s PinSage), community detection, and large language model memory. Despite their utility, they represent a "worst-case scenario" for traditional CPU and GPU architectures. Researchers from the National University of Singapore have introduced RidgeWalker, a specialized FPGA accelerator designed to overcome the stubborn bottlenecks inherent in these workloads.
The Challenges of Graph Random Walks
The authors identify two primary "mismatches" between GRW workloads and traditional hardware:
- The Pointer-Chasing Trap: GRWs exhibit strict data dependencies where step $N+1$ cannot be determined until the neighbors for step $N$ are fetched from memory. This "pointer chasing" leads to massive stalls; even top-tier GPU implementations often utilize less than 1% of their available memory bandwidth.
- Workload Imbalance: Walks vary wildly in length due to probabilistic termination or "dead-end" vertices. In a traditional synchronous pipeline, the entire system must wait for the longest walk to finish, leaving hardware resources idle and creating "pipeline bubbles."
The RidgeWalker Architecture
The core innovation of RidgeWalker is treating the Markov property—the fact that the next step depends only on the current vertex—as a hardware design principle. This allows the system to treat a million walks as a giant pool of independent tasks.
- Stateless Task Decomposition: RidgeWalker breaks every walk into fine-grained, independent tasks: Row Access, Sampling, and Column Access. These tasks carry no "history" and can be executed out-of-order across any available pipeline.
- Asynchronous Pipeline Architecture: Unlike rigid, lock-step pipelines, RidgeWalker uses an asynchronous design where modules communicate via FIFOs. This allows the system to interleave tasks from thousands of different queries, effectively hiding memory latency.
- Zero-Bubble Scheduler: Grounded in $M/M/1[N]$ queuing theory, a feedback-driven scheduler monitors pipeline occupancy in real-time and dynamically redirects tasks to idle units, mathematically guaranteeing high utilization.
- Asynchronous Memory Engine: To saturate High-Bandwidth Memory (HBM), RidgeWalker supports up to 128 outstanding, non-blocking memory requests, hiding the high latency of random DRAM accesses.
Experimental Results
RidgeWalker was evaluated on a diverse set of real-world graphs (e.g., web-Google, soc-LiveJournal) and synthetic Graph500 benchmarks.
- Performance Gains: RidgeWalker achieves an average 7.0x speedup over previous state-of-the-art FPGA accelerators (like FastRW and LightRW) and an average 8.1x speedup (up to 22.9x) over
gSampleron high-end NVIDIA H100 GPUs. - Peak Efficiency: On the
soc-LiveJournaldataset, RidgeWalker achieved a 71x speedup over previous FPGA solutions by effectively utilizing HBM. It sustains near-peak throughput even on highly skewed graphs where traditional SIMT architectures suffer from thread divergence. - Bandwidth Utilization: While GPUs have higher theoretical TFLOPS, RidgeWalker hits ~88% memory bandwidth utilization, whereas GPUs often hover in the single digits for these specific workloads.
Conclusion
RidgeWalker demonstrates that "perfect pipelining" for irregular graph workloads is achievable by decoupling sequential algorithms into stateless hardware tasks. This approach not only maximizes memory bandwidth but also provides a blueprint for accelerating other probabilistic workloads. The source code is publicly available on GitHub.
Summary updated