LLM Selection Beyond Benchmarks: Evaluating Models with Real-World Scenarios

    Selecting the right Large Language Model (LLM) often relies on public benchmarks and word of mouth, which can lead to suboptimal decisions. This article provides an engineering perspective on evaluating LLMs using real-world scenarios. It covers why public benchmarks fall short, the key evaluation dimensions to track, how to build a custom evaluation dataset, designing a phased trial strategy, and making trade-offs using a structured decision table.

    In real-world projects, selecting a Large Language Model (LLM) often relies on word of mouth, benchmark rankings, or a few casual tests. While this information has its value, using it directly for decision-making is prone to errors. Benchmarks typically cover specific tasks, and visual evaluations based on surface-level results struggle to measure backend logic, long-chain tasks, and compatibility with a team’s existing workflows. This article discusses how to establish a reliable selection methodology from an engineering perspective.

    1. Why Public Benchmarks Are Insufficient for Model Selection

    1. Narrow Task Coverage: Benchmarks mostly consist of single-turn Q&A, code completion, or math problems. They do not fully align with real-world work that involves multi-round revisions, reading massive contexts, and cross-file adjustments.
    2. Single-Dimensional Evaluation Criteria: Most evaluations rely on accuracy or manual scoring, ignoring response latency, format stability, and recoverability after a failure.
    3. Dynamic Context: Real requirements gradually add background information during iterations. Whether a model can maintain context consistency and adhere to prior agreements often cannot be reflected in a one-off test.
    4. Incomplete Requirements: Many tasks start with vague goals. A model’s ability to ask clarifying questions and self-correct significantly impacts the outcome, which fixed test questions cannot measure.

    The cost of a failed trial is not just the API billing. It also includes rework, troubleshooting, team time, and impacts on subsequent schedules. Therefore, model selection must consider quality, time, and cost collectively.

    2. Key Dimensions Affecting Real-World Performance

    It is recommended to break down the evaluation dimensions into the following categories, each with observable metrics:

    • Task Adaptability: The completion quality of tasks such as code modification, documentation drafting, data consolidation, and solution design.
    • Long Context Stability: As the context grows, whether the model forgets early constraints or repeats already modified content.
    • Instruction Adherence: Whether the output format, field naming, and prohibited actions are consistently executed.
    • Tool Calling Reliability: If integrated with retrieval, code execution, or internal APIs, whether parameters are correct and whether errors can be identified and retried.
    • Latency and Availability: Time to first token during peak hours, timeout rates, and error code distribution.
    • Cost Structure: The comprehensive cost of a single task, including input/output billing, retry counts, and manual correction time.
    • Migration Cost: Whether prompts, evaluation sets, and workflows can be reused across different models.

    For example, a team might find that a certain model has a lower price per call, but tasks typically require two to three rounds of correction, resulting in higher manual costs. This suggests that the unit of comparison should be the “total cost of delivering a usable result,” not the price of a single API call.

    3. Define Scenarios Before Selecting a Model

    Before selection, you should answer three questions:

    1. What are the deliverables for this type of task? Code, documentation, or structured data?
    2. How high is the cost of failure? The error tolerance for a draft that can be manually reviewed is completely different from output going directly into production.
    3. Is the task completed in one go, or is it continuously iterated? Iterative tasks rely more heavily on context management capabilities.

    After breaking down business scenarios into various types, each category can be evaluated independently. For instance, dividing daily work into “Requirement Clarification,” “Code Generation,” “Defect Repair,” and “Documentation Consolidation,” and selecting representative samples for each. The clearer the classification, the easier it is to explain the subsequent conclusions.

    4. Build a Custom Evaluation Dataset

    A custom evaluation dataset is the most valuable asset in the selection process. It is recommended to build it following these steps.

    4.1 Collect Samples

    Extract real tasks from historical work; 20 to 50 samples per category is appropriate. Samples should include simple, medium, and hard difficulties, and retain the original ambiguity of the requirements. Do not rewrite the requirements to be too clear just for testing, otherwise, the evaluation results will overestimate the model’s actual performance.

    4.2 Define Scoring Criteria

    Provide quantifiable scoring items for each sample, for example:

    • Is the functionality correct? (0 to 2 points)
    • Are existing conventions followed? (0 to 2 points)
    • Are additional corrections needed? (0 to 2 points)
    • Is the output directly usable? (0 to 1 point)

    Scoring should be done independently by at least two people. Samples with significant disagreements need to be discussed jointly to unify the standard.

    4.3 Execution and Recording

    Below is a schematic pseudocode of the evaluation process to illustrate the recording structure. When actually integrating, replace it with the client and evaluation method used by your team.

    1. for model in candidate_models:
    2. for task in evaluation_set:
    3. start_time = get_current_time()
    4. result = call_model(model, task.context, task.requirement)
    5. record = {
    6. "model": model,
    7. "task_category": task.category,
    8. "duration": get_current_time() - start_time,
    9. "input_tokens": result.input_usage,
    10. "output_tokens": result.output_usage,
    11. "has_error": result.error is not None,
    12. "manual_score": "Pending"
    13. }
    14. write_to_results_table(record)

    The original output should be retained in the records for post-review. During statistical analysis, results can be grouped by model and task category to calculate average scores, average correction rounds, and cost per task. These conclusions will be more valuable than overall averages.

    5. Design a Small-Scale Trial Plan

    Full evaluations require high investment, so most teams can adopt a phased trial approach.

    Phase 1: Offline Evaluation. Run all candidate models through the evaluation dataset to eliminate obviously unsuitable options.

    Phase 2: Shadow Mode. Assign real tasks to two models simultaneously, but only use the result from one. The other result is used solely for comparison. This method does not affect delivery and is suitable for evaluating quality differences.

    Phase 3: Small-Traffic Live Trial. Assign a portion of real work to the candidate model for three to five working days, covering different time periods, especially peak and off-peak hours.

    During the trial, pay attention to the following:

    • Avoid frequently switching models on the same day, as it makes attribution difficult.
    • Record the type of each failure, distinguishing between model capability issues and integration issues.
    • Pricing and quota rules are subject to the latest announcements from the service provider. Confirm the billing method before the trial to avoid being forced to switch models before prepaid quotas are exhausted.
    • Keep a fallback path to ensure work is not interrupted if the model experiences anomalies.

    6. Decision and Trade-offs

    After the trial, a decision table can be used to summarize the results.

    Dimension Weight Model A Model B
    Task Completion Quality 35% Fill by score Fill by score
    Long Context Stability 20% Fill by score Fill by score
    Total Cost per Task 20% Fill by score Fill by score
    Latency and Availability 15% Fill by score Fill by score
    Migration and Maintenance Cost 10% Fill by score Fill by score

    The weights should be determined by the team based on business priorities. If the weight for quality is too low, you might select a model that is cheap per call but requires frequent rework. If the weight for cost is too low, you may incur unnecessary expenses for large-scale tasks.

    7. Common Pitfalls

    Pitfall 1: Relying solely on benchmark rankings. Benchmarks reflect performance on specific test sets, which may not align with your task structure.

    Pitfall 2: Looking only at unit price. Comprehensive cost must include correction rounds and waiting time.

    Pitfall 3: One-time testing for life. Model services change with version updates; selection conclusions should be reviewed periodically.

    Pitfall 4: Over-reliance on a single model. Keeping backup options for critical workflows helps mitigate risks from service fluctuations.

    8. Implementation Recommendations

    1. Identify three to five core task categories and build evaluation samples for each.
    2. Use a unified scoring sheet and recording structure to complete offline evaluation.
    3. Validate conclusions through shadow mode or small-traffic trials.
    4. Formulate decisions based on business weights and agree on a review cycle, such as quarterly.

    The goal of model selection is to enable the team to complete work stably at an acceptable cost. As long as the evaluation is close to real-world scenarios, even a small sample size can yield more reliable judgments than public benchmarks.