potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:40 UTC · 35159ebb63a1 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,24 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "4dnBXjV4Za"
- }
- ],
- "title": "Qrita: High-performance Top-k and Top-p Algorithm for GPUs using Pivot-based Truncation and Selection",
- "authors": [
- "Jongseok Park",
- "Sunga Kim",
- "Alvin Cheung",
- "Ion Stoica"
- ],
- "abstract": "Despite their importance in model sampling, efficient implementation of the Top-k\nand Top-p algorithms poses a significant challenge as model vocabulary grows with\neach new model release. Existing approaches often rely on sorting, which incurs significant computation and memory overhead on GPUs, or on stochastic approaches\nthat alter the algorithm’s output. In this work, we propose Qrita, an efficient Top-k\nand Top-p algorithm based on pivot-based truncation and selection. Qrita leverages\npivot-based search for both Top-k and Top-p with two key techniques: 1. Gaussian-based σ-truncation, which limits the complexity of the algorithm to O(n), and\n2. Quaternary pivot search with duplication handling, which halves the number of\npivot search iterations and guarantees deterministic output. We implement Qrita\nusing Triton and evaluate its performance against the Top-k and Top-p kernels of\nhigh-performance LLM execution engines such as SGLang and FlashInfer, improving end-to-end serving throughput up to 1.4× with half the memory usage, while\nproviding the same output as stable sort-based Top-k and Top-p algorithms.\nQrita is now the default Triton Top-k and Top-p sampler of vLLM, and its implementation is available at https://github.com/vllm-project/vllm/blob/main/vllm/v1/sample/ops/topk_topp_triton.py.",
- "year": 2026,
- "venue": "NeurIPS 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "60fd3b91-48e8-4da4-82a1-363d7314954b"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,14 @@
+{
+ "title": "Qrita: High-performance Top-k and Top-p Algorithm for GPUs using Pivot-based Truncation and Selection",
+ "authors": [
+ "Jongseok Park",
+ "Sunga Kim",
+ "Alvin Cheung",
+ "Ion Stoica"
+ ],
+ "abstract": "Despite their importance in model sampling, efficient implementation of the Top-k\nand Top-p algorithms poses a significant challenge as model vocabulary grows with\neach new model release. Existing approaches often rely on sorting, which incurs significant computation and memory overhead on GPUs, or on stochastic approaches\nthat alter the algorithm’s output. In this work, we propose Qrita, an efficient Top-k\nand Top-p algorithm based on pivot-based truncation and selection. Qrita leverages\npivot-based search for both Top-k and Top-p with two key techniques: 1. Gaussian-based σ-truncation, which limits the complexity of the algorithm to O(n), and\n2. Quaternary pivot search with duplication handling, which halves the number of\npivot search iterations and guarantees deterministic output. We implement Qrita\nusing Triton and evaluate its performance against the Top-k and Top-p kernels of\nhigh-performance LLM execution engines such as SGLang and FlashInfer, improving end-to-end serving throughput up to 1.4× with half the memory usage, while\nproviding the same output as stable sort-based Top-k and Top-p algorithms.\nQrita is now the default Triton Top-k and Top-p sampler of vLLM, and its implementation is available at https://github.com/vllm-project/vllm/blob/main/vllm/v1/sample/ops/topk_topp_triton.py.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}