potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:28 UTC · 8ab1099327b5 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "imjnCDDD6V"
- }
- ],
- "title": "Prof-K: Probabilistic One-Pass Filtering for Efficient Top-$k$ Selection",
- "authors": [],
- "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-\\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.5\\times$-$15\\times$ speedups over the highly optimized PyTorch top-$k$ 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, so the returned set can always be exact and $\\varepsilon$ bounds only the frequency of a second pass. We further demonstrate its impact on training BatchTopK Sparse Autoencoders (SAEs), where top-$k$ selection constitutes a significant portion of the training cost. The source code is provided in the supplementary materials and will be made publicly available.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "196d1d0d-6679-4470-b55e-52966b54ede9"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Prof-K: Probabilistic One-Pass Filtering for Efficient Top-$k$ Selection",
+ "authors": [],
+ "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-\\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.5\\times$-$15\\times$ speedups over the highly optimized PyTorch top-$k$ 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, so the returned set can always be exact and $\\varepsilon$ bounds only the frequency of a second pass. We further demonstrate its impact on training BatchTopK Sparse Autoencoders (SAEs), where top-$k$ selection constitutes a significant portion of the training cost. The source code is provided in the supplementary materials and will be made publicly available.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}