potentialpaper

Qrita: High-performance Top-k and Top-p Algorithm for GPUs using Pivot-based Truncation and Selection

Update NeurIPS 2026 submission 4dnBXjV4Za: 5 notes

@openreview[bot] · 2026-11-24 15:45 UTC · b2eda19254f9 ·

Evidence

reviews/openreview/4dnbxjv4za/notes/h1109jzlmv.json added

+++ b/reviews/openreview/4dnbxjv4za/notes/h1109jzlmv.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "H1109jZlmv",
+ "replyTo": "Ixcw2L89VO",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Response Part 1",
+ "comment": "Thank you for your reviews! Here are our answers to your concerns and questions. \n\n### **1. Cap/Tolerance Mismatch**\nWe apologize for the mismatch between the reconcile cap and tolerance values in the\npaper ($20$, $1\\text{e-}12$) and the code ($18$, $1\\text{e-}9$). The tighter values in\nthe paper are our original values, used for the evaluations included in the paper.\n\nThe values in the included code are the ones we updated for our vLLM PR, as the\noriginal values were considered unnecessarily tight and were loosened for additional\nperformance gains in production. We included our updated code but did not update the\npaper's values accordingly, and we apologize for the confusion.\n\n### **2. Empirical Exactness Measurements**\n\nWe use vLLM's top-$k$ & top-$p$ sampler test suite\n(`tests/v1/sample/test_topk_topp_sampler.py`) to empirically compare the exactness of\nour algorithm against the PyTorch sort-based reference. The tests sweep across:\n\n- Different batch sizes, vocab sizes, and $k$/$p$ values (including none or partial skips)\n- Edge cases: extreme $k$ ($1$, vocab\\_size), extreme $p$ (near-$0$, $1.0$), identical logits, near-identical logits ($1\\text{e-}6$ spread), $\\infty$ logits, and NaN logits\n\nOur algorithm passes all tests in the given test suite. Therefore, our empirical match\nrate against the PyTorch reference is $1.0$, and the miss rate is $0.0$, for the given\ntest suite.\n\n### **3. Theoretical Exactness Analysis**\n\nDespite the empirical exactness measured by the test suite, there are a few possible\ncases where a mismatch against the PyTorch reference could occur.\n\n### a. Gaussian Sigma-Based Truncation\n\nAs we gather outlier logits strictly larger than the threshold, the outlier set must\ncontain the top-$N$ values of the set, where $N$ is the number of elements in the\noutlier set. Therefore, as long as $k < N$, the outlier set is a superset of the\ntop-$k$ set. The same applies to top-$p$, as long as the sum of the outliers is larger\nthan $p$.\n\nIf the outlier set does not satisfy this property, we return the full logit set.\nTherefore, it is guaranteed that the set returned by Gaussian sigma-based truncation is\na superset of the top-$k$ or top-$p$ set, and the correctness claim holds as long as\nthe remaining algorithm can find the exact top-$k$ or top-$p$ set within it.\n\n### b. Quaternary Pivot Search\n\nQuaternary Pivot Search is correct as long as its \"resolution\", or its ability to\ndifferentiate between two adjacent values, is finer than the gap between the two\nvalues adjacent to the correct pivot. Quaternary Pivot Search has two resolutions:\n(1) absolute resolution and (2) relative resolution.\n\n**b-1. Absolute resolution.**\n\n The absolute resolution between two logits is\n$1\\text{e-}9$, roughly $2^{-30}$. Therefore, if logits near the cutoff pivot have an\nabsolute difference smaller than $2^{-30}$, they may be incorrectly treated as\nidentical (duplicate) values.\n\nHowever, this is near-impossible in practice, as logits are typically FP16 or BF16\nvalues upcast to FP32. The finest resolution of FP16 itself is $2^{-24}$, still\ncoarser than $2^{-30}$. For BF16, resolution finer than $2^{-30}$ only occurs in the\nrange $(-2^{-23}, 2^{-23})$, due to its 7-bit mantissa. In practical LLM serving with\nreasonable $k$/$p$ values and real model predictions, pivots rarely land in such\nextreme near-zero values.\n\n**b-2. Relative resolution.**\n\nThe relative resolution is $2^{-36}$ times the original\nsearch range, since we reduce the search range by $1/4$ for up to $18$ iterations.\nTherefore, if logits near the pivot have an absolute difference smaller than $2^{-36}$\ntimes the original search range, the search may return an incorrect pivot value.\n\nHowever, most logit distributions fall within $[-10, 10]$, and probabilities within\n$[0.0, 1.0]$. As such, the relative resolution provided by $18$ quaternary search\niterations is between $2^{-31}$ and $2^{-36}$, even tighter than the $2^{-30}$\nabsolute resolution.\n\n### c. Duplication Handling\n\nDuplication handling keeps the first-occurrence set, which is equivalent to a stable sort that preserves\nthe order of identical elements. Unfortunately, PyTorch's `sort` is\nunstable by default unless a flag is set. Therefore, Qrita may return results that\ndiffer from PyTorch's sort reference, since the order of identical values is undefined\nin PyTorch's default sort. However, this difference is not necessarily \"incorrect\", and\nwe believe keeping our algorithm equivalent to a stable sort is the most reasonable\ndesign choice.\n\n### **4. Tail Latency, Hitrate, and Effect of Temperature or Quantization**\n\nWe measure the p50/p95/p99 TTFT (time to first token), TPOT (time per output token), and E2EL (end-to-end latency), and top-k/p hitrate, with inputs from the ShareGPT dataset following a Poisson arrival rate of 16.0. All time values are in milliseconds, and the Qwen3.5-35B-A3B-FP8 results are from an H100, while the Qwen3.5-35B-A3B results are from H100s with EP=2. \n\n(Results in Part 2)"
+ },
+ "createdAt": "2026-07-29T13:40:30.689Z",
+ "modifiedAt": "2026-11-19T17:17:53.382Z",
+ "url": "https://openreview.net/forum?id=4dnBXjV4Za&noteId=H1109jZlmv",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/4dnbxjv4za/notes/jm1ax3e0gy.json modified

