cd /news/machine-learning/prof-k-probabilistic-one-pass-filter… · home topics machine-learning article
[ARTICLE · art-96312] src=arxiv.org ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

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

Researchers introduced Prof-K, a probabilistic one-pass filtering algorithm for top-k selection that guarantees correctness with probability at least 1 - ε, achieving 1.5x-10x speedups over PyTorch topk and RadiK implementations. The method is distribution-agnostic and robust to adversarial inputs, with applications in machine learning workloads such as sparse autoencoder training.

read1 min views1 publishedAug 14, 2026

arXiv:2608.12573v1 Announce Type: new Abstract: 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 top-k algorithm with probabilistic correctness guarantees. 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 with probability at least 1 - $\epsilon$, where $\epsilon$ > 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-10x 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. By relaxing the recall target (e.g., recovering 95% of the true top-k values), Prof-K additionally provides a principled accuracy-speed trade-off. We further demonstrate its impact on training BatchTopK Sparse Autoencoders (SAEs), where top-k selection constitutes a significant portion of the training cost.

── more in #machine-learning 4 stories · sorted by recency
── more on @prof-k 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/prof-k-probabilistic…] indexed:0 read:1min 2026-08-14 ·