RTop-K: Ultra-Fast Row-Wise Top-K Selection for Neural Network Acceleration on GPUs

Xi Xie, Yuebo Luo, Hongwu Peng, Caiwen Ding
2/12/2026

No official code found. Best implementation: xiexi51/RTopK (29 stars, MIT, last commit 2025-07-23).

Abstract

Top-k selection algorithms are fundamental in a wide range of applications, including high-performance computing, information retrieval, big data processing, and neural network model training. In this paper, we present RTop-K, a highly efficient parallel row-wise top-k selection algorithm specifically designed for GPUs. RTop-K leverages a binary search-based approach to optimize row-wise top-k selection, providing a scalable and accelerated solution. We conduct a detailed analysis of early stopping in our algorithm, showing that it effectively maintains the testing accuracy of neural network models while substantially improving performance. Our GPU implementation of RTop-K demonstrates superior performance over state-of-the-art row-wise top-k GPU implementations, achieving an average speed-up of up to 11.49$\times$ with early stopping and 7.29$\times$ without early stopping. Moreover, RTop-K accelerates the overall training workflow of MaxK-GNNs, delivering speed-ups ranging from 11.97% to 33.29% across different models and datasets.

View on arXivView PDF

Code Implementations(1)

xiexi51/RTopKCommunity62%
MIT

Official Implementation of "RTop-K: Ultra-Fast Row-Wise Top-K Selection for Neural Network Acceleration on GPUs"

294Cuda, CMakeMar 16, 20251 years agoMIT

Similar Papers

Cite this paper

@article{xie2026rtopk,
  title  = {RTop-K: Ultra-Fast Row-Wise Top-K Selection for Neural Network Acceleration on GPUs},
  author = {Xi Xie and Yuebo Luo and Hongwu Peng and Caiwen Ding},
  year   = {2026},
  eprint = {2409.00822},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.00822},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.00822.svg)](https://codeofpaper.com/paper/2409.00822)

Discussion