Evaluation Harnesses and Reproducibility › The Seed Is Not the Guarantee
Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters A seed controls the random draws it is wired to. Other runtime changes can still affect execution. Record the changes you can observe and use a replay check to measure what repeats.
- Sampling nondeterminism at the model. When temperature is greater than zero, the model samples. A seed may be accepted by the API or framework, but seeds are not a portable contract. Providers change sampling implementations, batch sizes, and kernels; the same seed can yield different tokens across model revisions or even across replicas of the same model. For hosted APIs, treat the seed as a best-effort hint, never a guarantee.
- Numeric differences. Floating-point reductions can depend on operation order. Runtime kernels and batch layout can change that order. If two logits are close enough, a numeric change can alter a greedy choice.
- Batch layout. Changes to execution batches can change runtime behavior. Record the serving and batching settings when an evaluation depends on them.
- Grader variation. An LLM judge can sample responses or vary across execution environments. You can repeat judgments on the same stored responses to measure this variation separately. A fixed regex policy is deterministic for a given input.
A replay audit reruns the same tasks and compares their output bytes. State which settings you held fixed. Report that agreement separately from task-level uncertainty; byte-level disagreement and score variation measure different things.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!