Evaluating Large Language Models: From Simple Answers to Reliable Verification

    This article explains how to build a rigorous evaluation system for large language models. It covers why passing test sets is not enough to judge capability, how to define evaluation targets and acceptance criteria, how to design tiered question sets with discrimination, how to build executable scoring rules for reasoning, hallucination, instruction following, code, and writing quality, and how to avoid circular automated validation, run repeatable experiments with proper statistical interpretation, translate score differences into business value, and establish an evaluation loop from trial to production. Readers will learn how to move beyond a single leaderboard score to capability profiles, reproducible evidence, failure taxonomies, and deployment recommendations.

    1. When All Models Answer Correctly, You Still Can’t Judge Capability

    A common situation in LLM evaluation is a test pipeline that looks complete: it covers math, code, writing, and instruction following, yet nearly every model configuration passes. Evaluators are then left comparing response length, wording refinement, or depth of explanation.

    But “longer answers” do not mean “stronger capability,” and “more complete explanations” do not necessarily mean “more reliable results.” If the questions themselves lack discrimination, even the most refined scoring cannot compensate for flaws introduced at the design stage.

    Such experiments typically suffer from three problems:

    First, questions lean toward basic knowledge or standard solutions, avoiding the key difficulties of the task. Models can score highly simply by reproducing familiar patterns.

    Second, scoring rules are too lenient. For example, code is checked with a single normal input, writing is judged only on whether it reads smoothly, and math checks only the final number. Such rules mask boundary-condition errors, omitted constraints, and factual problems.

    Third, test conditions are disconnected from real-world usage. Real business scenarios often require models to complete tasks under incomplete information, complex constraints, and limited resources—not to answer an isolated question under ideal conditions.

    The goal of reliable evaluation should therefore not be to attach a vague “strong” or “weak” label to a model, but to answer a more specific question:

    Under what tasks, constraints, and cost conditions can a model reliably achieve what level of quality?

    2. Define the Evaluation Target Before Designing Questions

    1. Distinguish Base Model Capability from Full System Capability

    The same model can perform very differently under different prompts, context lengths, tool permissions, and retrieval conditions. If these factors are mixed together, it becomes impossible to tell where a difference in results actually comes from.

    Base capability evaluation typically examines reasoning, generation, and instruction understanding under uniform input conditions. System capability evaluation additionally covers retrieval, tool calls, task orchestration, error recovery, and human review.

    Both are worth testing, but they must be reported separately. For example, a model’s direct answer success rate and its task completion rate after retrieval and multiple correction rounds should not be placed in the same column for direct comparison.

    2. Translate Business Goals into Acceptance Criteria

    “Good at code” is a vague goal. “Generated functions pass all functional tests and never silently return incorrect results on invalid input” is an executable acceptance criterion.

    Similarly, “natural Chinese writing” needs to be broken down into audience fit, structural clarity, factual accuracy, constraint satisfaction, and concise expression. For enterprise applications, it should also be made explicit which errors count as unacceptable failures, such as fabricating sources, leaking sensitive information, or generating non-executable operation steps.

    Only after defining success criteria can subsequent questions, scoring, and cost analysis share a common foundation.

    3. Build a Tiered Question Set with Discrimination

    1. Basic Questions to Detect Obvious Weaknesses

    Basic questions should cover common tasks: simple calculations, short text extraction, strictly formatted output, and small-scale code generation. Their role is to verify that the model meets minimum requirements—not to serve as the primary capability ranking mechanism.

    If basic questions are broadly passed, interpret this as “the minimum bar has been met,” not as “all models have identical capability.”

    2. Intermediate Questions to Simulate Everyday Work

    This layer should incorporate the complexity found in real tasks, for example:

    • Math problems involving multi-step calculations, unit conversion, and implicit conditions;
    • Information extraction dealing with duplicate records, missing fields, and contradictory descriptions;
    • Writing tasks that simultaneously constrain audience, length, tone, and facts that must be covered;
    • Code tasks that account for exceptional inputs, duplicate data, and performance constraints.

    Intermediate questions often best reflect everyday usage because they are neither deliberately tricky nor mere knowledge recitation.

    3. Hard Questions to Locate Capability Boundaries

    High difficulty should not come from deliberately vague wording, but from explainable task complexity.

    For example: asking the model to determine whether a problem has a unique solution and identify which conditions are missing; asking it to draw limited conclusions from multiple conflicting materials; or asking it to fix a bug that only triggers on specific boundary inputs.

    Such tasks require verification, counterexample search, and expressing uncertainty, making it easier to expose answers that “sound plausible but were never actually checked.”

    4. Keep an Independent Validation Set

    The development question set can be used to iterate on prompts and debug scorers, but final validation questions should not continuously participate in optimization. Otherwise, evaluation easily degrades into fitting to known questions.

    If the system must be adjusted repeatedly, keep questions that were never used in debugging and record which samples have already been used for improvement. This is especially important for applications where prompts or examples can be reused.

    4. Build Executable Scoring Rules by Capability Dimension

    1. Reasoning and Math: Check Answers and Applicability Conditions

    For math questions, don’t verify only the final number. An answer can happen to get the correct result while omitting constraints; or the method can be right while the calculation is wrong.

    Record separately:

    • Whether the final result is correct;
    • Whether the ranges specified by the problem are respected;
    • Whether all valid solutions are covered;
    • Whether no-solution, multiple-solution, or insufficient-condition cases are recognized;
    • Whether sufficient grounds are provided to verify the conclusion.

    There is no need to require lengthy internal reasoning; instead, require reviewable key steps, formulas, or check results.

    2. Hallucination and Honesty: Distinguish Refusal from Reliable Answers

    “I don’t know” is not always a high-quality answer. If the provided material contains sufficient evidence and the model still refuses, it has failed to use the context.

    Hallucination tests can cover three scenarios:

    • The fact being asked about does not exist in the material;
    • The question contains a false premise;
    • The material supports only a partial conclusion.

    When scoring, separately assess: whether facts were fabricated, whether false premises were recognized, whether evidence boundaries were stated clearly, and whether tasks with sufficient evidence were completed normally.

    One important metric is the correct-answer rate on answerable questions; another is the appropriate-refusal rate on unanswerable ones. Looking only at the refusal ratio rewards excessive conservatism.

    3. Instruction Following: Separate Hard Constraints from Soft Requirements

    Hard constraints include field sets, output order, length ranges, and prohibited content, and should be verified programmatically wherever possible. Soft requirements include natural tone, understandable explanations, and organized expression, and require human or assisted scoring.

    If the output will be consumed directly by a downstream program, format violations should generally be treated as task failure rather than a small deduction. If it supports assisted writing, the content score can be retained with formatting issues flagged separately.

    When a question contains conflicting requirements, define the expected behavior in advance—for example, point out the conflict and request clarification, rather than arbitrarily picking one instruction.

    4. Code: Running Correctly Is Only the First Layer

    Code evaluation must cover at least normal inputs, boundary inputs, and exceptional inputs. For tasks with explicit requirements, verify time complexity, resource consumption, and interface contracts as well.

    The execution environment must be isolated, with network access, file permissions, runtime, and resource usage restricted. Code being model-generated is not a reason to trust it by default.

    The credibility of automated tests also depends on the test cases themselves. Test expectations should be independently reviewed, so that the scoring script and the reference implementation do not share the same bug.

    5. Chinese Writing: Don’t Mistake Style Preferences for Capability Conclusions

    Writing evaluation should center on the task purpose. A summary for managers should emphasize decision-relevant information; a guide for developers should emphasize steps, prerequisites, and verification methods.

    Use itemized scoring:

    Dimension What Is Checked
    Factual accuracy Faithfulness to the material; whether unsupported facts are added
    Task coverage Whether all requirements are addressed
    Structure and logic Whether arguments, evidence, and conclusions connect
    Audience fit Whether terminology, explanation depth, and tone are appropriate
    Expressive efficiency Whether the text is repetitive, vague, or over-elaborated

    During blind review, hide model identities, randomize answer order, and allow a “same quality” option to avoid manufacturing artificial differences.

    5. Automated Evaluation and Avoiding Circular Validation

    Automated agents can help generate candidate questions, orchestrate calls, save outputs, and aggregate scores. However, they should not simultaneously dominate question generation, answering, verification, and conclusion explanation.

    If questions are generated by a model, reference answers are generated by a model, and a model then judges whether the answers are correct, multiple stages may share the same error. What looks like multiple rounds of checking provides no independent evidence.

    A safer workflow:

    1. Humans define capability dimensions and acceptance rules;
    2. Automated tools generate candidate questions;
    3. Question intent, reference answers, and boundary conditions are independently reviewed;
    4. Executable verification is used for objective tasks;
    5. Blind review is used for subjective tasks, with sampling review for disagreements;
    6. Raw results are saved before conclusions are drawn.

    The judgments of an assistant scoring model should be treated as reference opinions, not as an inherently correct arbiter. For high-risk tasks, establish human review and an appeals mechanism.

    6. Repeated Trials, Logging, and Statistical Interpretation

    Suppose an experiment contains 20 questions, two configurations, and two repetitions per question—80 total calls. That scale is suitable for a process dry run, but not for broad conclusions.

    The reason: two answers to the same question are not equivalent to two independent questions. They share the question’s meaning, difficulty, and scoring rules. Repeating experiments can help observe output variability, but it cannot replace task coverage breadth.

    At minimum, log the following:

    • Question ID, category, and version;
    • Complete input and context;
    • Controllable generation configuration;
    • Tool permissions and runtime environment;
    • Raw output, scoring rationale, and failure type;
    • Request latency, resource consumption, and retry counts;
    • Experiment date and service version information, if obtainable.

    When analyzing results, prefer paired comparisons on the same question, observing how configurations differ on identical samples. When computing uncertainty, account for the correlation between repeated results within a question—do not treat all calls as fully independent samples.

    If the sample is small, the most honest conclusion is often: “No difference was observed on the current question set; broader coverage is needed.” Failure to detect a difference does not mean no difference exists.

    7. Turning Score Differences into Business Value

    A configuration that scores slightly higher overall is not necessarily better suited for production deployment. First confirm the difference is stable, then determine which dimension the gains come from.

    For tasks requiring strictly structured output, an improved format success rate may directly reduce retries. For fact-sensitive tasks, reducing fabrication probability may matter more than improving writing style. For interactive scenarios, response latency may determine whether users keep using the product.

    Track the following alongside scores:

    • Proportion of tasks meeting the standard;
    • Unit cost per task that meets the standard;
    • Median and high-percentile response latency;
    • Retry and manual correction rates;
    • Occurrence of critical errors.

    The per-qualified-task unit cost can be expressed conceptually as:

    Unit cost = total processing cost of the batch ÷ number of tasks that finally meet the acceptance standard.

    Total processing cost should include not only compute resources but also, per actual business accounting, retries, tool execution, and human review. If no task meets the standard, this formula cannot produce a meaningful finite value—mark it directly as failing deployment requirements.

    For critical errors, set separate admission thresholds rather than allowing them to be offset by high scores in other dimensions.

    8. Build an Evaluation Loop from Trial to Production

    A sustainable evaluation system can be implemented with the following steps:

    Step 1: Build a small pilot set. Verify that calling, logging, scoring, and isolated execution processes work.

    Step 2: Analyze failure types. Distinguish knowledge gaps, constraint omissions, calculation errors, format failures, factual fabrication, and tool-usage errors.

    Step 3: Add targeted questions. Increase coverage of real weaknesses instead of piling up easy samples.

    Step 4: Use an independent validation set. Check whether improvements transfer to tasks that were never used for debugging.

    Step 5: Run a controlled pilot. In a low-risk scenario, observe manual corrections, latency, and actual cost.

    Step 6: Continuously regress. When prompts, knowledge materials, tool permissions, or service versions change, re-run the core tests.

    Ultimately, LLM evaluation should not stop at a single scoreboard. The more valuable outputs are a clear capability profile, reproducible evidence, an interpretable failure taxonomy, and deployment recommendations tied to business acceptance criteria.

    The truly reliable conclusion is not “Model X is stronger across the board,” but a precise statement of the conditions under which it is worth using, the tasks for which it needs additional verification, and the situations where humans must take over.