+++ b/reviews/openreview/4dnbxjv4za/notes/jm1ax3e0gy.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair csvu",
"content": {
- "metareview": "Qrita presents a practical Triton implementation of pivot-based Top-k/Top-p selection that avoids full-vocabulary sorting while aiming to preserve the exact, deterministic candidate set. The problem is relevant to LLM serving, and the method is simple, well motivated, and supported by broad multi-platform results showing substantial kernel speedups, end-to-end gains, and lower memory use.\n\nThe main concern is that the central exactness claim is asserted rather than directly measured against full sort. The paper should also reconcile reported paper/code inconsistencies concerning iteration limits, numerical tolerances, and Algorithm 2. Further clarification is needed on Gaussian truncation robustness under temperature and low precision, Top-p fallback and tail latency, large-batch scalability, and comparisons with radix-based approaches.\n\nI lean accept because the contribution is practically useful and the evaluation is otherwise comprehensive. A rebuttal providing direct exactness verification and resolving the implementation discrepancies is important; failure to do so could lower my assessment."
+ "metareview": "Qrita presents a practical Triton implementation of pivot-based Top-k/Top-p selection that avoids full-vocabulary sorting while aiming to preserve the exact, deterministic candidate set. The problem is relevant to LLM serving, and the method is simple, well motivated, and supported by broad multi-platform results showing substantial kernel speedups, end-to-end gains, and lower memory use.\n\nThe main concern is that the central exactness claim is asserted rather than directly measured against full sort. The paper should also reconcile reported paper/code inconsistencies concerning iteration limits, numerical tolerances, and Algorithm 2. Further clarification is needed on Gaussian truncation robustness under temperature and low precision, Top-p fallback and tail latency, large-batch scalability, and comparisons with radix-based approaches.\n\nI lean accept because the contribution is practically useful and the evaluation is otherwise comprehensive. A rebuttal providing direct exactness verification and resolving the implementation discrepancies is important; failure to do so could lower my assessment.",
+ "final_justification": "The paper get an origin score of 4-4-4 and without changing afterwards. The rebuttal address the reviewers main concern, which also convincing me that the paper meets the quality of NIPS. So I recommend Acceptance."
},
"createdAt": "2026-07-23T15:33:22.004Z",
- "modifiedAt": "2026-11-18T15:20:49.355Z",
+ "modifiedAt": "2026-11-19T05:00:31.269Z",
"url": "https://openreview.net/forum?id=4dnBXjV4Za&noteId=Jm1aX3E0gy",
"license": "CC-BY-4.0"
}

