LLM Evaluation: Lessons Learned and a Reusable Testing Guide
Reliable LLM evaluation requires more than identical prompts and a total score. This guide examines common pitfalls in task difficulty, model-based judging, hallucination testing, instruction compliance, and repeated sampling, then outlines a reusable workflow for producing more meaningful model comparisons.
LLM Evaluation: Lessons Learned and a Reusable Testing Guide
1. What a Failed Evaluation Taught Me
Recently, I set out to compare two large language models with different priorities: an expensive frontier-oriented model and a more affordable model designed for everyday tasks. My evaluation plan looked reasonably complete:
- Use the same environment and prompts.
- Run 20 tasks across two models, with two repetitions per task: 80 calls in total.
- Cover mathematical reasoning, Chinese-language writing, hallucination and honesty, instruction following, coding, and information extraction.
- Validate objective tasks—math, logic, and code—with scripts.
- Ask another model to compare responses to subjective tasks such as writing.
- Use a model to generate the test questions.
The process seemed sound, but the results were underwhelming. Both models answered almost every question correctly. The final conclusion was essentially: “They are nearly tied; the differences are in the details.”
Looking back, the problem was not the overall framework. It was three neglected components: question quality, judge reliability, and the ability of the test to distinguish between models. Further review also exposed weaknesses in hallucination testing, instruction constraints, and repeated sampling.
This guide breaks down those pitfalls and turns the lessons into a reusable evaluation workflow.
2. Pitfall: Tasks That Cannot Distinguish Between Models
What happened
After 80 calls, both models had passed every math and coding task. That might suggest that both were highly capable, but the questions told a different story.
Most were introductory exercises: two-digit arithmetic, simple string manipulation, and basic logical reasoning. These tasks did not meaningfully challenge contemporary LLMs.
Why it happened
When asked to generate test questions, models tend to produce conventional, safe tasks with clear answers. Those tasks are often easy. Without explicit difficulty requirements, a question-generating model may produce a test on which every candidate earns full marks.
The fix: Difficulty tiers and a deliberate gradient
Build the difficulty distribution into the question-generation process.
- Create a tiered question bank. Use five levels, from L1 for basic tasks to L5 for frontier-level challenges. Each evaluation dimension should cover at least three levels. L1 checks the minimum expected capability; L4 and L5 probe the upper limits and help separate models.
- Assign difficulty anchors. Attach an expected pass rate to each question and have a human review a sample. Questions with an expected pass rate above 80% should account for no more than one-third of the test.
- Use adversarial question generation. Explicitly ask the question-generating model to “design at least X questions that you cannot answer reliably yourself.” This attempts to use the model’s self-assessment to raise the difficulty floor.
A practical warning sign is 100% accuracy for every evaluated model within a dimension. That dimension provides no evidence for distinguishing the models. Remove it from the comparative analysis or add harder questions and rerun it.
3. Pitfall: An Unreliable Model Judge
What happened
I used another model to judge the writing responses. Its commentary sounded polished: “The real difference lies in the depth of thought and attention to detail.”
Yet, against a backdrop of near-perfect scores, this observation conveyed little useful information. The judge appeared inclined to deliver a respectable-sounding conclusion even when the data did not support one.
Why it happened
Several tendencies can undermine model-based judging:
- Overly agreeable scoring: The judge gives both candidates generous treatment, compressing the score distribution.
- Conclusion-first reasoning: It constructs an insightful-sounding summary, then works backward to justify it.
- No explicit rubric: Without detailed scoring criteria, it relies on an overall impression.
The fix: Structured rubrics and cross-checked blind judging
- Define the rubric before scoring. Break writing quality into independently scored components, such as clarity of the main argument (0–2), completeness of the reasoning chain (0–3), fluency (0–2), and format compliance (0–2). Describe what earns zero and full marks for each component to limit the judge’s discretion.
- Blind the evaluation. Remove model identifiers and randomize response order to reduce identity and position bias.
- Cross-check the judgment. First, ask the judge to score A and B separately against every criterion, citing evidence from each response. Then ask: “If you had to select one winner, which would you choose, and which sentence supports that decision?” If the two judgments conflict, flag the sample as low confidence and send it for human review.
- Control judging costs. The judge does not have to be the most expensive model, but the rubric must be strict. With a limited budget, prioritize scripted validation for objective tasks and fine-grained rubrics for subjective tasks rather than a premium judge model.
4. Pitfall: Hallucination and Honesty Are Hard to Quantify
Hallucination is particularly easy to evaluate poorly. If a test merely asks whether a model knows about an event, the model may generate a plausible account whose accuracy is difficult to check automatically.
A more useful design includes three types of checks:
- Verifiable factual traps. Ask about something that does not exist, such as an invented paper, API, or historical event. The desired behavior is to acknowledge that it does not know; fabricating details is a failure. These tasks can be structured for scripted scoring.
- Mixed true and false premises. Insert a false premise into an otherwise real context—for example, a nonexistent parameter in a coding question—and check whether the model identifies it.
- Separate uncertainty from error. Score an honest admission of not knowing as a pass, confident fabrication as a severe failure, and vague evasion as a separate category. These outcomes should receive clearly different weights.
The goal is not simply to count incorrect answers. It is to distinguish honest uncertainty from unsupported confidence.
5. Pitfall: Instruction Following Needs Machine-Checkable Constraints
Many instruction-following tests use weak requirements such as “answer in Chinese.” A stronger test combines several constraints that can be verified automatically.
For example, a Chinese-language response could be required to satisfy all of the following:
Your response must meet all of these requirements:1. Its total length must be between 180 and 220 characters.2. It must contain exactly three level-two headings.3. It must not contain any English words.4. Its final paragraph must begin with the Chinese expressionmeaning "in summary" (Unicode: \u7efc\u4e0a).
Each requirement can be checked with an assertion rather than a subjective judgment:
def validate(text: str) -> dict:return {"character_range": 180 <= len(text) <= 220,"heading_count": text.count("## ") == 3,"no_english": not re.search(r"[a-zA-Z]", text),"ending_format": text.strip().splitlines()[-1].startswith("\u7efc\u4e0a"),}
This kind of constraint-density test can reveal differences that open-ended questions miss. It tests whether a model can maintain several requirements simultaneously.
6. Pitfall: Too Few Repetitions and Weak Statistical Evidence
Two repetitions are not enough. LLM outputs are stochastic: a model might answer a question correctly twice even if its underlying pass rate is only 70%.
A more robust approach is to:
- Repeat each question at least five times and measure its pass rate rather than treating it as a single binary outcome.
- Use a test of differences in proportions when comparing models, rather than interpreting sampling noise as a capability gap.
- Report confidence intervals instead of only a total score.
If the budget is limited, reduce the number of questions while preserving the difficulty gradient, rather than cutting repetitions too aggressively. Statistical robustness matters more than broad but shallow coverage.
7. A Reusable Evaluation Workflow
The lessons above lead to the following process.
Step 1: Build the question bank
Have humans design the task structure, use models to expand the question set, and review the difficulty tiers manually. Include several L1, L3, and L5 questions in each evaluation dimension.
Step 2: Build the automated validation layer
Score objective tasks and instruction constraints with scripts. Use explicit rubrics for subjective tasks.
Step 3: Run the evaluation
Keep the environment and prompts consistent. Repeat each question five times and retain raw outputs so that results can be traced back to individual responses.
Step 4: Review subjective responses
Use blind judging and cross-check the judge’s decisions. Route low-confidence samples to human reviewers.
Step 5: Analyze results by dimension and difficulty
Produce heatmaps organized by evaluation dimension and difficulty level. Focus on where models diverge at higher difficulty levels. Report variance and confidence intervals alongside means.
Step 6: Attribute failures
Classify failures into categories such as:
- Missing knowledge
- Broken reasoning
- Ignored instructions
- Format violations
Understanding why a model fails is often more useful than knowing its aggregate score.
8. Conclusion
The most important lesson from this evaluation was not which model was stronger. It was that the quality of an evaluation’s conclusions is limited by its weakest design component.
If the questions cannot distinguish between models, even ten thousand calls will not solve the problem. Without a rubric, polished judging commentary may say very little. With too few repetitions, apparent differences may be nothing more than noise.
For teams selecting an LLM, three areas deserve budget priority: task difficulty design, automated validation scripts, and sufficient repeated sampling.
Only when the evaluation framework itself stands up to scrutiny can the meaningful differences between models become visible.
