How to Run Deep LLM Evaluations: A Practical Methodology Guide

    This article presents a practical methodology for deep evaluation of large language models (LLMs) instead of relying on public leaderboard scores. It explains how to break business goals down into measurable model capabilities, how to design controlled comparisons with baselines, and how to build a layered metric system covering correctness, stability, efficiency, and user experience. You will also find guidance on constructing contamination-resistant task sets, automating the evaluation pipeline with explicit release gates, avoiding four common misreadings of results, balancing cost and latency through routing, and running continuous regression after launch.

    1. Why Deep Evaluation Matters More Than Leaderboards

    One of the most common mistakes in real engineering work is treating public leaderboard scores as a selection decision. Leaderboards usually cover general knowledge and a small set of reasoning questions, while business scenarios involve long-tail capabilities such as long-document understanding, structured output, multi-turn tool calling, code modification, dialects, and industry-specific terminology. A model that leads by a few percentage points on a general leaderboard may deliver a worse overall experience in a specific business if it produces unstable formatting, deviates from instructions, or degrades over long contexts.

    The core of deep evaluation is therefore not ranking. It is translating business requirements into engineering metrics that are measurable, reproducible, and regression-friendly. A good evaluation report answers three questions: which tasks the current candidate models can handle, under what conditions they fail, and how to keep monitoring quality drift after launch.

    2. Breaking Down Evaluation Goals: From Business Metrics to Model Metrics

    A top-down decomposition path works best: business goal → user-perceived quality → model capability dimension → measurable metric.

    Model capabilities commonly fall into six dimensions:

    • Instruction following and format constraints: whether the model reliably outputs the agreed structure, and how often fields are missing.
    • Reasoning and computational correctness: multi-step reasoning, numeric calculation, and logical consistency.
    • Long-context handling: recall of key information, cross-paragraph coreference, and position bias.
    • Code and tool use: the share of runnable code, parameter extraction accuracy, and multi-turn error correction.
    • Multilingual and terminology robustness: coverage of industry vocabularies and stability under mixed-language input.
    • Safety and compliance: refusal boundaries, handling of sensitive content, and resistance to prompt injection.

    Each dimension should be bound to a business-side metric. For example, the field completeness rate of structured extraction maps to the manual review cost of a downstream automation workflow, and time to first token maps to what end users actually feel.

    3. Comparison Baselines and Experiment Design

    A sound set of baselines includes three types: the previous generation’s main model (to judge whether the upgrade benefit is real), models of the same tier built on different technical routes (to judge capability complementarity and negotiation room), and small-parameter or lightweight options (to judge the cost floor). To keep the description neutral, this article uses “candidate model A/B/C”, “previous-generation baseline”, and “lightweight option” without pointing to any specific product.

    Experiment design must control variables. Fix the following:

    1. Prompt templates and system instruction versions;
    2. Decoding parameters (temperature, maximum output length, stop conditions);
    3. Input length buckets (for example, 2K/8K/32K/128K context);
    4. Hardware and concurrency conditions, or uniformly use the same container platform and inference service on one cloud;
    5. Evaluation time and model version snapshots, to avoid silent vendor-side updates that make results irreproducible.

    A sample experiment configuration can be written as a structured file for version management and regression:

    1. experiment:
    2. name: doc-qa-eval-2026-01
    3. models: [candidate_A, candidate_B, candidate_C, baseline_prev, light_model]
    4. decoding:
    5. temperature: 0.0
    6. max_output_tokens: 1024
    7. context_buckets: [2048, 8192, 32768, 131072]
    8. dataset: datasets/docqa_v3.jsonl
    9. judge: rule_based + llm_judge
    10. repeats: 3

    4. Metric System: Turning “Good” into Computable Definitions

    Split metrics into four layers instead of looking at a single overall score:

    • Correctness layer: exact match, field-level F1, code unit test pass rate, and tolerance ranges for numeric error.
    • Stability layer: output consistency across repeated samples of the same input, format validity rate, and the share of timeouts and truncations.
    • Efficiency layer: time to first token, output tokens per second, cost per task, and the extra overhead caused by failed retries.
    • Experience layer: human preference win rate and edit distance (how much a user must modify an output to make it usable).

    Edit distance often predicts real satisfaction better than accuracy in writing and coding scenarios: an output that is 85% correct but needs heavy rewriting costs more in practice than one that is 70% correct but clearly structured.

    For parts that require subjective judgment, use a two-tier strategy with rule-based checks first and model review as a fallback, and rotate the position of candidates in the review prompt to cancel out order preference:

    1. def judge(question, ref, a, b):
    2. # Rotate positions to reduce order bias
    3. if hash(question) % 2 == 0:
    4. prompt = f"Question:{question}\nReference:{ref}\n[A]:{a}\n[B]:{b}\nWhich one is better?"
    5. else:
    6. prompt = f"Question:{question}\nReference:{ref}\n[A]:{b}\n[B]:{a}\nWhich one is better?"
    7. verdict = call_model(prompt)
    8. return normalize(verdict)

    5. Building the Task Set: Difficulty Tiers and Contamination Control

    A high-quality task set determines the credibility of conclusions more than model choice does. Build it with a mix of 40% basic, 35% intermediate, and 25% long-tail items, and make sure that:

    • Each task category has at least 100 items to reduce sampling noise;
    • Training data contamination is checked by generating equivalent variants through rewriting, numeric perturbation, and option reordering;
    • A private set is held back from tuning and used only for final acceptance;
    • Every sample is labeled with difficulty and failure cost, so results can be aggregated with weights.

    Long-tail samples matter especially. Examples include cross-page alignment in very long tables, noisy text from scanned documents, and contract question answering that contains negations and exception clauses. This is where the gaps between models are usually largest and where business risk is most concentrated.

    6. Automating the Evaluation Pipeline

    Evaluation should be engineered as a pipeline, not a one-off script. Typical stages are: data version pull → concurrent inference → rule checks → model review → metric aggregation → report generation → threshold gate. Store data and results in object storage, decouple tasks with a message queue, pin dependencies with a container platform, and connect metrics and alerts to logging and monitoring services.

    1. for sample in dataset.iter(shuffle=True, seed=42):
    2. outputs = [m.generate(sample.prompt) for m in models for _ in range(repeats)]
    3. scores = aggregate(rule_check(sample, outputs), llm_judge(sample, outputs))
    4. sink.write(sample.id, scores) # Write to object storage
    5. report = build_report(scores, weights=sample.difficulty_weights)
    6. gate = report.pass_if(min_lift=0.02, max_regression=0.01)

    Write gate rules as explicit thresholds: the weighted improvement of a new candidate over the baseline must exceed the set value, and no key dimension may regress beyond the tolerance ceiling; otherwise, block the release.

    7. Reading Results: Watch Out for Four Misjudgments

    The first is the average hiding the long tail: an overall 3% gain alongside a 10% drop on a high-risk subset shows up after launch as occasional severe errors. The second is length bias: reviewers favor longer, more elaborate answers, so length normalization is needed. The third is position and wording bias: a small change to the review prompt can flip the conclusion, so run a sensitivity analysis. The fourth is version drift: vendor-side updates invalidate historical conclusions, so snapshots and evaluation timestamps must be recorded.

    8. Cost, Latency, and Architecture Trade-offs

    Evaluation conclusions ultimately land on architecture choices. A common strategy is tiered routing: use the lightweight option for high-frequency simple requests and higher-capability models for complex reasoning and coding tasks, letting confidence scores and rule checks decide whether to escalate. A cache layer can cut the cost of repeated requests substantially, while batching and streaming output improve throughput and perceived latency. If sensitive data is involved, also weigh the compliance gains and operational cost of private or dedicated instance deployment.

    9. Continuous Regression and Post-Launch Monitoring

    Launch is not the finish line. Run the core regression set weekly, and trigger incremental evaluation on every prompt or retrieval strategy change; sample production traffic for manual review, and monitor refusal rate, format failure rate, timeout rate, and user rewrite rate. Baidu AI Cloud can provide support across general capabilities such as model services, container platforms, and logging with monitoring and alerting, helping teams turn evaluation from manual experience into a sustainable quality gate system.

    10. Conclusion

    The essence of deep evaluation is building a measurement system that is aligned with the business, reproducible, and regression-friendly. Define the business cost first, then design layered metrics and a layered task set, and finally use an automated pipeline with explicit gates to hard-code conclusions into the development process. Only then can technical selection between capability, cost, and risk hold up under verification.