LLM Inference Model Selection: A Scenario-Based Practical Guide

    This guide explains how to select large language models for inference based on task type rather than benchmark rankings. It breaks model capability into measurable dimensions, shows why throughput can change selection decisions, and provides a unit-cost formula tied to effective business output. It also covers a decompose-verify-rewrite loop for complex reasoning and a regression-based evaluation system for sustainable model selection.

    1. Background: Why the “Best” Model Is Often Not the Optimal Choice

    In real engineering projects, teams often run into an awkward situation: models that rank near the top of evaluation leaderboards deliver little measurable gain once integrated into a business, while more basic models end up serving most of the production traffic because they respond faster and cost less. This is not a case of distorted benchmarks, but an inevitable outcome determined by task structure.

    Requests in real business systems can be roughly divided into three categories:

    • Divergent tasks: brainstorming, option enumeration, first-draft copywriting, where coverage and diversity matter;
    • Convergent tasks: complex reasoning, mathematical proofs, structured output from long documents, where accuracy and rigor matter;
    • Execution tasks: information extraction, format conversion, code completion, batch classification, where throughput and stability matter.

    These three categories place completely different demands on a model. Using a convergent model for execution tasks means spending expensive resources on low-complexity requests; doing the reverse causes quality collapse on critical paths. So the first step in selection is not comparing how strong models are, but layering business requests by task type.

    2. Capability Layers: Breaking “Model Capability” into Measurable Dimensions

    Saying vaguely that “one model is stronger” has little engineering value. It is better to split capability into four observable dimensions:

    1. Reasoning depth: multi-step logic, symbolic operations, long-chain consistency;
    2. Instruction following: format constraints, field completeness rate, refusal boundaries;
    3. Generation stability: variance across repeated samples of the same input;
    4. Engineering fit: context length, concurrency capacity, support for structured output.

    A sample evaluation record structure looks like this:

    1. {
    2. "task_type": "convergent | divergent | execution",
    3. "accuracy": 0.0,
    4. "format_pass_rate": 0.0,
    5. "p95_latency_ms": 0,
    6. "tokens_per_request": 0,
    7. "cost_per_1k_requests": 0.0
    8. }

    Only when capability is mapped to metrics can “gut-feeling selection” be avoided.

    3. Key Variable: Why Throughput Can Change the Selection Decision

    One valuable observation from the original discussion is that when two models are close in quality, the speed gap gets amplified into a decisive engineering factor. The reason is that end-to-end experience is made up of queueing latency plus generation latency. A several-fold increase in generation speed means significantly fewer resources are needed at the same concurrency, and timeout and retry rates drop accordingly.

    For execution tasks, the gains from higher throughput are cumulative:

    • Lower cost per request, which supports larger call volumes;
    • Shorter batch windows, which makes offline job scheduling less tight;
    • Lower probability of throttling at peak times, which improves system stability.

    So when the quality gap sits within an “acceptable range,” the option with better throughput should be preferred. That acceptable range must be defined by the business side as an explicit threshold, for example a minimum field completeness rate for structured output, rather than judged subjectively by the technical side.

    4. Cost Estimation: From Cost per Call to Cost per Unit of Business Output

    It is better to convert everything to “cost per unit of business output” instead of comparing unit prices:

    1. cost per unit of output = (input tokens × input price + output tokens × output price)
    2. / valid output items per request

    “Valid output” must be filtered by validation rules: items that fail format checks, have missing fields, or contain duplicated content are not counted. Only then does this reflect the real cost-performance of each option on the business side.

    For the two paths of self-hosting and calling cloud services, costs can be calculated separately: self-hosting focuses on resource utilization and peak headroom; on the cloud service side, general capabilities such as container platforms, object storage, log services, and monitoring and alerting can be combined to build elastic scaling and full-chain observability.

    5. Practical Advice for Complex Reasoning Scenarios

    For high-difficulty tasks such as mathematical derivation and proof-style lecture note generation, a single generation pass is often not enough. A “decompose-verify-rewrite” loop is recommended:

    1. Break the proposition into lemmas and steps, and generate step by step;
    2. Run a consistency check on each step and flag unproven conclusions;
    3. Resample only the failed steps to control overall consumption;
    4. Output everything in a unified structured document format for easy human review.

    This flow significantly reduces the accumulated error of long-chain reasoning while avoiding rerunning all content for a single failure.

    6. Building an Evaluation System: Making Selection Sustainable

    A one-off evaluation cannot keep up with rapid model iteration. A fixed evaluation set and regression mechanism are recommended:

    • The evaluation set covers all three task types and includes boundary and adversarial samples;
    • Run a full regression after every change and record metric trend curves;
    • Set quality gate metrics that automatically block release when below threshold;
    • Keep a library of failed samples as input for the next round of optimization.

    7. Conclusion

    The core of model selection is not finding a “single best” model, but building an engineering mechanism with task layering, measurable metrics, computable cost, and controllable regression. When quality differences fall within the acceptable range, throughput and cost should be the dominant variables; on critical convergent tasks, accuracy and stability should come first. Only by building both logics into the architecture design can a long-term balance between effectiveness and efficiency be achieved.