Evaluating Large Language Models: From Low-Discrimination Test Sets to Engineering Validation

    When multiple models score near-perfect on simple benchmarks, the test—not the models—may be the problem. This article presents a practical framework for LLM evaluation, covering how to design test sets with real business constraints, evaluate six capability dimensions (reasoning, hallucination, instruction following, coding, writing, and information extraction), automate evaluation without letting models grade themselves, control experimental conditions, interpret statistics and cost metrics, and turn evaluation results into engineering decisions such as task routing and regression testing.

    1. The Starting Point: Reframe “Which Model Is Stronger” as “Which Tasks Deserve the Model”

    When facing a new generation of large language models, developers naturally ask: has reasoning improved? Can code be written correctly on the first attempt? Are answers more reliable? And is the higher cost worth it?

    These are all reasonable questions, but testing with a handful of generic Q&A prompts rarely produces useful conclusions. When a test set consists mostly of basic arithmetic, common logic puzzles, short writing tasks, and trivial function implementations, multiple models will all score highly. This does not prove their capabilities are similar—it more likely shows that the test set never touches their capability boundaries.

    Therefore, evaluation must start by clarifying its purpose, not by preparing a leaderboard.

    For developers, what matters is whether generated code passes tests, whether modifications introduce regressions, and whether requirements are actually implemented. For enterprise users, what matters is whether information is grounded, whether outputs comply with business rules, and whether edge cases are handled safely. For content production, what matters is factual accuracy, clarity of expression, and whether editing costs stay under control.

    An effective evaluation should answer three levels of questions:

    1. Capability: Can the model complete the target task?
    2. Reliability: Can it complete consistently across input variations and repeated runs?
    3. Economics: Once retries, review, and rework are counted, is it worth using?

    These three levels are not interchangeable. A single impressive answer does not imply stability, and a low per-call price does not imply a low total cost of task completion.

    2. Why Easy Questions Create the Illusion of “Similar Capability”

    2.1 Ceiling effects in testing

    When questions are too easy, results cluster near the top of the score range. For example, a coding task that only asks for a simple sum function cannot distinguish basic code generation ability from the ability to maintain complex software.

    Such tests still have value: they verify basic usability. But they cannot support conclusions like “capabilities are comparable on complex tasks.”

    What needs to increase is not the number of questions but the effective difficulty. Effective difficulty comes from real business constraints—incomplete information, boundary inputs, multi-step dependencies, conflicting conditions, and intermediate results that must be verified—not from obscure trivia or deliberately convoluted wording.

    2.2 Aggregate scores can hide critical failures

    If a model excels at writing tasks but frequently fabricates facts in high-risk Q&A, a high total score does not mean it is suitable for knowledge consultation. Likewise, code that passes the basic sample but fails on empty input, duplicate data, or exception paths cannot be considered production-ready.

    Evaluation should report per-dimension performance first, then decide whether to compute a total score. For businesses with safety or compliance requirements, set critical thresholds: if any category of severe error exceeds the acceptable range, the configuration does not enter automated production.

    2.3 Small samples and repeated runs are not the same thing

    A small-scale setup might be: 20 questions, two configurations under test, each question run twice—80 calls in total. This scale is fine for exploring problems and validating the evaluation pipeline, but not enough to draw broad conclusions.

    In particular, distinguish “number of calls” from “number of independent tasks.” Running the same question twice mainly observes output stability; it does not double the business coverage of the test set.

    The reasonable output of exploratory testing is a failure list, directions for adjusting difficulty, and a follow-up validation plan—not a premature capability ranking.

    3. Test Set Design: Making Difficulty, Coverage, and Business Value Hold Simultaneously

    3.1 Stratify by business task, not by even distribution

    A recommended structure divides the test set into three tiers: basic usability, complex constraints, and capability boundaries.

    Basic usability tests check whether common tasks can be completed, such as extracting clearly specified fields, understanding simple requirements, and producing correctly formatted output.

    Complex constraint tests add real-world limitations: must use given materials, must not omit key conditions, output must follow a fixed structure, code changes must not alter existing behavior.

    Capability boundary tests observe whether the model recognizes risk and responds appropriately when information is insufficient, requirements conflict, or facts cannot be verified.

    The ratio among the three tiers should follow the business. High-risk knowledge Q&A needs more evidence-grounded and refusal tests; software development needs more boundary conditions, regression checks, and cross-file dependency tasks.

    3.2 Every question needs a complete specification

    An executable question specification should include at minimum:

    • Input materials and their source scope;
    • The task to be completed;
    • Constraints that must be satisfied;
    • The set of acceptable results;
    • Unacceptable error types;
    • The verification method;
    • The business risk corresponding to this question.

    For example, an information extraction task cannot just say “extract contract information.” It must also specify how missing fields should be represented, whether currency units must be normalized, how to handle multiple values for the same field, and whether inference is allowed.

    If the question itself is not clearly defined, scoring will drift toward reviewers’ ad hoc preferences instead of objective standards.

    3.3 Separate the exploration set from the acceptance set

    The exploration set can be adjusted repeatedly to discover task gaps and refine rules. The acceptance set should be frozen before formal testing to prevent changing scoring criteria after seeing results.

    It also helps to hold back some tasks that were never used during prompt optimization, to check whether optimization transfers. Otherwise, the model may simply be better adapted to a fixed set of questions rather than more reliable on real business.

    4. Six Dimensions, Each Validating a Different Capability

    4.1 Reasoning and math: verify the answer, don’t reward the length of reasoning

    Reasoning questions should include multi-step dependencies, changing conditions, and boundary discussions. Scoring must distinguish a wrong final answer, a wrong derivation, and a correct conclusion that omits a necessary condition.

    Questions that can be verified by computation or constraint checking should use independent verification first. Open-ended proof tasks require checking key steps in the argument.

    A long answer full of terminology does not mean deeper reasoning. What evaluation can directly observe is the output and externally verifiable evidence—not the model’s internal thought process.

    4.2 Hallucination and honesty: test both “can answer” and “should withhold judgment”

    Include at least three types of tasks:

    • Sufficient material, the answer is determinable;
    • Missing material, the model should state that information is insufficient;
    • The question contains a false premise, which must be corrected first.

    A reliable model should not fabricate facts to complete an answer, but it also should not refuse every question. Therefore, track both unsupported statements and excessive refusals.

    For tasks that depend on external references, fix the material version or save retrieval evidence. Otherwise, results obtained at different times may differ because the information environment changed, not because of model capability.

    4.3 Instruction following: decompose into individually checkable constraints

    Convert complex prompts into explicit checklist items, for example:

    • Are all required fields present?
    • Is the output type correct?
    • Does any prohibited content appear?
    • Does the output exceed length limits?
    • Is only authorized material used?
    • Was any disallowed explanatory text added?

    For structured output, check that it can be parsed by a program—not merely that it looks like structured data.

    For conflicting requirements, define the handling principle in advance. For example, when a word limit makes it impossible to cover all details: prioritize key content, or explicitly state that both cannot be satisfied.

    4.4 Coding: move from sample runs to independent testing

    Code evaluation cannot rely on the model’s claim that “tests passed.” Run independent tests in an isolated environment and check, depending on the task:

    • Normal inputs;
    • Empty inputs and boundary values;
    • Duplicate data;
    • Invalid parameters;
    • Exception handling;
    • Performance constraints;
    • Whether existing functionality regresses.

    For modification tasks, tests must also verify that the scope of change is reasonable. A correct feature implementation that breaks an existing interface is still a failure.

    When running model-generated code, restrict network access, file permissions, resource consumption, and execution time. The evaluation environment must treat unknown code as untrusted input, not as safe by default.

    4.5 Writing: judge adequacy first, then compare expression

    Writing tasks suit a two-stage evaluation.

    The first stage checks hard requirements: factual accuracy, topic coverage, length range, prohibited content, and structure. Answers that fail key requirements should not earn high marks on fluency alone.

    The second stage compares logical organization, information density, audience fit, and naturalness of language. Reviewers should ideally not know which configuration produced which answer, and display order should be randomized to reduce identity bias and position bias.

    Models can assist by flagging problems, but should not be the sole judge. A model may prefer longer, more textbook-like text while ignoring factual errors or real-world usability costs.

    4.6 Information extraction: prioritize field-level verifiability

    Information extraction is well suited to automated scoring, but field meanings and normalization rules must be explicit.

    For fixed fields, check field-level accuracy, missing-value handling, and format validity. For entity sets or multi-record outputs, compute precision, recall, and similar metrics.

    Crucially, distinguish “the material does not provide it” from “the model failed to find it.” The former requires correctly representing absence; only the latter is an extraction miss. Allowing the model to fill in missing fields mixes fact generation into extraction and undermines evaluation credibility.

    5. Automated Evaluation: Let Agents Execute, Not Self-Certify

    Automated agents are well suited to orchestrating calls, saving results, running validators, and organizing logs—but this does not mean handing the entire evaluation authority to a model.

    If the same class of model writes the questions, answers them, scores them, and drafts the conclusions, a shared blind spot emerges: questions skew easy, scoring skews lenient, and the final report explains these defects away as “similar capability.”

    A more reliable pipeline is:

    Task definition → Test set review → Batch invocation → Independent verification → Human review → Failure categorization → Statistical analysis.

    Model assistance is acceptable in question design, but questions should be reviewed before entering the acceptance set. Objective items should be verified by programs first; subjective items should use explicit rubrics; and every final conclusion must be traceable to the question, the raw output, and the scoring basis.

    For each call, retain the following:

    • Task ID and version;
    • Complete input and context;
    • Configurable run settings;
    • Raw output;
    • Call timestamp and failure status;
    • Verification results;
    • Actual token usage and cost records;
    • Human review comments.

    These records support reproducibility and help distinguish model errors from evaluation script errors and infrastructure failures.

    6. Control Experimental Conditions: Don’t Mistake Environmental Differences for Capability Differences

    During formal evaluation, keep all conditions identical except the configuration under test.

    Each question should use an independent session so that one question does not influence the next. Input materials, output limits, and available tools should be consistent. If the service exposes randomness settings, record them; if not, state this limitation explicitly.

    For tool-use tasks, separate two evaluation goals:

    • Base capability evaluation: restrict external tools and observe the model’s own performance on the task;
    • System effectiveness evaluation: allow retrieval, computation, or an execution environment and observe whether the full pipeline achieves the business goal.

    Both results can be valuable, but they cannot be mixed. A higher system task completion rate does not necessarily indicate stronger base reasoning—tools may have compensated for missing information or computation.

    Runtime and load can also affect latency. Interleave runs across configurations and record request failures, queuing, and timeouts to avoid bias from one concentrated run.

    7. Statistics and Cost: Don’t Over-Interpret a Single Total Score

    7.1 Prioritize paired results

    How the same question performs across configurations is usually more informative than isolated total scores. Focus on: which questions succeed everywhere, which fail everywhere, and which diverge.

    Questions that succeed everywhere may lack discrimination; questions that fail everywhere may be too hard or may be defective; questions with divergent outcomes need review to confirm the difference is not accidental output or a scoring error.

    If reporting confidence intervals, state the calculation method. With repeated runs, do not treat every call as an independent business sample; aggregate by question or use statistical methods that account for question-level clustering.

    7.2 Small score differences need scoring context

    “1.5 points higher” means nothing on its own. You need to know the maximum score, the sample size, inter-rater consistency for subjective scoring, and whether the difference is concentrated in critical tasks.

    If the gap comes from stylistic nuance while the production pipeline mainly cares about field accuracy, the advantage may bring little business value. Conversely, even a tiny average difference may justify investment if it reduces severe errors in critical tasks.

    7.3 Compute the cost per successful completion

    Comparing only per-request cost underestimates the impact of failures and rework. A metric closer to business reality is:

    Average cost per successful delivery = total processing cost ÷ number of successful deliveries.

    Total processing cost should cover calls, retries, external tools, human review, and rework. Alongside this, track first-pass success rate, tail latency, human takeover ratio, and the occurrence of severe errors.

    Evaluation ultimately answers not “whose average score looks better” but “which pipeline is more stable and more economical while meeting the quality bar.”

    8. Turning Evaluation Results into Engineering Decisions

    Reliable evaluation should lead to concrete actions, not just a ranking.

    For well-defined, easily verified tasks, use a lower-cost configuration combined with automated validation. For tasks with complex constraints and costly failures, add stricter verification, retry strategies, or human review.

    A common workflow: execute the task, then check the output; if the check fails, request a correction or escalate; if requirements still cannot be met, hand off to a human. “Escalation” here can mean a more capable model configuration, more complete reference material, or stronger validation tools—not necessarily a different model.

    Task routing itself also needs evaluation. If large numbers of difficult tasks are misrouted to the basic pipeline, or the validator lets critical errors through, the system as a whole remains unreliable.

    After deployment, retain anonymized typical failure cases, add them periodically to the regression test set, and maintain question versions. Changes in business rules, input distribution, or model updates can all invalidate earlier conclusions.

    Conclusion

    The value of LLM evaluation lies not in proving one model is stronger with a few questions, but in converting uncertain capability into observable, verifiable, and manageable engineering behavior.

    When multiple models score near-perfect on easy questions, the right next step is not to declare the gap small—it is to check whether the test covers the real difficulties. Only by combining task stratification, independent verification, failure analysis, statistical methods, and business cost can evaluation genuinely support technology selection and production decisions.

    What is ultimately worth pursuing is not a prettier total score, but a system that consistently delivers acceptable results in a well-defined scenario—where every failure can be detected, explained, and improved.