mlsanityData to 14 Oct 2026

Prof-K: Probabilistic One-Pass Filtering for Efficient Top-k Selection

arXiv 2608.12573 ↗First posted 12 Aug 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Top-k selection is a fundamental computational primitive with applications spanning databases, information retrieval, signal processing, and modern machine learning workloads, including sparse activations and attention pruning. As data sizes grow, existing approaches become inefficient: exact methods incur high memory and compute overhead, while approximate methods often rely on brittle heuristics that degrade under adversarial or heavy-tailed inputs. In this paper, we introduce Prof-K, a fast, scalable, and distribution-agnostic algorithm for exact top-k selection. Prof-K performs a single-pass filtering procedure: a small random sample estimates an adaptive threshold, the N input elements are streamed once into a compact buffer, and an exact top-k routine on this buffer recovers the true top-k elements on the first attempt with probability at least 1-varepsilon, where varepsilon>0 is user specified. We derive high-probability guarantees for correctness and buffer size, together with an approximately optimal sample size that minimizes overhead as a function of N and k. Empirically, Prof-K achieves 1.5x-15x speedups over the highly optimized PyTorch topk and recent RadiK implementations, with the largest gains in the large-scale, small-to-moderate-k regime where prior methods struggle most. Unlike previous approaches, these guarantees hold independently of the input distribution, ensuring robustness to adversarial settings. A run-time check detects the rare failures and triggers a retry, so the returned set is always exact and varepsilon bounds only the probability of requiring an additional pass. We further demonstrate its impact on training BatchTopK Sparse Autoencoders (SAEs), where top-k selection constitutes a significant portion of the training cost.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 33 references that are in the map. First posted on arXiv 12 Aug 2026.

Builds on

16 of 33 references.

References · 16

  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  2. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  3. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  4. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  5. 2017Deep Gradient Compression: Reducing the Communication Bandwidth for Distributed Trainingcited by 478
  6. 2025Learning Multi-Level Features with Matryoshka Sparse Autoencoderscited by 143
  7. 2019Understanding Top-k Sparsification in Distributed Deep Learningcited by 56
  8. 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 34
  9. 2021An Efficient Statistical-based Gradient Compression Technique for Distributed Training Systemscited by 32
  10. 2021On the Utility of Gradient Compression in Distributed Training Systemscited by 26
  11. 2022Near-Optimal Sparse Allreduce for Distributed Deep Learningcited by 23
  12. 2022TPU-KNN: K Nearest Neighbor Search at Peak FLOP/scited by 18
4 more
  1. 2024RTop-K: Ultra-Fast Row-Wise Top-K Selection for Neural Network Acceleration on GPUscited by 8
  2. 2021Dr. Top-k: Delegate-Centric Top-k on GPUscited by 6
  3. 2025RadiK: Scalable and Optimized GPU-Parallel Radix Top-K Selectioncited by 6
  4. 2022Empirical Analysis on Top-k Gradient Sparsification for Distributed Deep Learning in a Supercomputing Environmentcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025vAttention: Verified Sparse Attention
  2. 2026Principled Top-k Selection for Language Models with Hybrid Gradients
  3. 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspective
  4. 2017Spectral Method and Regularized MLE Are Both Optimal for Top-K Ranking
  5. 2026Recall Before You Rank: Similarity-Guided Top-K Reuse for Efficient Long-Context Attention
  6. 2026Decoding as Optimisation on the Probability Simplex: From Top-K to Top-P (Nucleus) to Best-of-K Samplers
  7. 2025One-Stage Top-k Learning-to-Defer: Score-Based Surrogates with Theoretical Guarantees
  8. 2024Sample-Efficient Agnostic Boosting