atlas

Research map / Architectures and efficiency / RNNs and normalization

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

ICLR 2025 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RTop-K, a warp-per-row binary-search top-k kernel for GPUs with optional early stopping, showing large kernel speedups over PyTorch and modest end-to-end MaxK-GNN training speedups.

Problem

Row-wise top-k selection over very large batches of short vectors (hidden dim up to ~1024) is inefficient on GPUs, since existing GPU top-k implementations target a few large vectors and PyTorch's RadixSelect-based top-k is overly complex and sorts its outputs.

Approach

A binary search over the value range finds a threshold that selects k elements, with a second pass using the minimum to fill borderline ties; warp-level primitives (shuffle, ballot, popcnt) implement one warp per row, and capping the number of search iterations (early stopping) trades a small approximation for speed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add early stopping with a small max_iter (ablation)RTop-K row-wise top-k kernel · Row-wise top-k kernel, average across tested settingsspeedup vs PyTorch: 7.29 -> 11.49Helped
Add early stopping to row-wise top-k selection (ablation)MaxK-GNN · MaxK-GNN testing accuracy across models and graphstesting accuracyNo clear effect
Use RTop-K instead of PyTorch row-wise top-kMaxK-GNN · Reddit, Flickr, Ogbn-products, and Yelpoverall training speedup: 11.97% to 33.29%Helped
Vary precision epsilon (ablation)RTop-K without early stopping · Row-wise top-k kernelspeedNo clear effect
Increase vector size M (ablation)RTop-K without early stopping · Row-wise top-k kernel, M between 6144 and 8192speed vs PyTorchHurt

Surprising findings

Limitations

Experimental setup

Datasets: Flickr Yelp Reddit Ogbn-products

Benchmarks: Flickr Yelp Reddit Ogbn-products

Metrics: kernel latency (ms) speedup over PyTorch overall training speedup test accuracy hit rate relative error

Baselines: PyTorch topk (RadixSelect) Dr. Top-k AIR Top-k RadiK GridSelect

Builds on: MaxK-GNN PyTorch topk Dr. Top-k AIR Top-k RadiK

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy