How to Choose and Evaluate General-Purpose LLMs: A Practical Framework
This article explains why the "overall performance" of general-purpose LLMs is hard to compare directly, and breaks evaluation into five observable dimensions: stability and consistency, reasoning and code ability, creative generation and style control, multimodal and long-context capability, and ecosystem and cost structure. It includes reproducible testing methods, sample code for schema pass rate and task routing, a four-step selection workflow, common pitfalls to avoid, and a conclusion on turning subjective impressions into repeatable engineering decisions.
1. The Core Problem: Why “Overall Performance” Is Hard to Compare
In engineering practice, teams often need to answer one question: among many general-purpose LLM services, which one best fits the current business. Original discussions often stay at the level of personal experience, with descriptions such as “stable but unexciting” or “slightly weaker at creative writing.” Such conclusions are not worthless, but they blur two different layers: the objective boundaries of model capability, and the degree of fit in a specific scenario.
From a technical perspective, a general-purpose LLM is a probabilistic generation system. Its output quality is jointly affected by training data distribution, alignment strategy, inference configuration, prompt design, and the post-processing pipeline. The performance gap of the same model across different tasks may be larger than the gap between different models on the same task. Therefore, “overall performance” is not a single measurable metric, but a weighted result of a set of metrics, with weights determined by the business.
A more rigorous approach is to decompose evaluation into observable dimensions and design reproducible test methods for each. Below are five widely recognized dimensions in the industry.
2. Five Core Evaluation Dimensions
2.1 Stability and Consistency
Stability has three layers of meaning: API availability and latency variance, parseability of output format, and semantic consistency under identical inputs. The first two are engineering metrics that can be continuously collected through monitoring alerts and logging services; the third is a quality metric that requires regression on a fixed test set.
One actionable check is to run batch regression on structured extraction tasks and measure the format compliance rate:
import jsondef schema_pass_rate(responses, validator):ok = 0for r in responses:try:validator(json.loads(r))ok += 1except (json.JSONDecodeError, ValueError):continuereturn ok / max(len(responses), 1)
In engineering, it is advisable to include this ratio in the CI pipeline, so that any prompt or model version change triggers a regression run and avoids “judging that it got better by feel.”
2.2 Reasoning and Code Ability
Code and logical reasoning are the most discriminating dimensions because they have objective correct answers. Evaluation should cover three types of tasks: single-function completion, cross-file refactoring, and defect localization with boundary-condition investigation. Scoring should look not only at whether test cases pass, but also at whether regressions are introduced.
The recommended practice is to maintain an internal private question bank and avoid public leaderboard data, to prevent inflated scores caused by training-set contamination. The bank does not need to be large, but it must come from real business code, and failed samples should be retained as a regression baseline.
2.3 Creative Generation and Style Control
The original text mentions that some models are weaker at creative writing and tend to produce “templated expressions.” The technical root of this phenomenon is usually an alignment strategy biased toward safety and high-confidence output, which narrows the distribution and reduces diversity. The engineering response is not to swap models, but to explicitly control sampling parameters and prompt structure:
Task: Write three promotional copies with distinct styles for a productConstraints:- Styles: restrained and rational / humorous and colloquial / literary- Each paragraph no more than 80 characters; avoid vague words such as "empower" and "one-stop"- Output as a JSON array with fields style and text
By writing style, length, and banned words as hard constraints, and combining multiple samples with best-of selection, most general-purpose models can significantly improve text readability. This shows that the creativity gap can often be closed through prompt engineering and post-processing.
2.4 Multimodal and Long-Context Capability
Multimodal capability must distinguish “can receive” from “can align.” Real evaluation should include tasks such as chart reading, layout understanding, and mixed image-text instructions. For long context, the focus should be on effective utilization: place key information in the middle of an extremely long text and observe whether the model can still cite it accurately. This is more meaningful than simply claiming a context length.
2.5 Ecosystem and Cost Structure
Ecosystem includes API stability, tool-calling conventions, the maturity of plugin or function orchestration, and the richness of community solutions. Cost should not be judged by unit price alone, but converted into total cost per unit of business volume:
Cost per request ≈ input token price × average input length+ output token price × average output length+ retry and failure compensation cost+ manual review and post-processing cost
A high-unit-price model with a higher first-attempt success rate may actually have a lower total cost. Conversely, if a low-price model requires multiple retries and manual proofreading, hidden costs will quickly amplify.
3. A Practical Selection Workflow
Step 1: Define the task list and weights. Break the business into several high-frequency tasks, and annotate each task with quality thresholds and latency requirements.
Step 2: Build a private evaluation set. Prepare 30 to 100 real samples per task, including standard answers and scoring rules, with rules automated as much as possible.
Step 3: Layered routing. A more robust engineering architecture is not an either-or choice, but traffic splitting by task: high-certainty tasks go to a lightweight model, high-difficulty reasoning and creative tasks go to a more capable model, and a fallback path is retained.
def route(task_type, difficulty):if task_type in {"extract", "classify", "format"}:return "light_model"if difficulty >= 3 or task_type in {"refactor", "creative"}:return "strong_model"return "standard_model"
Step 4: Establish continuous evaluation. Model versions iterate, and today’s conclusions may be invalid tomorrow. Connect the evaluation set to the pipeline, together with monitoring alerts and log analysis, to form a closed loop.
4. Common Pitfalls
The first is replacing business evaluation with public leaderboards, since leaderboards differ greatly from the real distribution. The second is attributing prompt problems to model capability. The third is ignoring the retry and manual effort in the cost structure. The fourth is betting everything on a single model at once, lacking fallback and canary capabilities. The way to avoid these is to treat the model as a replaceable compute backend, isolate differences through a unified abstraction layer, and keep switching costs controllable.
5. Conclusion
“Which model has the best overall performance” is a question lacking constraints. A more professional way to ask is: under given task, quality threshold, latency, and budget constraints, which combination is optimal. If a team can dimension the evaluation, keep the test set private, layer the routing, and model the cost, it can turn subjective impressions into reproducible engineering decisions. If you need to host the evaluation and inference pipeline described above, you can build it on general capabilities such as the container platform, object storage, logging service, and monitoring alerts provided by Baidu AI Cloud, so that attention stays focused on business outcomes themselves.