reviews/openreview/4dnbxjv4za/notes/qk1ens6b0b.json added

+++ b/reviews/openreview/4dnbxjv4za/notes/qk1ens6b0b.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "qk1EnS6B0b",
+ "replyTo": "tuH5c5qt0E",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "### **1. Tail latency and hitrate on serving benchmarks**\n\nWe empirically measure the p50 TTFT (time to first token), TPOT (time per output token), and E2EL (end-to-end latency), their p95 and p99 tail latency, and top-k and top-p hitrate, using vLLM’s serving benchmark with inputs sampled from the ShareGPT dataset, with Poisson arrival at a rate of [1.0, 4.0, 16.0]. All time values are in milliseconds, and the results are from an Nvidia H100 GPU.\n\n| Model | Temp | Rate | p | k | Impl | p50 TTFT | p95 TTFT | p99 TTFT | p50 TPOT | p95 TPOT | p99 TPOT | p50 E2EL | p95 E2EL | p99 E2EL | TopK Hit Rate | TopP Hit Rate |\n|---|---|---|---|---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | 0.9 | 50 | Qrita | 31.88 | 101.27 | 109.74 | 6.53 | 7.55 | 7.98 | 1698.58 | 1974.90 | 2080.74 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | 0.9 | 50 | vLLM | 32.84 | 100.58 | 116.99 | 6.70 | 7.68 | 8.37 | 1743.95 | 2012.51 | 2182.98 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | 0.9 | none | Qrita | 31.58 | 97.30 | 121.68 | 6.49 | 7.44 | 7.97 | 1695.00 | 1946.69 | 2079.36 | n/a | 100.00% |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | 0.9 | none | vLLM | 32.18 | 91.28 | 104.97 | 6.69 | 7.68 | 8.33 | 1723.51 | 1989.84 | 2174.23 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | none | 50 | Qrita | 32.63 | 99.71 | 131.83 | 6.51 | 7.49 | 8.07 | 1694.47 | 1942.33 | 2117.47 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 1.0 | none | 50 | vLLM | 31.15 | 96.18 | 108.62 | 6.68 | 7.74 | 8.20 | 1733.71 | 2003.44 | 2137.91 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | 0.9 | 50 | Qrita | 40.20 | 108.37 | 144.81 | 10.34 | 11.89 | 12.41 | 2638.55 | 3071.84 | 3204.92 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | 0.9 | 50 | vLLM | 42.16 | 113.00 | 143.90 | 11.00 | 12.78 | 13.47 | 2836.30 | 3303.48 | 3476.51 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | 0.9 | none | Qrita | 41.21 | 99.57 | 121.34 | 10.16 | 11.71 | 12.26 | 2616.57 | 3035.47 | 3169.75 | n/a | 99.99% |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | 0.9 | none | vLLM | 41.95 | 103.19 | 128.08 | 10.91 | 12.42 | 13.13 | 2780.79 | 3241.24 | 3390.31 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | none | 50 | Qrita | 41.43 | 111.63 | 126.25 | 10.34 | 11.89 | 12.46 | 2673.59 | 3064.59 | 3208.22 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 4.0 | none | 50 | vLLM | 41.49 | 100.29 | 123.77 | 10.69 | 12.36 | 12.76 | 2677.95 | 3204.54 | 3293.57 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | 0.9 | 50 | Qrita | 102.93 | 183.64 | 205.67 | 27.55 | 31.40 | 32.84 | 6968.81 | 8115.68 | 8190.84 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | 0.9 | 50 | vLLM | 113.85 | 199.40 | 221.32 | 30.87 | 35.38 | 35.76 | 7841.55 | 9107.80 | 9189.81 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | 0.9 | none | Qrita | 99.99 | 177.28 | 311.60 | 26.40 | 29.96 | 30.55 | 6733.10 | 7764.92 | 7910.95 | n/a | 99.98% |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | 0.9 | none | vLLM | 109.66 | 193.50 | 220.88 | 29.71 | 33.78 | 35.02 | 7501.24 | 8698.17 | 8768.40 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | none | 50 | Qrita | 104.66 | 186.29 | 213.84 | 27.84 | 31.58 | 32.44 | 7017.02 | 8162.28 | 8255.66 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 16.0 | none | 50 | vLLM | 110.08 | 190.61 | 226.68 | 30.61 | 35.08 | 35.90 | 7660.48 | 9024.21 | 9126.68 | n/a | n/a |\n\nComparing the Qrita and vLLM results, we see that there indeed are cases where Qrita delivers slower p95/p99 tail latencies for TTFT. However, Qrita delivers lower TPOT latencies overall, which results in around a 5-10% reduction in end-to-end latencies.\n\n### **2. Large-batch behavior**\n\nSampling is an embarrassingly parallel workload where each processor (SM/CU) can be utilized independently. Therefore, throughput scales linearly with the number of utilized resources, as parallelism across the resources simply adds up to the total throughput. \n\nOnce we exhaust the parallel resources, the sampling scaling pattern is analyzed as a memory-bound operation, and the total amount of memory accesses required divided by the bottleneck memory bandwidth becomes the maximum achievable throughput. Increasing the batch size will amortize overheads such as kernel launch or buffer cache warmups, and make it possible to achieve closer to the maximum achievable throughput.\n\nThe same scaling pattern applies not only to Qrita, but also to other sampling kernels as well. However, the key benefit of Qrita compared to other sampling algorithms is that 1. it first reduces the search space in a single pass (Gaussian Sigma-Based Truncation), and 2. pivot-based search is write-free, which combines to greatly reduce the total amount of memory accesses required for the operation, and thus allowing for a higher maximum achievable throughput as seen in the evaluations on batch size of 256, 512, and 1024."
+ },
+ "createdAt": "2026-07-29T12:53:38.079Z",
+ "modifiedAt": "2026-11-19T17:17:53.400Z",
+ "url": "https://openreview.net/forum?id=4dnBXjV4Za&noteId=qk1EnS6B0b",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/4dnbxjv4za/notes/qwvf1zsnye.json added

