Every LLM team has "the prompt that feels better" - but feelings aren't evidence. LLM experimentation turns intuition into a controlled comparison: one frozen test set, the same evaluators, one variant at a time. Done right, it tells you whether a new prompt, model, or tool configuration is genuinely better, not just different.

What you're comparing

Comparisons span more than prompts. The most common variants are:

  • Prompts - a rewritten instruction, a different rubric, an added example.
  • Models - a frontier upgrade, a cheaper model, a different provider.
  • Tools & configuration - retrieval strategy, temperature, context window, agent toolset.
  • Test set partitions - how you split examples across train, dev and test, and when you freeze them, changes what you learn.
A test set in the Infere app. Real requests kept as examples, each with its response, partition and pass or fail annotation. Example data.

Design a controlled comparison

A comparison is only meaningful if it controls the variables:

  1. Freeze the test set version. Identical inputs for all variants - no hand-picking "good" examples. A frozen version can't change, so the runs stay comparable.
  2. Run everything with the same evaluators. Change one thing at a time.
  3. Run one scoring run per variant. A scoring run gives every stored response in the frozen version's train and dev examples a verdict per evaluator. It scores responses already stored; it runs no prompt and makes no new responses, so generate each variant's responses first, add them to a test set from Logs, and freeze that version before scoring. Where a model judge is stochastic, raise trials per example; for rules and code, one trial is enough.
  4. Look beyond a single metric. Quality, cost, latency, and failure modes all matter.
# A fair LLM comparison keeps everything fixed but the variant

# 1. One frozen test set version, shared across candidates

# 2. Same evaluators

# 3. One scoring run per variant

# 4. Compare with… and read quality, cost, and latency together

Choosing the right metrics

The metrics decide what the comparison can claim. If you only compare a quality score, a cheaper model can look like a regression even when it's the same on the metrics users care about. Capture a small, meaningful set - a quality or correctness score, alongside latency and cost - and report all three. When you compare two runs, read the mean delta per evaluator, not one blended score. A variant that wins on quality but doubles latency is a trade-off, not a win.

From scoring run to a gated release

A scoring run is the filter; the check is the verdict. Once Compare with… shows a variant ahead on the evaluators you trust, release it through a check. The check runs the prompt version on the test set's held-out test examples, scores the new responses with its evaluators, and compares the result with a bar: a minimum pass rate per evaluator and an allowed drop against what the key last passed with. A required check that fails keeps that key on what it holds.

Freeze the test set, score one variant per run, and let Compare with… show the difference.

Next steps

Freeze a test set version and start one scoring run per variant with the same evaluators. Read the result per evaluator, not as one headline score, and let a check gate the release. Combine LLM experimentation with prompt optimization and AI evals to turn prompt tuning from guesswork into evidence.

Compare variants on the same test set

Score each variant on a frozen test set, then compare the runs.

Create an account → See Evaluators