Beyond a Single Queue: Multi-Level-Multi-Queue as an Effective Design for SSSP problems on GPUs

Zhengding Hu, Jingwen Sun, Le Jiang, Yuhao Wang, Junqing Lin, Yi Zong, Guangzhong SunarXiv 2026

TL;DR

Graph processing on GPUs is frequently bottlenecked by the use of a single, global queue, which leads to massive synchronization overhead and underutilized memory hierarchies. This paper introduces Multi-Level-Multi-Queue (MLMQ), a novel data structure that distributes queues across registers, shared memory, and global memory using a cache-like collaboration mechanism. Combined with a machine-learning-based configuration selector, MLMQ achieves up to a 17.13x speedup over state-of-the-art GPU graph processing implementations.

What Problem Does This Paper Address?

The Single-Source Shortest Path (SSSP) problem is a foundational workload in graph analytics, crucial for applications ranging from social network analysis to routing. While GPUs offer massive parallelism well-suited for graph processing, existing GPU-based SSSP solutions hit a performance wall.

The culprit is their reliance on a Single, Global, Fixed-type concurrent queue to manage active vertices. This design creates three critical bottlenecks:

  1. Excessive Synchronization Contention: Thousands of threads concurrently trying to push and pop from a single queue forces serialization via atomic operations.
  2. Global Memory Latency: Keeping the queue entirely in global memory starves the GPU's faster, higher-level memory (L1 cache and registers) while saturating global bandwidth.
  3. Poor Input Adaptability: No single queue type (e.g., FIFO vs. priority-based bucket queues) works well for all graphs. Mesh-like graphs (like road networks) and power-law graphs (like social networks) require fundamentally different queue behaviors to balance parallelism and work efficiency.

Methods

To resolve these bottlenecks, the authors propose Multi-Level-Multi-Queue (MLMQ), which aligns the queue structure directly with the GPU's hardware hierarchy:

Differences between single concurrent queue and MLMQ
  • Three-Level Queue Structure:
  • L0 Queue (Registers): Private, thread-level FIFO vectors providing lowest-cost access.
  • L1 Queue (Shared Memory): Partially shared, warp-level queues that balance access latency and capacity. The authors design four L1 variants (Vector, Near-far, Filter, and Shortest-Length-First) offering different trade-offs between priority enforcement and management overhead.
  • L2 Queue (Global Memory): A grid-level, block-based lock-free concurrent queue that handles overflow and global coordination.
  • Cache-like Collaboration: Instead of complex work-stealing mechanisms, threads interact only with their local L0 queue. When L0 fills or empties, it triggers a batch data transfer to/from L1, which similarly cascades to L2 when necessary—mimicking a hardware cache hierarchy.
  • Input-Adaptive Configuration Selector: Because graph topology dictates the optimal queue setup, the authors train a Random Forest regressor. At load time, it extracts lightweight graph features (e.g., vertex/edge counts, degree variance) to automatically select the best combination of L1/L2 queue types and parameters.

Datasets

The framework was evaluated against a diverse suite of graph datasets:

  • Real-world Graphs: Road networks (USA-road), 3D meshes (delaunay), circuit simulations (G3_circuit, memchip), and social networks (flicker).
  • Synthetic Graphs: RMAT graphs and power-law graphs generated with varying degree distributions.
  • SuiteSparse Matrix Collection: 680 distinct matrices used to evaluate generalizability and train the input-adaptive model.

Key Insights and Ideas

  • The Local Queue Trap (Priority Inversion): Simply giving every thread or warp its own local queue actually hurts performance if implemented naively. Because threads prioritize local tasks over globally high-priority ones, it triggers "redundant wavefronts"—cascades of suboptimal path updates that propagate across the graph and waste work.
  • Mitigating Redundant Work: To fix priority inversion without expensive global sorting, the authors introduced specialized L1 queue behaviors. For example, the L1 Filter queue drops elements that fall below a priority threshold and flushes them back to the global L2 queue, ensuring lower-priority tasks don't block progress.
  • Hardware-Software Alignment: By shifting queue operations to registers and shared memory and utilizing warp-level shuffle instructions for block-based transfers, the framework drastically cuts down on expensive global atomic operations.

Key Results

The authors evaluated MLMQ on NVIDIA RTX 3080Ti, Tesla A100, and RTX 4090 GPUs, comparing it against state-of-the-art baselines like ADDS, H-BF, and Gunrock:

  • Massive Speedups: MLMQ achieved average speedups of 1.87x to 2.67x over ADDS (the strongest baseline), and 11.31x to 17.13x over Gunrock.
  • Broad Generalizability: When tested across 680 SuiteSparse matrices, MLMQ outperformed the top baseline in 91.5% of cases.
  • Algorithm Extensibility: To prove MLMQ isn't just for SSSP, the authors applied it to Breadth-First Search (BFS). MLMQ consistently outperformed all baselines, achieving an average 7.74x speedup over Gunrock-GPU.

Limitations and Future Work

Currently, MLMQ's scope is restricted to SSSP and BFS-style graph traversal algorithms. While the underlying modular design is algorithm-independent, extending it to other graph workloads (like PageRank or community detection) will require additional engineering.

Furthermore, the current implementation is confined to single-GPU systems. The authors note that a promising future direction is extending MLMQ to distributed multi-GPU environments by introducing an interconnected, shared "L3" queue layer.

Summary updated

BibTeX
@misc{hu2026beyond,
  author = {Zhengding Hu and Jingwen Sun and Le Jiang and Yuhao Wang and Junqing Lin and Yi Zong and Guangzhong Sun},
  title = {{Beyond a Single Queue: Multi-Level-Multi-Queue as an Effective Design for SSSP problems on GPUs}},
  year = {2026},
  eprint = {2602.10080},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.10080},
}
Figure