Evaluation Methods and Deployment Essentials for Newly Released LLMs
When a new general-purpose Large Language Model (LLM) is released, discussions often revolve around its naming, parameter scale, and demo effects. For engineering teams, however, this information rarely supports deployment decisions. The real questions to answer are: Is the model more stable and controllable on your specific business input distribution? Are the costs acceptable? Can failures be detected and rolled back? This article outlines a practical evaluation methodology based on "Goal—Data—Metrics—Experiment—Decision" to help engineering teams make informed LLM deployment choices.
When a new general-purpose Large Language Model (LLM) is released, discussions often revolve around its naming, parameter scale, and demo effects. For engineering teams, however, this information rarely supports decision-making. The real questions to answer are: Is it more stable and controllable on your business’s specific input distribution? Are the costs acceptable? Can failures be detected and rolled back? Below is a practical evaluation methodology explained through the lens of “Goal—Data—Metrics—Experiment—Decision.”
Clearly Define the Evaluation Problem
Evaluation is not about giving a model a single total score. Before starting, you should write a one-page task specification that includes at least four elements:
First, the use case. Is it retrieval-augmented generation (RAG) Q&A, customer service drafts, code completion, document summarization, or structured information extraction? Different scenarios weigh factuality, formatting, and latency completely differently.
Second, user and data boundaries. Does the input contain internal documents, personal information, or unpublished business data? Will the output directly face external users? These boundaries determine whether you can run online experiments with real traffic and how long logs can be retained.
Third, the definition of success and failure. For example, “the answer must provide supporting evidence and must not fabricate non-existent clauses,” or “the extracted result must pass predefined schema validation.” Vague goals like “answers should be better” cannot be reviewed.
Fourth, the baseline. The baseline should be the current production solution, or a rule-based/retrieval system for the same task, rather than individual highlight cases from public demos. Without a baseline, you cannot judge whether a replacement is worthwhile.
If there is no historical model, retain a “no model” baseline, such as template replies, direct retrieval snippets, or human processing. A baseline can expose whether the evaluation set itself is too easy.
Where Samples Come From Matters More Than the Model Name
Public question sets are suitable for capability benchmarking but cannot replace your business distribution. It is recommended to divide your data into three layers and lock the versions:
Capability Probe Set: Covers knowledge QA, multi-step reasoning, long-context understanding, instruction following, format constraints, and multilingual mixing. Its purpose is to find obvious shortcomings, not to decide on production deployment. Questions should have standard answers or auto-validatable constraints to avoid relying solely on subjective impressions.
Business Regression Set: Derived from desensitized real requests, stratified by intent, length, domain, and difficulty. Each sample records the input, expected behavior, acceptable equivalent answers, and whether it belongs to a high-risk category. Once the set is used for comparison, do not add or remove samples mid-evaluation, or scores before and after will be incomparable. New samples should go into the next version.
Adversarial & Boundary Set: Specifically collects error-prone scenarios: expired information, contradictory materials, irrelevant instructions injected into prompts, ultra-long context, empty inputs, repeated questions, and requests for system internal information. The proportion of such samples need not be high, but they must be scored separately. If the average score rises while the boundary set score drops, it usually means the model is more “accommodating,” which does not equal safer.
When annotating, clearly define scoring rules. For open-ended answers, a checklist is recommended: must-include facts, forbidden assertions, format requirements, and whether citations are traceable. Have two annotators score independently, review disagreements, and revise the rules. Do not use demo copy directly as the standard answer.
Metrics Must Be Explainable, Not Just an Average Score
It is recommended to look at five categories of metrics simultaneously: Quality, Reliability, Efficiency, Cost, and Risk.
Quality includes task completion rate, key fact accuracy, and format legality rate. For information extraction, field-level precision and recall can be used; for generative tasks, keypoint coverage can be measured. Anything that can be automatically validated should not be entirely left to manual review.
Reliability looks at the variance of multiple samples from the same input, as well as fluctuations after changes to decoding parameters like temperature and max tokens. If the business requires stable output, high variance is a defect in itself, even if the single best sample is excellent.
Efficiency records Time to First Token (TTFT), total completion time, and timeout rate, bucketed by input length. Interactive scenarios care more about TTFT, while batch processing cares more about throughput and total time after failed retries.
Cost calculates input and output resource consumption per request and estimates peak concurrency. The evaluation report should provide the “cost per unit task at target accuracy,” rather than just comparing single API call prices. A stronger model might reduce manual review, potentially lowering overall cost even if the API price is higher, and vice versa.
Risk is listed separately: hallucination rate, unauthorized promises, sensitive information repetition, compliance rate with injection attacks, and false refusal rate of reasonable requests. Safety scores should not be averaged into quality scores. High-risk scenarios can use a one-vote veto: if the boundary set falls below a threshold, it will not be integrated into production.
Below is a practical summary format. Weights should be frozen by business stakeholders before evaluation to avoid changing the criteria after seeing results.
Dimension Metric Threshold ExampleQuality Keypoint coverage No lower than current solutionReliability 3-sample conclusion consistency Meets agreed ratioEfficiency Timeout rate Below SLACost Cost per successful task Within budgetRisk High-risk failure rate Zero or below red line
The threshold examples only express comparative relationships and do not represent any vendor’s performance guarantee. Actual numbers must come from the current round of experiments.
Experiment Design Must Prevent Common Biases
Fix decoding parameters, system prompts, context concatenation methods, and tool-calling strategies. Only by changing the model itself can differences be attributed to the model. If prompts are changed simultaneously, prompt optimization should be treated as a separate experiment.
For generative tasks, use the same random seed strategy and report the range across multiple runs, rather than a single best score. If ranking or scoring is done by another model (LLM-as-a-judge), this “judge” must also be spot-checked: randomly extract cases for manual review to confirm the judge aligns with business standards. The judge model cannot share unverified preferences with the tested model.
Long-context tests should control the “answer location.” Place materials at the beginning, middle, and end in separate groups to avoid drawing conclusions only from short inputs. In RAG scenarios, retrieval errors and generation errors must be separated: first record whether retrieval hit the evidence, then record whether the model faithfully used it. Otherwise, retrieval system issues will be wrongly attributed to the model.
Online canary testing should only occur after offline thresholds are met. Gradually increase the canary ratio, observing real refusals, complaints, human handoffs, and latency. New intents not covered by the offline set should be fed back into the next version of the regression set. Do not use occasional post-launch praise as a substitute for controlled experiments.
How to Read Results and Make Deployment Decisions
Evaluation conclusions should be written as three points, not a marketing pitch.
Capability Conclusion: Relative to the current solution, which intents improved, and which remained flat or regressed. Regressions should include failure samples and possible causes, such as ignoring negations, incorrectly merging entities, or providing confident answers when material is insufficient.
Operational Conclusion: Whether latency, timeouts, retries, and unit costs meet service objectives. If quality improves but tail latency is unacceptable, consider asynchronous processing, caching common questions, or only invoking the model for high-value requests.
Risk Conclusion: Whether high-risk failures can be blocked by rules, permission controls, and manual review. Model-level refusals are unreliable; production systems still require input filtering, output validation, least privilege, and audit logs. Passing evaluation does not mean these controls can be removed.
Deployment strategies can be tiered. For internal drafts or scenarios requiring human confirmation, thresholds can focus on efficiency and formatting. For user-facing scenarios or those involving commitments, funds, or permissions, factuality and risk thresholds should be raised, and a manual escalation path should be retained by default. You can also choose to replace only a specific sub-task, such as query rewriting or summarization, while leaving the final response to a previously validated module.
Rollback conditions must be specified in advance: automatically revert to the original solution if error rates, complaints, or latency exceed thresholds. Model version, prompt version, and evaluation set version should all be recorded to ensure future reproducibility of the conclusion.
Organization and Common Pitfalls
Evaluation should be jointly owned by end-users, algorithm or platform engineering, and security and compliance. Users provide samples and business standards for right and wrong; engineering is responsible for the repeatable pipeline; security handles high-risk categories and log policies. “Tech self-evaluation” without business standards is easily misled by demo cases.
Keep the pipeline simple: sample ingestion, batch calling, auto-validation, human spot-checking, and generating comparison reports. Store results, prompts, and failure cases in object storage and logs, and use monitoring to track latency and error rates. If deployed in an enterprise cloud environment like Baidu AI Cloud, you can simply use standard compute, storage, logging, and alerting capabilities to close the loop, without tying the evaluation to a specific model product’s marketing metrics.
Practices to avoid include: using launch event cases instead of stratified samples; only reporting average scores while hiding high-risk subsets; changing prompts mid-evaluation without recording it; treating all refusals as failures without distinguishing between “should refuse” and “false refuse”; and sending full conversations containing sensitive data to unapproved test endpoints.
Naming, codenames, or version slogans can be used for internal communication but should not appear in the scoring table. Whether a model is worth using depends solely on whether it is stably superior to a rollback-capable existing solution under frozen data, metrics, and thresholds. By making this process a versioned regression, subsequent model upgrades can reuse the same set of questions, rather than starting from scratch based on hype.
