FlexiWalker: Extensible GPU Framework for Efficient Dynamic Random Walks with Runtime Adaptation

Seongyeon Park, Jaeyong Song, Changmin Shin, Sukjin Kim, Junguk Hong, Jinho Lee · OpenReview

Abstract

Dynamic random walks are fundamental to various graph analysis applications, offering advantages by adapting to evolving graph properties. Their runtime-dependent transition probabilities break down the pre-computation strategy that underpins most existing CPU and GPU static random walk optimizations. This leaves practitioners suffering from suboptimal frameworks and having to write hand-tuned kernels that do not adapt to workload diversity. To handle this issue, we present FlexiWalker, the first GPU framework that delivers efficient, workload-generic support for dynamic random walks. Our design-space study shows that rejection sampling and reservoir sampling are more suitable than other sampling techniques under massive parallelism. Thus, we devise (i) new high-performance kernels for them that eliminate global reductions, redundant memory accesses, and random-number generation. Given the necessity of choosing the best-fitting sampling strategy at runtime, we adopt (ii) a lightweight first-order cost model that selects the faster kernel per node at runtime. To enhance usability, we introduce (iii) a compile-time component that automatically specializes user-supplied walk logic into optimized building blocks. On various dynamic random walk workloads with real-world graphs, FlexiWalker outperforms the best published CPU/GPU baselines by geometric means of 73.44x and 5.91x, respectively, while successfully executing workloads that prior systems cannot support.

Introduction: The Challenge of Dynamic Random Walks

Random walks are the engine behind many graph-based applications, from recommendation systems to structural analysis. Most existing frameworks focus on static random walks, where the probability of moving from node A to node B is fixed. In these cases, pre-computation and caching can be used to achieve high performance.

However, dynamic random walks (such as Node2Vec or MetaPath) are more expressive because the next step depends on the walker's history or specific runtime logic. This "dynamic" nature breaks traditional optimizations: probabilities cannot be pre-computed because they change constantly based on the path taken.

Static vs. Dynamic Random Walks

As illustrated above, in a dynamic walk, the transition probability distribution $p(v)$ for a node like V4 depends on the incoming path (Path A vs. Path B), whereas in a static walk, it remains constant. This forces current systems to either use slow, general-purpose CPU frameworks or write hand-tuned GPU kernels that are brittle and fail to adapt to different graph types.

The FlexiWalker Framework

FlexiWalker introduces a three-layered approach to bridge the efficiency and usability gap in dynamic random walk processing.

1. Optimized Sampling Kernels

FlexiWalker focuses on two primary sampling techniques identified as most suitable for massive parallelism: Rejection Sampling and Reservoir Sampling.

  • Enhanced Reservoir Sampling (eRVS): Traditional reservoir sampling requires calculating prefix sums, which is memory-intensive. FlexiWalker uses a statistically equivalent "argmax" approach that cuts memory accesses in half and a "jump" technique to skip unnecessary random number generations.
  • Enhanced Rejection Sampling (eRJS): Standard rejection sampling requires a global reduction to find the maximum edge weight. FlexiWalker eliminates this bottleneck by using a theoretical upper bound computed on the fly, allowing it to sample without scanning all neighbors first.
Sampling Strategies for Dynamic Random Walks

2. Flexi-Runtime: Adaptive Kernel Selection

No single sampling method is universally optimal. Rejection sampling is fast for uniform weights but performs poorly on skewed (power-law) distributions. FlexiWalker uses a lightweight first-order cost model to predict which kernel will be faster for a specific node at runtime and switches between them seamlessly. This "poly-algorithmic" approach ensures peak performance across diverse graph topologies.

3. Flexi-Compiler: Automated Specialization

To enhance usability, the framework includes a compiler component based on LLVM/Clang. It analyzes a user's simple C++ walk logic and automatically generates the optimized GPU building blocks and weight-estimation functions needed for the kernels, shielding developers from low-level GPU programming complexities.

Evaluation and Results

The authors evaluated FlexiWalker on 10 real-world graph datasets spanning social networks, citation webs, and web crawls. Key results include:

  • Performance: FlexiWalker outperformed the best CPU baselines (like SOWalker and ThunderRW) by a geometric mean of 73.44×.
  • GPU Comparison: It beat the best GPU baselines (like FlowWalker and NextDoor) by 5.91×.
  • Robustness: While prior GPU systems often crashed with "Out-of-Memory" (OOM) errors on massive graphs like SK-2005, FlexiWalker successfully processed them.
  • Adaptivity: In skewed distributions where rejection sampling slows down, FlexiWalker’s runtime correctly identifies the shift and switches to reservoir sampling, maintaining stable performance.

Conclusion

FlexiWalker provides the first workload-generic GPU framework for efficient dynamic random walks. By combining optimized kernels, runtime adaptation, and automated compilation, it achieves significant speedups while maintaining robustness and ease of use. Future directions include extending the framework to distributed multi-GPU environments and exploring low-precision edge weights to further reduce memory bottlenecks.

Summary updated

BibTeX
@inproceedings{park2026flexiwalker,
  author = {Seongyeon Park and Jaeyong Song and Changmin Shin and Sukjin Kim and Junguk Hong and Jinho Lee},
  title = {{FlexiWalker: Extensible GPU Framework for Efficient Dynamic Random Walks with Runtime Adaptation}},
  booktitle = {EuroSys},
  year = {2026},
  doi = {10.1145/3767295.3769358},
}
Figure