LLM Evaluation for Scenario-Based Model Selection: Methods and Practices

    This article explains how to move from vague judgments about overall model performance to measurable, reproducible evaluation dimensions. It covers key assessment areas such as complex reasoning, code generation and review, long-context handling, multimodal understanding, real-time retrieval, instruction following, and cost, latency, and controllability. It then presents a simple reproducible evaluation framework and offers scenario-based selection guidance, along with operational considerations for data security, version management, human review, and cost monitoring.

    I. From “Overall Performance” to Verifiable Evaluation Questions

    The question “Which model is best?” lacks context. Different models perform differently on tasks such as reasoning, coding, writing, multimodal understanding, and real-time retrieval. The same model can also produce different results across versions, parameter settings, and prompting methods. A more useful question is: On a specific task, which type of model can consistently meet requirements at an acceptable cost? To answer this, we first need to break “overall performance” into dimensions that can be measured separately, and then map each dimension to real business scenarios.

    II. Key Evaluation Dimensions

    1. Complex Reasoning and Mathematical Ability

    Reasoning ability focuses on multi-step logic, mathematical calculation, and constraint satisfaction. Evaluation should use problems with standard answers, record accuracy, and check whether the intermediate derivation is self-consistent. Looking only at final answers can overestimate a model, because an answer that happens to be correct can hide an incorrect process.

    1. Code Generation and Code Review

    Code ability can be divided into three categories: generating functions or modules from requirements, making local modifications in an existing codebase, and finding defects and providing review comments. Generation quality can be measured by unit test pass rate, and review quality can be measured by the recall rate of manually labeled defects. When working with large codebases, it is also necessary to test whether the model understands cross-file dependencies and whether it mistakenly modifies unrelated code.

    1. Long-Context Processing

    The core metrics for long-document scenarios are information localization and consistency. Facts can be embedded in long text, and the model can be asked to cite them accurately in question answering. Then check whether summaries omit key clauses and whether statements contradict each other. A model’s advertised context length is not the same as its effective usable context length; actual documents should be used for validation.

    1. Multimodal Understanding

    For understanding charts, screenshots, receipts, and UI prototypes, use sample sets that contain details and test recognition accuracy and completeness of structured output. Small text, axis units, and merged cells are common failure points.

    1. Real-Time Information and Retrieval Augmentation

    For scenarios involving the latest information, test whether the model can invoke retrieval capabilities, whether it marks information sources, and whether it states uncertainty when information cannot be obtained. Verifiable sources are more reliable than fluent answers that cannot be traced.

    1. Instruction Following and Output Stability

    In business systems, output format stability is more important than the literary quality of a single response. Test compliance rates for constraints such as JSON structure, field enums, and word limits, and sample multiple times with the same input to observe result fluctuations.

    1. Cost, Latency, and Controllability

    Cost includes per-call fees, average response time, concurrency quotas, and failure retry overhead. Controllability includes whether data leaves the domain, whether private or dedicated deployment is supported, and whether version updates are predictable. These factors often determine whether a model can enter production.

    III. Building a Reproducible Evaluation Process

    A single experience is easily affected by subjective impressions. It is recommended to build a fixed test set that covers typical tasks and edge cases in each dimension, and to run all candidate models with unified scoring rules. Below is a simplified evaluation framework example:

    1. import statistics
    2. from dataclasses import dataclass
    3. @dataclass
    4. class Case:
    5. task: str # Task category, e.g., reasoning / code / long_doc
    6. prompt: str
    7. check: callable # Returns 0 or 1
    8. def evaluate(model_fn, cases, repeat=3):
    9. scores = {}
    10. for case in cases:
    11. results = []
    12. for _ in range(repeat):
    13. output = model_fn(case.prompt)
    14. results.append(case.check(output))
    15. scores.setdefault(case.task, []).append(statistics.mean(results))
    16. return {task: round(statistics.mean(v), 3) for task, v in scores.items()}

    The framework has three key points. First, run the same case multiple times to observe stability. Second, make the judgment function as automated as possible, for example by running unit tests or validating JSON structure. Third, summarize results by task category to avoid a single total score hiding weaknesses.

    IV. Scenario-Based Selection Approach

    Selection should start from business constraints, not from leaderboards. Common judgment methods are as follows:

    • For a primary model that needs balanced general capabilities and a mature toolchain: focus on the lowest score across multiple task types, not the highest score.
    • For long-document processing and code collaboration: focus on effective long-context utilization and the accuracy of large-scale changes.
    • For reliance on images and structured documents: recognition accuracy on multimodal samples and completeness of structured output are the deciding factors.
    • For applications oriented toward real-time information: retrieval quality, source labeling, and timeliness handling are more critical than writing style.
    • For budget-sensitive or batch processing: the balance between cost per task and acceptable quality is the core metric.
    • For Chinese-language business scenarios: evaluate with real Chinese corpora, including technical terms, colloquial expressions, and format conventions.

    Many teams eventually adopt a multi-model combination, routing to different models by task type and keeping backup models for critical steps to reduce the risk of a single service outage or version change.

    V. Operational Considerations

    First, data security. Content submitted to external services needs to be desensitized. For tasks involving personal information or trade secrets, deployment methods that meet compliance requirements should be preferred.

    Second, version management. Model version updates may change output behavior. Pin version numbers and run regression tests with the evaluation set before upgrading.

    Third, human review. In high-risk scenarios such as contracts, healthcare, and finance, model output can only be used as supporting material, and final conclusions should be confirmed by personnel with professional qualifications.

    Fourth, cost monitoring. Record token usage and call counts for each task type, set budget alerts, and prevent abnormal loop calls from causing cost spikes.

    VI. Conclusion

    The key to evaluating the overall performance of large models is to transform vague judgments of “strong” and “weak” into measurable dimensions, reproducible tests, and traceable business metrics. Capability rankings change with version iterations, and a stable evaluation process is the tool that remains effective over the long term. Teams can start with a small test set to establish a baseline, then gradually expand samples based on business feedback to form a continuously improving selection mechanism.