PulseAugur
中
实时 17:17:19
English(EN) Same model, same prompt, different answer: where LLM nondeterminism really comes from

LLM 不确定性源于算术顺序,而非随机性

大型语言模型即使在相同的提示和模型设置下也能产生不同的输出,这是由于细微的算术差异,而非真正的随机性。这些差异源于浮点数加法的顺序,而该顺序又受批处理大小、硬件和库版本等因素的影响。虽然这些差异在计算的最后几位通常可以忽略不计,但它们可能导致 LLM 中不同的标记选择,从而引起生成文本的显著分歧。 AI

影响 强调 LLM 输出的可变性源于计算算术而非采样,影响了可复现性和推理服务器的行为。

排序理由 解释了 LLM 行为的一个技术方面(不确定性),重点关注底层的计算原理。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

LLM 不确定性源于算术顺序,而非随机性

报道来源 [1]

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

    同一模型,同一提示,不同答案:LLM 不确定性究竟从何而来

    <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…