TL;DR
RidgeWalker is a high-performance FPGA accelerator designed to overcome the severe memory latency and workload imbalance bottlenecks in Graph Random Walks (GRWs). By leveraging the Markov property, it breaks sequential walks into independent, stateless tasks executed via an asynchronous pipeline and a queuing-theory-driven scheduler. This architecture achieves up to 88% of theoretical random-access memory bandwidth, outperforming state-of-the-art FPGA and GPU solutions by averages of 7.0× and 8.1×, respectively.
What Problem Does This Paper Address?
Graph Random Walks (GRWs) are foundational building blocks for graph machine learning (like Node2Vec and DeepWalk), graph databases, and network analysis. However, accelerating GRWs is notoriously difficult due to three inherent characteristics:
- Strict Data Dependencies: Each step of a walk requires fetching the neighbors of the current vertex before the next step can even be calculated (pointer chasing).
- Poor Data Locality: Because neighbor selection is probabilistic, even walks starting from the same vertex quickly diverge across the graph. This random memory access pattern renders traditional on-chip caches ineffective once the graph exceeds cache capacity.
- Severe Workload Imbalance: Walks can terminate early due to probabilistic rules or dead-end vertices (nodes with zero outgoing edges). In conventional parallel architectures, this creates massive "pipeline bubbles" where hardware threads sit idle waiting for the longest walk to finish.
While GPUs offer massive parallel bandwidth, their SIMT (Single Instruction, Multiple Threads) model suffers heavily from warp divergence during GRWs, often utilizing less than 1% of their random-access memory bandwidth. Prior FPGA accelerators rely on static scheduling or caching, which fail to scale to large, real-world graphs.
Methods
The core insight of RidgeWalker is that the Markov property of random walks means the next step depends solely on the current vertex, completely independent of the walk's prior history. This allows the authors to abandon the sequential tracking of individual walks and instead decompose them into fine-grained, stateless tasks.
RidgeWalker introduces two primary architectural components:
- Asynchronous Pipeline Architecture: Each step of a walk is split into three decoupled stages: Row Access, Sampling, and Column Access. Tasks from entirely different queries interleave freely within the pipeline. If one task stalls due to a memory request, ready tasks from other queries bypass it. An asynchronous memory engine supports up to 128 outstanding, non-blocking requests to fully saturate memory channels.
- Zero-Bubble Query Scheduler: Grounded mathematically in an $M/M/1[N]$ bulk-service queue model, this scheduler dynamically monitors pipeline utilization at a cycle-level granularity. Using an $N$-to-$N$ task balancer implemented via a fully pipelined butterfly network, it dynamically reroutes ready tasks to idle pipelines on the fly, completely erasing the bubbles caused by early-terminating walks.
Datasets
The authors evaluated RidgeWalker using a variety of large-scale, real-world graphs from the SNAP and WebGraph repositories, including:
- web-Google (WG): Web graph (0.9M vertices, 5.1M edges)
- cit-Patents (CP): Citation network (3.8M vertices, 16.5M edges)
- as-Skitter (AS): Internet topology network (1.7M vertices, 22.2M edges)
- soc-LiveJournal (LJ): Social network (4.9M vertices, 69.0M edges)
- arabic-2005 (AB) & uk-2005 (UK): Large-scale web crawls (up to 39.6M vertices and 0.8B edges)
They also utilized synthetic RMAT graphs (including the standard Graph500 configuration) to test the architecture under extreme structural skew and workload imbalance.
Key Insights and Ideas
- Stateless over Stateful: Traditional graph accelerators try to maintain the state of a walk or query locally. RidgeWalker shows that treating hops as independent packets containing all necessary context (Vertex ID, Query ID, Step Counter) eliminates the need for complex synchronization or global state tracking.
- Embracing Randomness Instead of Fighting It: Rather than trying to design complex caching hierarchies to force data locality where none exists, RidgeWalker accepts fully random memory access and focuses entirely on maximizing the throughput of outstanding memory requests to High-Bandwidth Memory (HBM).
- Queuing Theory for Hardware Design: The authors didn't just guess buffer sizes; they used queuing theory to derive the exact minimum queue depth ($D = N + O(\mu C_{max} N)$) needed to guarantee zero pipeline bubbles under delayed hardware feedback conditions.
Key Results
- vs. FPGA Baselines: RidgeWalker achieves an average speedup of 7.0× over state-of-the-art FPGA accelerators like FastRW and LightRW, with a peak speedup of 71.0× on the large LiveJournal dataset.
- vs. GPU Baselines: Despite the NVIDIA H100 GPU having significantly higher raw memory bandwidth, RidgeWalker achieves an average 8.1× speedup (up to 22.9× peak) over the state-of-the-art
gSamplerGPU framework. - Tolerance to Skew: On highly skewed Graph500 synthetic datasets where GPU performance drops by an order of magnitude due to warp divergence, RidgeWalker maintains a stable, high throughput of ~2,130 MStep/s.
- Hardware Efficiency: The design consistently sustains 81% to 88% of the theoretical random-access memory bandwidth across multiple FPGA generations (AMD Alveo U250, U50, U55C, and Versal VCK5000).
Limitations and Future Work
- Compute-Intensive Sampling: While RidgeWalker handles standard uniform, alias, reservoir, and rejection sampling efficiently, highly complex or dynamically changing user-defined sampling functions might introduce compute bottlenecks that disrupt the pipeline's single-cycle initiation interval.
- Future Directions: The authors suggest that this "perfect pipelining" strategy for handling irregular, pointer-chasing workloads can be generalized beyond graphs to other probabilistic workloads, such as Bayesian networks and Monte Carlo Markov Chain (MCMC) applications.
Summary updated