Skip to content
ML Academy

LLMs, GenAI, RAG, agents, evaluation · insight-0525

Evaluate prompts across several formatting variants before comparing models

Evidence type
empirical finding
Difficulty
medium
Roles
Applied AI, Data scientist
Industries
cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    Two candidate models are compared with one prompt template that was tuned on model A.

  2. Action

    Write a few meaning-preserving variants of the prompt format, run every model on all of them, and compare score ranges or each model's best variant rather than one template.

  3. Reason

    Research showed meaning-preserving formatting changes can move accuracy by large margins for some models, and recommended reporting a range across formats.

  4. Boundary

    Model selection, vendor comparisons, benchmark reports.

Symptom or risk

Model B loses because of incidental choices such as separators, casing or field labels, and the selection decision is wrong.

Exceptions

Once a model is chosen, freeze one format and version it.

Trade-offs

More evaluation runs per comparison.

Pitfalls

Tuning formats on the same test items used for the final comparison.

Lessons and concepts

Claims and their sources