Metraipolis › archive › dc_b9b2a8e0de72
CoRun: Padding is Simple and Efficient for Deterministic LLM Inference — arXiv:2608.14376
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.14376
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T02:28:08.269Z
- SHA-256 of the archived text
020c6dc1f02258e9a3194c82a0732a44ba7e5b4f363ae3c60b1d81a5aade8e7e- Stable URL of this page
https://metraipolis.com/documento/dc_b9b2a8e0de72
How to cite
CoRun: Padding is Simple and Efficient for Deterministic LLM Inference — arXiv:2608.14376 — arXiv (en), https://arxiv.org/abs/2608.14376 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b9b2a8e0de72 (Metraipolis archive dc_b9b2a8e0de72, sha256 020c6dc1f02258e9a3194c82a0732a44ba7e5b4f363ae3c60b1d81a5aade8e7e)
BibTeX
@misc{dcb9b2a8e0de72,
title = {CoRun: Padding is Simple and Efficient for Deterministic LLM Inference — arXiv:2608.14376},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.14376},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b9b2a8e0de72; sha256 020c6dc1f02258e9a3194c82a0732a44ba7e5b4f363ae3c60b1d81a5aade8e7e},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.14376. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Despite fixed sampling parameters and random seeds, Large Language Model (LLM) inference exhibits output inconsistency, which undermines downstream tasks such as model evaluation and reinforcement learning. A major source of this nondeterminism is batch-dependent GPU execution: dynamic input shapes change kernel tiling and floating-point reduction orders. Existing systems address this problem with batch-invariant kernels, but these kernels restrict optimized tiling and split reductions, increasing more than 2$\times$ latency and reducing serving throughput by up to 74 %. This paper observes that although most kernels are not batch-invariant, they are position-invariant. Leveraging this property, we present CoRun, a scheduling-based system that achieves deterministic inference without requiring batch invariance. CoRun employs isolated prefill and fixed-shape batched decode to handle the two stages of LLM inference, respectively, leveraging CUDA graphs for efficient execution and simplified implementation. Experiments on LLMs with diverse architectures, including Qwen and DeepSeek, show that CoRun ensures determinism while improving throughput by 15-324 % over batch-invariant approaches, reducing time-to-first-token by 51.8 % and time-per-output-token by 48.6 % on average. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-17 in cs.PF). Categorie arXiv: Operating Systems (cs.OS) ; Performance (cs.PF). Pagina del lavoro: https://arxiv.org/abs/2608.14376 — 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-19T02:21:19.093Z dalla pagina https://arxiv.org/catchup/cs.PF/2026-08-17?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).