Testing non-deterministic outputs
For engineers
Tolerances, n-run sampling, seeds and flaky LLM tests in CI
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A support bot gives two differently worded but correct answers to the same question at temperature 0.8. What is the most likely source?
Check yourself · 2 of 5
Which test is the most robust way to check a summary of a news article?
Check yourself · 3 of 5
A team sets temperature to 0 on a hosted API and sends the same prompt 30 times. What is a realistic outcome?
Check yourself · 4 of 5
An LLM test fails about 1 time in 20 on an unchanged build. What is the best first step?
Check yourself · 5 of 5
A test passes for a month and then fails with no code change. The suite calls a model alias that ends in "latest". What should you check first?
Topics
- Why the same prompt gives different answers4 min read · Sampling, model updates and tool state as sources of variation in LLM features
- Testing with tolerances, not exact matches5 min read · Pass rates, thresholds and n-run sampling instead of a single golden output
- Seeds, temperature and what they do not fix5 min read · The limits of deterministic settings across providers and model versions
- Flaky LLM tests in CI5 min read · Quarantine, re-run policies and alerting rules that keep the pipeline trustworthy
Start here
- Defeating Nondeterminism in LLM Inference (Thinking Machines Lab) (opens in a new tab)ArticleFree
Shows why temperature 0 still gives different outputs: batch size changes the order of floating-point math.
- Adding Error Bars to Evals (Miller, 2024) (opens in a new tab)PaperFree
Standard errors and repeated sampling for eval scores, so a score change is read against its noise.
- Evaluation best practices (OpenAI) (opens in a new tab)DocsFree
A vendor's guidance on evaluating variable outputs with graders and enough samples.
Scenarios
Helps to know first
110 questions · last verified 2026-12