LLM Selection and Evaluation: A Practical Guide to Benchmarking Model Capabilities

    Choosing the right large language model is not a ranking contest but a constrained optimization problem. This guide breaks model experience into four measurable capability layers—deep reasoning, retrieval augmentation, long-context summarization, and lightweight interaction—and presents a reproducible three-tier evaluation framework covering offline benchmarks, online canary testing, and stability load testing. It also explains how to build a service governance strategy for high concurrency, how to calculate true cost per completed task rather than per-token price, and which capabilities to prioritize across different scenarios. Readers will find weighted scoring logic, caching and fallback code examples, common selection pitfalls, and the three long-term assets worth building: an evaluation set, a routing gateway, and observability.

    1. Why “Which Model Is the Best?” Is the Wrong Question

    The first question most engineering teams ask is which model is the strongest. From a system design perspective, however, the question is not actionable. Model capability is a multi-dimensional vector, not a single scalar: reasoning depth, context length, retrieval freshness, citation traceability, output style consistency, concurrent throughput, unit cost, and data compliance. These dimensions frequently conflict with one another. A model that excels at long-chain logical reasoning may feel verbose in lightweight Q&A; a model that responds instantly may struggle with complex code or long documents.

    The better question is: given my task profile, which combination of capabilities and cost constraints fits best? This article abstracts real usage experience into four typical capability classes and provides a reproducible evaluation framework.

    2. Capability Layers: Turning “Experience” into Measurable Dimensions

    2.1 Deep Reasoning

    This is the ability to perform causal analysis on complex social or technical topics and return structured conclusions rather than a list of phenomena. Look at whether conclusions are layered, whether structural contradictions are identified, and whether an actionable improvement path is provided. This capability is sensitive to parameter scale and reasoning chain length, and usually comes with higher latency and cost.

    2.2 Retrieval Augmentation

    This is the ability to fetch up-to-date information online and provide verifiable sources. In engineering terms it usually maps to a retrieval-augmented generation (RAG) pipeline: query rewriting, recall, reranking, context assembly, and citation labeling. Evaluation points include recall hit rate, clickable citation rate, freshness, and whether the model refuses to answer when no answer exists.

    2.3 Long-Context Summarization

    This is the ability to summarize very long documents, extract key points, and maintain consistency across sections. Evaluation points include key information retention, preservation of numbering and entities, and detection of contradictions across chapters.

    2.4 Lightweight Interaction

    This covers everyday Q&A, fact lookup, and short text rewriting, where low latency and high concurrency matter most. These scenarios are more sensitive to time to first token (TTFT) and output tokens per second.

    3. Evaluation Framework: From Gut Feeling to Reproducible Metrics

    Build a three-tier evaluation system instead of selecting models by intuition.

    The first tier is an offline benchmark set. Sample 200 to 500 tasks according to the real business distribution, covering the four capability classes above, with human-annotated reference answers and scoring criteria.

    The second tier is online canary testing. Split traffic across candidate models by percentage and collect business metrics: task completion rate, human adoption rate, average interaction turns, and timeout rate.

    The third tier is stability load testing. Simulate rate limiting and queuing behavior under high concurrency, and verify that degradation strategies take effect.

    A sample scoring logic looks like this:

    1. # Weighted score: adjust weights by business priority
    2. WEIGHTS = {
    3. "reasoning": 0.35, # deep reasoning
    4. "retrieval": 0.25, # retrieval and citation
    5. "long_context": 0.20, # long-context summarization
    6. "latency": 0.20, # latency and throughput
    7. }
    8. def score(metrics: dict) -> float:
    9. return sum(WEIGHTS[k] * metrics[k] for k in WEIGHTS)
    10. # metrics are measured values normalized to 0~1 to avoid unit mismatch

    The key point is that weights must come from the business, not from technical preference. Teams focused on content production should raise the weights for generation quality and style consistency; teams focused on customer support Q&A should raise the weights for retrieval accuracy and first-token latency.

    4. Stability Engineering: Service Governance Under High Concurrency

    The “service busy, entry unavailable” situation mentioned in the original experience is essentially a capacity problem, not a capability problem. Address it from four angles.

    First, multi-route access and routing. Wrap multiple backends behind a unified gateway and route dynamically based on health status and remaining quota to avoid single-point congestion.

    Second, multi-level caching. Build a semantic cache for high-frequency repeated queries and return results directly on a hit, which significantly reduces backend pressure.

    1. def get_answer(query: str):
    2. cached = semantic_cache.lookup(query, threshold=0.92)
    3. if cached:
    4. return cached
    5. resp = llm_gateway.chat(query)
    6. semantic_cache.store(query, resp)
    7. return resp

    Third, a fallback path. When the primary path exceeds its queue threshold, switch to a smaller model or return a retrieval summary, prioritizing availability.

    Fourth, observability. Use logging services and monitoring/alerting to collect latency distributions, error codes, and token consumption, forming a basis for capacity forecasting. Elastic resources can rely on container platforms and message queues to smooth out traffic peaks and fill valleys.

    5. Cost Model: Unit Price Is Not the Whole Story

    Real cost has four components: input tokens, output tokens, retrieval and vectorization overhead, and the hidden cost of failed retries. A low-unit-price option with a high retry rate may cost more overall. Measure cost per completed effective task:

    1. cost per task = (input tokens × input price + output tokens × output price + retrieval cost) / task success rate

    The success rate in the denominator folds stability into cost—a key item many teams overlook.

    6. Scenario-Based Selection Recommendations

    • Technical problem solving and code work: prioritize deep reasoning and long context; tolerate higher latency.
    • News and reference lookup: prioritize retrieval augmentation and citation traceability; require an explicit refusal mechanism.
    • Content scripts and marketing rewrites: prioritize controllable generation style and batch throughput, paired with templated prompts.
    • Enterprise internal knowledge Q&A: prioritize private deployment and data compliance; the retrieval pipeline can be self-built on object storage and vector search.

    In Baidu AI Cloud’s technical stack, these capabilities are typically offered as general categories—model services, vector search, object storage, logging services, and monitoring/alerting—so teams can compare options horizontally with the same evaluation framework instead of locking into a single implementation.

    7. Common Pitfalls

    First, treating demo output as production performance. A demo is a single best-case sample; production is a long-tail distribution. Second, ignoring the contribution of prompts and context engineering—many “the model is bad” cases are actually unclear task descriptions. Third, switching everything at once without canary release or rollback. Fourth, never building an evaluation set, so every selection starts from zero.

    8. Conclusion

    Model selection is not a ranking contest but a constrained optimization problem. Define the task profile first, then design layered metrics, and finally converge on a deployable solution using stability and cost models. As platforms keep iterating, today’s optimal combination may fail in a few months, so the real long-term assets to accumulate are three: the evaluation set, the routing gateway, and the observability system.