+++ b/reviews/openreview/4dnbxjv4za/notes/qwvf1zsnye.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "QWVf1zSNYE",
+ "replyTo": "Ixcw2L89VO",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Response Part 2",
+ "comment": "### **4. Tail Latency, Hitrate, and Effect of Quantization and Temperature (Continued From Response Part 1)**\n\n### **Table 1: Qrita vs vLLM Serving Benchmarks**\n\n| Model | Temp | p | k | Impl | p50 TTFT | p95 TTFT | p99 TTFT | p50 TPOT | p95 TPOT | p99 TPOT | p50 E2EL | p95 E2EL | p99 E2EL | TopK Hit Rate | TopP Hit Rate |\n|---|---|---|---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | 50 | Qrita | 102.93 | 183.64 | 205.67 | 27.55 | 31.40 | 32.84 | 6968.81 | 8115.68 | 8190.84 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | 50 | vLLM | 113.85 | 199.40 | 221.32 | 30.87 | 35.38 | 35.76 | 7841.55 | 9107.80 | 9189.81 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | none | Qrita | 99.99 | 177.28 | 311.60 | 26.40 | 29.96 | 30.55 | 6733.10 | 7764.92 | 7910.95 | n/a | 99.98% |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | none | vLLM | 109.66 | 193.50 | 220.88 | 29.71 | 33.78 | 35.02 | 7501.24 | 8698.17 | 8768.40 | n/a | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | none | 50 | Qrita | 104.66 | 186.29 | 213.84 | 27.84 | 31.58 | 32.44 | 7017.02 | 8162.28 | 8255.66 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | none | 50 | vLLM | 110.08 | 190.61 | 226.68 | 30.61 | 35.08 | 35.90 | 7660.48 | 9024.21 | 9126.68 | n/a | n/a |\n| Qwen3.5-35B-A3B | 1.0 | 0.9 | 50 | Qrita | 71.86 | 123.28 | 132.75 | 19.28 | 20.51 | 20.87 | 4882.88 | 5288.63 | 5322.34 | 100.00% | n/a |\n| Qwen3.5-35B-A3B | 1.0 | 0.9 | 50 | vLLM | 77.24 | 114.55 | 145.80 | 21.90 | 23.51 | 24.20 | 5512.51 | 6064.16 | 6090.64 | n/a | n/a |\n| Qwen3.5-35B-A3B | 1.0 | 0.9 | none | Qrita | 75.95 | 147.27 | 179.28 | 20.63 | 22.11 | 22.27 | 5254.81 | 5705.91 | 5738.00 | n/a | 99.99% |\n| Qwen3.5-35B-A3B | 1.0 | 0.9 | none | vLLM | 75.96 | 114.73 | 140.62 | 22.09 | 23.64 | 23.73 | 5631.94 | 6106.15 | 6125.16 | n/a | n/a |\n| Qwen3.5-35B-A3B | 1.0 | none | 50 | Qrita | 77.15 | 136.00 | 163.68 | 20.56 | 22.25 | 24.63 | 5196.33 | 5727.92 | 5739.14 | 100.00% | n/a |\n| Qwen3.5-35B-A3B | 1.0 | none | 50 | vLLM | 78.10 | 114.45 | 134.24 | 22.05 | 23.56 | 23.97 | 5491.71 | 6068.22 | 6086.06 | n/a | n/a |\n\nComparing the Qrita and vLLM results, we see that there are cases where Qrita delivers a slower p95/p99 tail latency for TTFT and TPOT. However, Qrita constantly delivers lower average (p50) latencies, resulting in around an 8-11% reduction in end-to-end latencies (E2EL), even in the p95/p99 case.\n\nWe observe minimal changes to top-k or top-p hitrate across the original BF16 model and the FP8 model. The reduction in latencies is largely due to the use of EP=2 in the BF16 model, which the baseline vLLM execution shares. We believe that quantizations, by design, should have minimal impact on the distribution of the output logits and thus the operation of Qrita.\n\n### **Table 2: Temperature sweep (0.8/1.0/1.2)**\n\n| Model | Temp | p | k | Impl | p50 TTFT | p95 TTFT | p99 TTFT | p50 TPOT | p95 TPOT | p99 TPOT | p50 E2EL | p95 E2EL | p99 E2EL | TopK Hit Rate | TopP Hit Rate |\n|---|---|---|---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|\n| Qwen3.5-35B-A3B-FP8 | 0.8 | 0.9 | 50 | Qrita | 102.18 | 160.65 | 187.96 | 27.70 | 31.21 | 32.30 | 7031.88 | 8068.94 | 8113.28 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 0.8 | 0.9 | none | Qrita | 104.55 | 170.05 | 198.95 | 27.68 | 31.55 | 35.91 | 7029.23 | 8159.81 | 8226.75 | n/a | 100.00% |\n| Qwen3.5-35B-A3B-FP8 | 0.8 | none | 50 | Qrita | 100.14 | 181.94 | 197.70 | 27.40 | 31.40 | 31.91 | 6920.49 | 8088.11 | 8167.35 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | 50 | Qrita | 102.93 | 183.64 | 205.67 | 27.55 | 31.40 | 32.84 | 6968.81 | 8115.68 | 8190.84 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | 0.9 | none | Qrita | 99.99 | 177.28 | 311.60 | 26.40 | 29.96 | 30.55 | 6733.10 | 7764.92 | 7910.95 | n/a | 99.98% |\n| Qwen3.5-35B-A3B-FP8 | 1.0 | none | 50 | Qrita | 104.66 | 186.29 | 213.84 | 27.84 | 31.58 | 32.44 | 7017.02 | 8162.28 | 8255.66 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.2 | 0.9 | 50 | Qrita | 109.70 | 190.10 | 221.52 | 27.99 | 31.69 | 32.23 | 6950.28 | 8176.55 | 8250.96 | 100.00% | n/a |\n| Qwen3.5-35B-A3B-FP8 | 1.2 | 0.9 | none | Qrita | 95.16 | 167.37 | 270.06 | 26.42 | 29.81 | 31.13 | 6558.24 | 7720.29 | 7813.97 | n/a | 96.87% |\n| Qwen3.5-35B-A3B-FP8 | 1.2 | none | 50 | Qrita | 101.28 | 186.24 | 204.78 | 27.55 | 31.11 | 33.96 | 6795.85 | 8010.11 | 8120.73 | 100.00% | n/a |\n\nQrita does show a slight decrease in top-p truncation hitrate as the temperature increases, possibly due to tighter grouping between the noise and the outlier regions with increased temperatures. However, we believe that the impact of temperature on the performance of Qrita is minimal, as no clear correlation between temperature and tail latencies is shown, with some temperature=1.2 results even showing the lowest end-to-end latencies compared to temperature=0.8 or 1.0 results."
+ },
+ "createdAt": "2026-07-28T17:13:21.783Z",
+ "modifiedAt": "2026-11-19T17:17:53.490Z",
+ "url": "https://openreview.net/forum?id=4dnBXjV4Za&noteId=QWVf1zSNYE",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/4dnbxjv4za/notes/y764ys28zc.json added

