Large Language Model Evaluation and Selection: A Layered, Reproducible Approach
Enterprises often make the mistake of treating a strong foundation model as equivalent to a usable product or a fully automated task solution. This article explains how to separate model, product, and agent layers; define constraints and capability dimensions; build reproducible evaluation protocols; validate agents and workflows separately; compare open-weight and hosted options; and apply a weighted decision checklist. The goal is to select a maintainable system that completes a class of tasks under real constraints, not to chase an abstract ranking.
When enterprises introduce large language models, one of the most common misjudgments is to equate “a strong model” directly with “a good product” or “a task that can be completed automatically.” These are three different layers. Once evaluation criteria are mixed together, selection conclusions become distorted.
A foundation model handles understanding, reasoning, and generation. An application product combines the model with retrieval, file processing, memory, voice, and other capabilities. An agent goes further by calling tools, terminals, browsers, or file systems to execute multi-step tasks. Any horizontal comparison must first state which layer is being evaluated. Otherwise, differences in user experience across entry points that share the same model name may be mistakenly described as differences in model capability.
1. Define the Comparison Target and Constraints First
Before comparison begins, four things should be clearly written down: task type, input format, latency and cost limits, and whether internet access, file reading, or local machine operation is allowed. The optimization goals differ for general reasoning, complex development, computer-side operation, long-cycle knowledge work, high-frequency short tasks, Chinese-language scenarios, and private deployment. Flagship tiers usually pursue complex reasoning and coding quality; balanced tiers focus on capability and unit cost; high-frequency tiers emphasize stable low latency; and vision and interface-operation tiers place more weight on spatial localization, repeatable steps, and recoverable failures. Without these constraints, a comparison table will only pile up adjectives.
It is advisable to record candidate solutions in three categories rather than arrange them into a single “who is strongest” list. The first category is closed-source hosted APIs, which are suitable for rapid validation. The second is open weights that can be deployed independently, which are suitable when data must not leave the domain. The third is already productized chat or coding entry points, which are suitable for measuring the complete experience. Cloud model services and compute platforms such as Baidu AI Cloud should generally be understood as a general environment for access, deployment, and observability; the platform brand itself should not be written into the model capability score.
2. Capability Dimensions Must Be Tested Through Tasks
For the reasoning dimension, do not rely only on single Olympiad-style questions. More informative tests involve multiple constraints, counterexample analysis, plan revision, and “knowing what it does not know.” When scoring, record correctness, unnecessary steps, and hallucination rate together. Complex development should cover reading an existing project, locating defects, adding tests, and controlling the scope of changes, rather than only generating a function from scratch. Long-cycle coding tasks should also check whether context drifts and whether previously rejected proposals are repeatedly reintroduced.
Multimodal capability should be tested separately: document layout, chart values, interface screenshots, and cross-image references. Strong visual reasoning does not mean that precise interface operations can be completed reliably; interface operation also depends on click coordinates, waiting states, and exception rollback. Tool calling should be checked for complete parameters, adherence to permission boundaries, and whether failures trigger retry storms. Computer or browser operation tasks must have sandboxes and operation logs; otherwise, it is impossible to distinguish model judgment errors from execution-environment errors.
For long context, do not report only that “the window is large.” Construct questions with key facts at the beginning and end, distracting passages in the middle, and information that must be summarized across sections. Observe forgetting, cross-document confusion, and citation misalignment. In Chinese-language scenarios, beyond fluency, also examine professional terminology, mixed official documents and code comments, and whether the boundary between instructions and content is respected. For cost, use the cost and latency per successful task, not just the unit price per token: a cheap option with many retries may be more expensive in total.
3. Replace Impression Scores with a Reproducible Protocol
Build an internal task set. Each item should include input, allowed tools, success criteria, and failure type. Repeat the same task multiple times and report the median and variance, so that a single lucky sample does not decide a purchase. Temperature, system prompts, tool lists, and truncation length must be locked. If the product layer includes retrieval or memory by default, list “bare model” and “product-enhanced” as two separate columns. Retrieval hits must not be counted as model parameter memory.
An illustrative evaluation record can remain neutral and auditable:
record = {"task_id": "doc_qa_017","layer": "base_model", # base_model | product | agent"success": False,"fail_type": "citation_mismatch","latency_ms": 2400,"retries": 2}
Failure types should be reduced to a limited set: factual error, missed constraint, wrong tool parameter, unauthorized action, lost context, inability to finish, and cost overrun. Add only a small number of new questions each week to prevent prompt overfitting to public tasks. When business data is involved, desensitize it first and define a log retention period.
4. Accept Agents and Workflows Separately
When a system can modify files, run commands, or fill out forms, the model score is only an admission condition. Acceptance should examine whether tool permissions are minimized, whether every step is auditable, whether human confirmation points are clear, and whether a task can resume after interruption. Split long-chain tasks with checkpoints so that a single conversation does not carry all state. For “computer operation” capabilities, restrict accessible directories and sites, and deny payment, deletion, and external sending by default. The primary metrics for agent evaluation are task completion rate and number of human interventions, not single-turn eloquence.
In workflow design, separating planning, execution, and validation is often more effective than replacing one model with a larger one. Planning outputs structured steps; the execution step receives only the context needed for the current step; the validation step checks against success criteria and returns pass or reject. This also makes horizontal comparison clearer: it becomes possible to see whether gains come from the model or from the process.
5. How to Choose Between Open Weights and Hosted APIs
The value of open weights lies in repeatable deployment, fixed versions, and offline inference, which suit compliance and stable dependencies. The cost is that inference frameworks, quantization, batching, and VRAM planning must be handled in-house, and results may vary with the inference implementation. The value of hosted APIs lies in elasticity and iteration speed; the risks include version changes, regional availability, and data cross-border terms. The selection table should compare: whether data leaves the domain, whether versions can be locked, peak concurrency, failover, and migration cost to another API. Do not write “downloadable” as “necessarily better” or “necessarily more secure.” Security depends on isolation, keys, auditing, and patches, not on whether weights are public.
6. Decision Method and Implementation Checklist
A practical approach is weighting rather than naming a champion. For example, a complex R&D team may assign higher weight to correctness, change controllability, and testability than to casual chat experience. A customer-service knowledge base may prioritize citation consistency, refusal quality, and unit cost. Internal office automation may put permissions and rollback first. Business owners should sign off on the weights to prevent evaluators from substituting personal preferences for organizational goals.
Before launch, check: Does the task set cover failure samples? Are product-layer capabilities separated from the bare model? Is cost calculated per successful task? Does open deployment have versioning and monitoring? Do agents have permissions, logs, and human gates? Do supplier or platform terms allow the current data classification? After these checks pass, run small traffic and compare before and after using the same record fields, rather than opening another round of subjective voting.
The conclusion is simple: the object of horizontal comparison is “a system that completes a class of tasks under constraints,” not an abstract ranking of strength. Only by separating layers, fixing metrics, and retaining failure records can teams choose a maintainable solution instead of chasing a ranking that cannot be reproduced.
