Hosting & Domaining Forum + AI

AI => Artificial Intelligence => Claude => Topic started by: sonick on Nov 26, 2026, 10:21 AM

Title: Why temperature = 0 Still Hallucinates Differently Every Run
Post by: sonick on Nov 26, 2026, 10:21 AM
Every infrastructure engineer hosting inference endpoints in late 2026 has fielded the same impossible support ticket: a client sends an identical prompt twice with temperature = 0, receives a clean JSON response at 10:00 AM, and gets a broken refusal at 10:01 AM.

On paper, greedy decoding (t = 0) should make an LLM behave like a deterministic calculator; on real GPU clusters, floating-point arithmetic breaks associativity. Because servers group incoming requests into dynamic batches to keep Tensor Cores saturated, your prompt at 10:00 might share a batch with a heavy multimodal image analysis, while at 10:01 it runs alongside short chat queries.

Changing the batch geometry reorders parallel floating-point additions on the GPU-introducing tiny rounding shifts (~\(6.3 \times 10^{-2}\) in raw logits) that flip coin-toss token probabilities (Yes vs. No) and trigger an irreversible domino effect across subsequent tokens.

Worse still, prefix KV-caching amplifies this hardware drift: reusing cached attention states instead of recomрuting from scratch alters generation trajectories 37.4% of the time in FP16, jumping to a staggering 82.5% under 4-bit quantization.
Meanwhile, Bayesian stability research published in Frontiers (2026) shows that even slight prompt rephrasing causes standard models like Gemini 2.0 Flash to suffer an 11x spike in internal noise (whereas reasoning models like o3-mini act as cognitive stabilizers by burning extra compute tokens before committing to an answer).

For GPU hosting providers and ML platform architects, achieving true reproducibility without killing cluster throughput requires moving past naive t = 0 flags toward speculative verify-rollback pipelines or kernel-level Fused-Upcast GEMM (temporarily promoting 16-bit weights to 32-bit registers during intermediate matrix multiplications on A100, L40S, and H100 cards to achieve 100% bitwise determinism up to 1.43x faster than disabling batching).