How to Evaluate Large Language Models Scientifically: From Subjective Experience to Engineering Benchmarks

    This article explains how to evaluate large language models with measurable criteria instead of subjective impressions. It covers a multi-dimensional evaluation framework, how to build a reproducible evaluation set, an automated testing pipeline, common evaluation pitfalls, and practical guidance on model selection, launch thresholds, and cost tracking.

    1. Why Subjective Experience Is Not Enough for Decisions

    In everyday use, people often judge a model based on a handful of conversations. A single impressive answer leaves a strong impression, and a single failed answer tends to be amplified. These impressions depend heavily on how the question is phrased, the type of task, when the model was used, and personal expectations. That makes them hard to compare across models.

    Subjective impressions still have value. They quickly reveal obvious problems, such as misread requests, messy output formatting, or answers that only meet requirements after repeated revisions. However, using these impressions directly to decide on procurement, integration, or team guidelines can easily lead to distorted conclusions. To turn experience into evidence, the feeling must be broken down into indicators that are observable, recordable, and repeatable.

    2. Breaking Down the Evaluation Dimensions

    A practical evaluation framework usually covers the following dimensions.

    1. Task completion: Whether the output meets the explicitly stated requirements, including functional points, constraints, and format requirements. Scores can be assigned based on the number of conditions met.

    2. First-pass success rate: Whether the output can be used directly in the next step without additional revision instructions. This metric directly reflects the cost of human intervention.

    3. Requirement understanding and completion: When the user’s description is incomplete, whether the model can identify implicit premises, ask key clarifying questions, or proactively make reasonable assumptions and explain the basis for them.

    4. Domain knowledge accuracy: In specialized fields such as finance, law, and healthcare, the risk of factual errors and conceptual confusion is higher. Domain experts should review sampled outputs and record the types and severity of errors.

    5. Structure and narrative quality: For long-form generation, evaluate paragraph organization, internal consistency, and the coherence of the plot or argument. These metrics require human scoring. Automated methods can only serve as a supplement.

    6. Reasoning and verifiable tasks: Mathematical proofs and code unit tests have clear criteria for correctness, which makes them well suited to objective evaluation. For proof-style outputs, check whether each derivation step holds, not only whether the conclusion is correct.

    7. Stability and reproducibility: Measure how much results vary when the same prompt is run multiple times. For models with high variance, a single good result has limited value as a reference.

    8. Resource consumption: Include the input and output length of each task, the number of iteration rounds, and the time spent on manual edits. Factoring these costs into the overall score reflects the real cost of use.

    3. Building a Reproducible Evaluation Set

    The evaluation set is the foundation of the entire process. Build it with the following steps.

    1. Stratify by scenario: Divide business tasks into categories such as programming, document writing, data analysis, and domain Q&A. Prepare at least 20 to 50 samples per category, covering easy, medium, and hard difficulty levels.
    2. Write reference answers or scoring rubrics: For tasks with definite answers, save reference answers. For open-ended tasks, write item-by-item scoring tables that define the criteria for each score.
    3. Fix prompts and parameters: Use exactly the same prompts, system instructions, and generation parameters for each batch of samples across all models, and record version numbers.
    4. Blind review: Reviewers should not know which model produced each output. This reduces preconceived bias.
    5. Update regularly: Business needs change, so add new samples to the evaluation set every quarter and retire questions that no longer distinguish between models.

    Example: Entries in the evaluation set can follow a unified structure, as shown below.

    1. {
    2. "id": "code-017",
    3. "category": "Programming",
    4. "difficulty": "medium",
    5. "prompt": "Implement a thread-safe rate limiter function that counts requests within a time window",
    6. "constraints": ["No dependency on external services", "Time complexity of no more than O(1) per call"],
    7. "checks": ["unit_tests/test_rate_limit.py"],
    8. "reference": "reference/rate_limit.md"
    9. }

    4. Automated Evaluation Pipeline

    For tasks that can be judged automatically, you can build a pipeline like the following.

    1. def evaluate(model, dataset, judge):
    2. results = []
    3. for item in dataset:
    4. output = model.generate(item["prompt"], **fixed_params)
    5. passed = run_checks(output, item["checks"])
    6. score = judge.score(output, item["constraints"])
    7. results.append({
    8. "id": item["id"],
    9. "passed": passed,
    10. "score": score,
    11. "tokens": count_tokens(item["prompt"], output),
    12. "rounds": 1,
    13. })
    14. return aggregate(results)

    Keep the following points in mind:

    • run_checks should prioritize deterministic methods, such as test cases, compilation results, and numerical comparisons.
    • When other models act as judges, sample their verdicts for manual review. Otherwise, the judge’s bias may be mistaken for the model’s capability.
    • The rounds field records the number of interaction rounds needed to reach a usable result. It is key data for measuring the cost of human guidance.

    5. Common Pitfalls

    Treating a single result as capability. A single success may come from luck. Use the success rate or average score across multiple samples instead.

    Confusing the model with the surrounding system. The same model can perform very differently under different toolchains, retrieval setups, or system prompts. Record the full configuration during evaluation so you can separate the model’s own capability from the contribution of the engineering setup.

    Looking only at conclusions, not processes. Mathematical and code outputs especially need their intermediate steps checked. A correct conclusion supported by a flawed derivation still carries risk in practical use.

    Ignoring prompt sensitivity. A model whose results change significantly after small changes in wording is more costly to maintain in production. For each question, design two or three equivalent phrasings and check whether the results stay stable.

    Using samples that are too small. Conclusions drawn from a dozen samples are statistically unreliable. For critical decisions, expand the sample size and report confidence intervals, or at least report the number of samples.

    6. Practical Recommendations

    1. Select models by scenario instead of pursuing a single best model. Coding assistance, copywriting, and specialized Q&A require different capabilities, so evaluate them separately.
    2. Set launch thresholds. For example, a task category should reach a preset first-pass success rate, and the manual review error rate should stay below an agreed ceiling, before the model enters production.
    3. Build regression tests. After every model version update or configuration change, rerun the evaluation set to catch capability regressions in specific scenarios.
    4. Keep human review. Outputs in high-risk fields such as finance, law, and healthcare must be reviewed by qualified personnel.
    5. Track costs. Include token consumption, response time, and manual editing time in monthly reports to judge whether the investment is worthwhile.

    7. Summary

    Evaluating large models comes down to turning experience into measurable indicators. Stratify tasks clearly, fix the evaluation conditions, distinguish one-time success from stable capability, and count the cost of human guidance in the total cost. This approach produces more reliable judgments than subjective impressions. The same method applies to selecting and continuously monitoring other models or tools.