Evaluating Next-Generation LLMs: From One-Off Experience to Reproducible Assessment

    Evaluating large language models based on a few prompts is unreliable due to biases and randomness. This article explores how to establish a reproducible LLM evaluation framework. It covers defining clear evaluation goals, constructing a tiered task set, decomposing scoring into independent dimensions, and implementing blind testing to mitigate biases. By following these steps, developers can make data-driven decisions when selecting models for specific business scenarios.

    1. Why One-Off Experiences Are Unreliable

    After a new model is released, the most common discussion is whether it is “good to use.” Such judgments usually come from comparing one or two prompts, and the conclusions are easily affected by three factors: the prompt itself leaning toward a specific capability, the evaluator’s aesthetic preferences, and random fluctuations between multiple calls to the same prompt. A good generation result in one instance does not prove that the model is stably superior in similar tasks. To reach a reliable conclusion, the evaluation must be broken down into repeatable steps.

    2. Define Evaluation Goals First

    Before evaluating, answer three questions: What business problem needs to be solved? Who will see the results? What metrics will the decision rely on? Internal coding assistants focus on test pass rates and modification costs; content generation scenarios focus on factual accuracy, style consistency, and rework rounds. Different goals require different task sets and scoring weights. Without clear goals, simply averaging all dimensions yields a score that cannot guide model selection.

    3. Build a Tiered Task Set

    The task set should cover the core capabilities of the target scenario and be tiered by difficulty:

    • Basic tasks: Format conversion, simple code completion, factual Q&A, used to confirm that the model can understand instructions normally.
    • Medium tasks: Multi-step reasoning, constrained copywriting generation, local modifications to existing code.
    • Hard tasks: Cross-file engineering refactoring, information extraction and summarization from long documents, requirement analysis requiring multiple rounds of clarification.

    It is recommended to have at least 30 prompts for each task type, and the sources of the prompts should be diverse. Prompts should ideally come from desensitized real business records, rather than being entirely written by the evaluators; otherwise, the prompt style will easily overlap with the evaluators’ personal habits. Each prompt needs to record the standard answer or an automatically verifiable judging rule. For open-ended questions without standard answers, the characteristics of a qualified output should be clearly written in advance, such as mandatory key points and types of errors that are not allowed.

    4. Decompose Scoring into Independent Dimensions

    Break down “good or not” into several independently scoreable dimensions, and provide anchored descriptions for scores 1 to 5 for each dimension, meaning what performance corresponds to each score. Common dimensions include:

    • Correctness: Are the conclusions, code, or data accurate? Can they pass tests?
    • Completeness: Does it cover all items required by the prompt?
    • Logical structure: Are the argumentation steps coherent? Do the premises match the conclusions?
    • Expression quality: Is the language clear? Does the format meet the requirements?

    Whether the aesthetics meet personal preferences is another type of subjective judgment and should be recorded separately, not mixed with correctness. If aesthetics and logic are merged into one score, evaluators may easily change scores in other dimensions due to the impression of one dimension; this phenomenon is known as the halo effect.

    Weights must be determined before testing begins, for example, correctness 0.4, completeness 0.2, logical structure 0.2, expression quality 0.2. Once weights are changed, all results should be recalculated, rather than reverse-adjusting weights based on results.

    1. RUBRIC_WEIGHTS = {
    2. "correctness": 0.4,
    3. "completeness": 0.2,
    4. "logic": 0.2,
    5. "expression": 0.2,
    6. }
    7. def weighted_score(scores: dict[str, float],
    8. weights: dict[str, float] = RUBRIC_WEIGHTS) -> float:
    9. """Aggregate 1-5 scores across dimensions into a weighted total."""
    10. missing = set(weights) - set(scores)
    11. if missing:
    12. raise ValueError(f"Missing scoring dimensions: {sorted(missing)}")
    13. total_weight = sum(weights.values())
    14. return sum(scores[k] * w for k, w in weights.items()) / total_weight
    15. print(round(weighted_score({"correctness": 4, "completeness": 3,
    16. "logic": 5, "expression": 4}), 2))
    17. # Output 4.0

    5. Blind Testing and Comparative Design

    When comparing two outputs side by side, there are three common biases: output order bias (evaluators tend to favor the first result they see), brand expectation bias (preconceived judgments about known names), and length bias (longer texts are often perceived as more professional). Countermeasures include:

    1. Anonymization: Label outputs uniformly with neutral codes, without revealing their sources to the evaluators.
    2. Randomization: Randomly determine the left-right order for each prompt and save the mapping. Restore the results after scoring.
    3. Remove self-identification: Delete model self-introductions or formatting markers present in the output.
    4. Swap and retest: Swap the order of the same pair of outputs and re-evaluate them. Samples with inconsistent results should be reviewed separately.
    5. Multiple independent reviews: At least two evaluators score independently to calculate the consistency coefficient. Questions with low consistency require discussion to unify the judging criteria.

    The following code demonstrates how to generate randomized blind testing materials and restore the results after scoring:

    1. import random
    2. def build_blind_pairs(results_x: dict[str, str],
    3. results_y: dict[str, str],
    4. seed: int = 2026) -> list[dict]:
    5. """Randomly assign display order for each prompt, returning blind test entries and restoration mapping."""
    6. rng = random.Random(seed)
    7. pairs = []
    8. for case_id in results_x:
    9. flipped = rng.random() < 0.5
    10. if flipped:
    11. shown = {"P": results_y[case_id], "Q": results_x[case_id]}
    12. mapping = {"P": "y", "Q": "x"}
    13. else:
    14. shown = {"P": results_x[case_id], "Q": results_y[case_id]}
    15. mapping = {"P": "x", "Q": "y"}
    16. pairs.append({"case_id": case_id, "shown": shown, "mapping": mapping})
    17. return pairs
    18. def unblind(judgement: str, mapping: dict[str, str]) -> str:
    19. """judgement takes values 'P', 'Q', or 'tie'; returns original model identifier 'x', 'y', or 'tie'."""
    20. if judgement == "tie":
    21. return "tie"
    22. return mapping[judgement]