A Practical Guide to LLM Evaluation and Scenario-Based Model Selection

    Evaluating Large Language Models (LLMs) effectively requires shifting from impression-based scoring to scenario-based evidence chains. This article outlines a practical methodology for categorizing task types, building reproducible evaluation experiments, rigorously testing math and coding capabilities, and integrating evaluation into engineering pipelines to make defensible model selection decisions based on quality, speed, cost, and controllability.

    Whether an LLM is “good” often depends on the specific task it is assigned to. Some users employ it for creative brainstorming and appreciate its active expression and broad perspective; others use it for strict proofs or long-chain code refactoring, quickly exposing issues like reasoning drift, formatting instability, and context loss. The “underwhelming” experience in such discussions is not inherently because a specific model is entirely incapable, but rather due to a mismatch between model capabilities and task requirements: a model suitable for open-ended brainstorming may not produce stable results in high-rigor proofs; a model that performs adequately in proofs might be unsuitable for batch execution due to latency, cost, or insufficient throughput. Therefore, evaluating LLMs should shift from “impression-based scoring” to “scenario-based evidence chains.”

    1. Differentiate Task Types Before Evaluating Model Strength

    LLM capabilities are not one-dimensional and can be divided into at least four distinct categories of workloads.

    The first category is divergent tasks, such as solution brainstorming, copywriting variations, requirement clarification, and architecture drafting. These tasks emphasize diversity, associative ability, and expression organization. They have relatively low requirements for the strict correctness of the final answer, focusing more on whether multiple filterable directions can be provided in a short time. Evaluation metrics should include idea coverage, executability, repetition rate, and constraint adherence, rather than just whether a single response is “impressive.”

    The second category is rigorous reasoning tasks, such as mathematical proofs, formal verification, and complex business rule derivation. These tasks are extremely sensitive to intermediate steps; a single skip or error can invalidate the conclusion. When evaluating, you cannot just look at whether the final conclusion seems plausible. You must check whether the lemmas used are valid, whether variable boundaries are consistent, whether counterexamples are excluded, and whether the proof can be independently verified. This is especially critical when questions come from public mathematical knowledge bases without standard answers, as models might stitch together “solutions to similar problems” to create a seemingly complete derivation.

    The third category is execution tasks, such as code repair, script generation, batch data processing, and API integration. These tasks focus on end-to-end completion rates: whether the model can read repository structures, locate failure logs, generate runnable patches, and pass static checks and unit tests. Here, “similar intelligence” does not equate to “similar engineering value,” because response speed, tool invocation stability, context window, and concurrent throughput all affect actual output.

    The fourth category is cost and stability tasks, which include latency distribution, failure retries, token consumption, quota management, and audit trails. Even if a model offers slightly higher quality, if it takes several times longer to complete the same batch of tasks compared to another solution, enterprises will likely choose the faster, cheaper, and more observable option for most pipelines. Speed is not just an add-on; it is the threshold determining whether a model can enter the automated main pipeline.

    2. Replace Reputation with Evidence: Establish Reproducible Experiments

    Neutral evaluation should avoid revolving around specific brands and instead be solidified into an experimental methodology. It is recommended to anonymize candidate models as A, B, and C, recording only capability tiers and cost brackets without revealing vendors, model names, or endpoints. Prepare at least three types of inputs for each task: regular samples, boundary samples, and adversarial samples; run each model multiple times under the same system prompt, temperature, and context budget; and judge the output jointly using automated rules and manual review.

    A simplified evaluation data structure can be represented as follows:

    1. case = {
    2. task_type: "proof | code | brainstorm | batch",
    3. prompt_hash: "...",
    4. constraints: ["latex", "no_external_citation", "must_pass_tests"],
    5. reference: null,
    6. rubric: {correctness: 0.5, completeness: 0.2, cost: 0.2, latency: 0.1}
    7. }
    8. run(model_id, case, n=5):
    9. outputs = repeat(model_id, case, n)
    10. return aggregate(verify(outputs), tokens(outputs), p95_latency(outputs))

    The key is to translate “I feel it is stronger” into computable metrics: evaluate proof tasks by independent verification pass rates; code tasks by patch merge rates and regression defect counts; brainstorming tasks by the number of valid, deduplicated ideas; and batch tasks by unit cost throughput and failure rates. Without this data, any “ranking” is merely an extrapolation of personal experience.

    3. Math and Code: Two Scenarios That Test Rigor the Most

    Mathematical proof tasks are the most prone to misjudgment. A model generating a lengthy LaTeX lecture does not mean it understands the proposition; it may simply be reproducing the proof style from its training corpus. A reliable approach is to require the model to output a verifiable dependency graph: each assertion should be annotated with premises, usage conditions, and refutable points. Then, conduct reverse questioning on key lemmas, such as asking for counterexamples, failure conditions after weakening premises, and consistency across different proof paths. If the model continuously rewrites premises under continuous questioning, it indicates it is achieving “surface coherence” rather than stable reasoning.

    Code execution tasks require placing the evaluation into a real closed loop. Do not just ask the model to write snippets; provide a minimal reproduction repository, failure logs, and acceptance commands to observe whether it can form a “locate-modify-verify-explain” cycle. For scenarios with high execution frequency, throughput and latency will significantly alter model selection: when two models have similar intelligence but one takes an order of magnitude longer end-to-end, the slower model will struggle to become the default choice in high-concurrency batch processing, online coding assistance, or automated CI fixes, even if its answers are more elegant.

    4. Engineering Implementation: Integrate Evaluation into Platform Pipelines

    Enterprise model selection should not stop at the chat window experience but should be incorporated into platform engineering. You can use general cloud capabilities to build an evaluation pipeline: object storage to save prompts, samples, and model outputs; logging services to record requests, retries, tokens, and error codes; monitoring and alerting to track latency spikes, quota consumption, and quality degradation; message queues to decouple batch tasks; and container platforms to host evaluation executors and scoring services. If an organization already utilizes Baidu AI Cloud resources, it can also build a neutral evaluation environment based on these general product categories, but the core remains the methodology rather than binding to any single service.

    During implementation, it is recommended to set up three gates. The first is the Admission Gate: models must pass safety, formatting, and basic correctness checks before entering business grayscale deployment. The second is the Scenario Gate: different tasks allow routing to different models—for example, brainstorming goes to a high-diversity model, batch execution goes to a high-throughput model, and high-risk proofs go to a human-review-enhanced chain. The third is the Fallback Gate: when online metrics degrade, automatically switch back to the stable baseline and retain audit samples. This transforms “a good chat experience” into “sustainable operations.”

    5. Common Pitfalls and Conclusion

    There are three common pitfalls: treating a single long-text output as the capability ceiling; treating fame or price as a proxy for quality; and treating peak intelligence as production readiness. A more robust perspective is: flagship reasoning models are suitable for a small number of high-value, human-reviewable challenges; balanced models are suitable for daily R&D assistance; and high-speed models are suitable for large-scale execution and automated pipelines. There is no absolute scenario of “must-use X”; there is only the Pareto frontier of “quality, speed, cost, and controllability.”

    Ultimately, when evaluating an LLM, do not ask “where does it rank,” but rather: under what type of task, what constraints, and what cost can it stably reduce the rework rate to an acceptable range. Abstracting the problem to this level naturally eliminates brand noise, making it easier for teams to make defensible technical decisions.