Reproducible LoRA Inference Through Deterministic Split-K Reduction
Dhayaneshwar Balusamy, Ankur Mohan
Key points
From the paper's conclusion- We investigate this non-determinism in vLLM across GSM8K mathematical reasoning, MBPP code generation, and Jev-style structured toxicity decisions on Civil Comments and introduce a deterministic Triton Split-K implementation.
Abstract
Reproducibility is important for LoRA-adapted language models used in repeated evaluation, auditing, and decision-making. However, Split-K kernels used to introduce parallelism in low-rank LoRA multiplications can have the unintended consequence of numerical nondeterminism when partial results are combined using floating-point atomic additions. We investigate this non-determinism in vLLM across GSM8K mathematical reasoning, MBPP code generation, and Jev-style structured toxicity decisions on Civil Comments and introduce a deterministic Triton Split-K implementation. Under identical-input replay, Atomic Split-K=8 produces different FP32 shrink outputs in 97.61% of comparisons, while our Deterministic Split-K=8 shows no observed variation. Repeated atomic inference changes generated outputs in 17.30% of GSM8K and 14.96% of MBPP comparisons, sometimes altering task correctness. Structured-decision probabilities vary in 81.47% of atomic comparisons, with decision flips. Controlled tracing demonstrates how shrink-output differences propagate into the KV cache and how accumulated cache differences can change token decisions and final answers. Our deterministic Triton Split-K=8 implementation preserves parallelism, achieving 16.8-21.1% latency-based speedup over unsplit reduction with only 1.02-2.62% additional latency relative to Atomic Split-K=8.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Detent: Batch-Invariant LLM Serving and RL Rollouts at Near-Stock SpeedarXiv · 2026
- BlockLock: Reproducible LLM Inference with Fixed Batch GeometryarXiv · 2026
- Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its ConsequencearXiv · 2026
- God Does Not Play Dice: Enforcing Batch Invariance in Agentic Kernel GenerationarXiv · 2026
- Cross-Stack Validation of Language-Model Training: A Clinical Fine-Tuning Case StudyarXiv · 2026
- Sable: A Small-Field Sumcheck Argument for Bit-Exact Inference of Large Language ModelsarXiv · 2026