Metraipolis › archive › dc_35080f8142a0

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

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.12573
License (as archived)
CC0-1.0
Archived
2026-10-19T04:27:20.755Z
SHA-256 of the archived text
6a9d6a361b16ec69130c0315d2747339321474fb44afa139b6aba07b00685225
Stable URL of this page
https://metraipolis.com/documento/dc_35080f8142a0

How to cite

Prof-K: Probabilistic One-Pass Filtering for Efficient Top-k Selection — arXiv:2608.12573 — arXiv (en), https://arxiv.org/abs/2608.12573 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_35080f8142a0 (Metraipolis archive dc_35080f8142a0, sha256 6a9d6a361b16ec69130c0315d2747339321474fb44afa139b6aba07b00685225)
BibTeX
@misc{dc35080f8142a0,
  title = {Prof-K: Probabilistic One-Pass Filtering for Efficient Top-k Selection — arXiv:2608.12573},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.12573},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_35080f8142a0; sha256 6a9d6a361b16ec69130c0315d2747339321474fb44afa139b6aba07b00685225},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.12573. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-14 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2608.12573 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T04:20:35.814Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).