PulseAugur
EN
LIVE 17:27:34

LLM Nondeterminism Rooted in Arithmetic Order, Not Randomness

Large language models can produce different outputs even with the same prompt and model settings due to subtle arithmetic differences, not true randomness. These variations arise from the order in which floating-point numbers are added, which is influenced by factors like batch size, hardware, and library versions. While these differences are often negligible in the final bits of a calculation, they can lead to different token selections in LLMs, causing significant divergence in the generated text. AI

IMPACT Highlights that LLM output variability stems from computational arithmetic, not sampling, impacting reproducibility and inference server behavior.

RANK_REASON Explains a technical aspect of LLM behavior (nondeterminism) with a focus on underlying computational principles. [lever_c_demoted from research: ic=1 ai=1.0]

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

LLM Nondeterminism Rooted in Arithmetic Order, Not Randomness

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Vahana ·

    Same model, same prompt, different answer: where LLM nondeterminism really comes from

    <p><em>Every number below comes from a script I ran on my laptop (PyTorch 2.10, CPU, 8 threads). The script is at the end, so you can run it on yours.</em></p> <p>Set temperature to 0. Send the same prompt to the same model twice. You'd expect the same answer twice. Often you don…