+++ b/reviews/openreview/4dnbxjv4za/notes/y764ys28zc.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "y764ys28ZC",
+ "replyTo": "gfNhYgBbcq",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for your reviews! Here are our answers to your concerns and questions.\n\n### **1. Comparison to Radix Top-k, Radix Top-p, and other GPU Top-k/p Algorithms**\n\nQrita is composed of three distinct components serving different purposes. The\ncomponent comparable to Radix Top-$k$/$p$ or other GPU top-$k$/$p$ algorithms is the\nQuaternary Pivot Search, as it is the main \"exact top-$k$/$p$\" algorithm. For Gaussian Sigma-Based Truncation, the goal is to reduce the top-$k$/$p$ search space in a single pass, and for Duplication Handling it is to ensure deterministic results in the presence of\nidentical values.\n\nThe choice for these components comes from the characteristics of the LLM logits, similar to the method mentioned in Data-Dependent Kernel Optimizations. Logit sampling has an extreme search-space-to-output ratio. The\nvocabulary size of modern LLMs ranges from $100$K+ and is actively growing as LLMs\nincrease their functionality, but the output predictions are selected from fewer than\n$100$ candidates. Also, with the widespread use of quantization schemes such as FP8 or\nNVFP4/MXFP4, it is quite common for logits to have duplicate (identical) values, due to the limited\nresolution of these low-bit representations.\n\nTherefore, it was critical to introduce a method that quickly truncates the\never-increasing LLM vocabulary space into a more constant space representative of the top-$k$/$p$ outputs, and thus we introduced Gaussian Sigma-Based\nTruncation. Similarly, with output stability and determinism increasing in importance,\nwe designed Duplication Handling, which returns results identical to stable\nsort-based approaches that preserve the order of duplicate values. However, for\nDuplication Handling to work, we must know the value and the number of duplicate\nlogits that fall on the top-$k$/$p$ pivot.\n\nWe considered several candidate algorithms for the \"exact top-$k$/$p$\" component, and\nwe chose the search-based approach as it was the easiest to fold detection and\ncounting of duplicate logits into the algorithm itself. Radix Top-$k$/$p$, RadiK, and\nother radix-based algorithms often exhaust all remaining bits in the presence of\nduplicate values, requiring more search iterations compared to our Quaternary Search which can directly detect the pivot falling on duplicate values.\n\nSimilarly, many high-performance GPU top-$k$/$p$ algorithms are inefficient or\nnon-deterministic in the presence of duplicate values. Our choice of Quaternary Search\nfor the exact top-$k$/$p$ component is based on the ease and effectiveness it brings to\nduplicate handling, and not a because it is necessarily better than radix-based\nalgorithms in isolation.\n\n### **2. Dispatch Between Quaternary and Binary Search**\n\nThank you for the suggestion! Yes, it should be straightforward to add switching\nbetween binary and quaternary search, and doing so would likely yield speedup. We\nexperimented with several search algorithms and settled on quaternary search for tail\nlatency control and ease of algorithm presentation. In practice, however, dispatching\nbetween algorithms could be beneficial for maximum performance."
+ },
+ "createdAt": "2026-07-29T09:21:22.305Z",
+ "modifiedAt": "2026-11-19T17:17:53.448Z",
+ "url": "https://openreview.net/forum?id=4dnBXjV4Za&noteId=y764ys28ZC",
+ "license": "CC-BY-4.0"
+}