How to Evaluate Large Language Models: 8 Core Capability Dimensions
This article presents a practical framework for evaluating large language models across eight capability dimensions: reasoning and academic performance, coding and software engineering, writing and long-form output, multimodal understanding, context window and real-time information, tool calling and agentic workflows, cost and latency, and ecosystem integration with governance. It explains how to design measurable metrics for each dimension, build a reproducible evaluation pipeline with versioned datasets and prompts, and make selection decisions through scenario-based weighting and hard constraints rather than chasing a single "best" model. Readers will find metric definitions, sample evaluation loops, common pitfalls, and best practices for turning subjective impressions into data-driven engineering decisions.
1. Why Multi-Dimensional Model Evaluation Matters
In real engineering practice, many teams start model selection with “I heard this model is strong,” then make subjective judgments using a few familiar prompts. The problem with this approach is that the sample size is too small, the task distribution is too narrow, the conclusions are not reproducible, and the results are easily misled by a few impressive demos. A more reliable approach is to break down the vague question of “which model is best” into a set of measurable, reproducible technical metrics that align with your business distribution.
It is important to emphasize that model capability is a multi-dimensional vector, not a single scalar. A model that leads in PhD-level scientific reasoning does not necessarily lead in fixing bugs in real code repositories; a model with a large context window does not necessarily perform better at recalling key information in long documents. Therefore, this article does not declare a “single winner.” Instead, it provides an evaluation framework: first define the dimensions, then define the metrics, and finally make weighted decisions using business samples.
2. Eight Core Evaluation Dimensions and Metric Design
2.1 Reasoning and Academic Capability
This dimension focuses on complex logic, scientific reasoning, and research-level problems. The industry commonly uses PhD-level science Q&A benchmarks (questions written by domain experts, resistant to retrieval, and requiring multi-step derivation) as a reference. Three points need attention during evaluation: first, whether the questions have been contaminated by training corpora; second, whether a unified prompt template and decoding parameters are used; third, whether the mean and variance across multiple runs are reported, rather than the single best result.
From an engineering perspective, it is recommended to build an internal question bank of 100–300 items covering derivation problems in your domain, and record two metrics: “answer accuracy” and “reasoning chain consistency.” A sample evaluation loop is shown below:
results = []for item in internal_benchmark:out = call_model(prompt=build_prompt(item), temperature=0)results.append({"id": item.id,"correct": judge(out, item.answer),"steps_ok": check_reasoning(out, item.key_steps),})report(mean_accuracy(results), variance(results))
2.2 Coding and Software Engineering Capability
Coding capability cannot be judged by algorithm problems alone. Real development scenarios are closer to “given repository context and a bug description, produce a mergeable patch.” Therefore, evaluation should include three layers: first, function-level generation and unit test pass rate; second, repository-level bug fix pass rate; third, integration smoothness with coding assistants, terminal agents, and code review workflows.
Recommended metrics include: first-pass patch acceptance rate, number of repair rounds, average interaction latency, and cost per task. For long-context repository tasks, additionally observe “whether cross-file references are used correctly,” which often predicts real-world adoption better than single-point accuracy.
2.3 Writing and Long-Form Output Capability
The writing dimension looks at three things: natural language fluency, style controllability (whether format and tone constraints can be consistently followed), and the length that can be generated in a single pass. Long-output capability is especially critical for report writing, contract review, and code documentation generation, because it determines whether you need additional segmentation and concatenation logic.
The evaluation can use a “same topic, multiple styles” test: the same material is used to request a formal report, a bullet list, and a conversational explanation, and humans score them on three criteria: factual consistency, structural completeness, and style fit. Factual consistency should be treated as a veto item.
2.4 Multimodal Capability
Multimodality should distinguish between “native unified modeling” and “bolt-on concatenation.” The former is usually more stable in mixed understanding of images, text, audio, and video; the latter may be more flexible on specific single-modality tasks. Evaluation should separately test: image detail localization, chart and table parsing, video temporal understanding, audio transcription and speaker diarization, and record scores for each sub-item rather than giving a vague overall score.
2.5 Context Window and Real-Time Information
Context length is “capacity,” while effective recall is “quality.” It is recommended to use a variant of the “needle in a haystack” test: embed multiple conflicting or cross-validation-requiring facts in a long text, and observe whether the model can locate them and draw correct conclusions. At the same time, evaluate real-time information acquisition capability, distinguishing three forms: “built-in retrieval,” “tool-call retrieval,” and “reliance on parametric memory only,” and record citation traceability.
2.6 Tool Calling and Agentic Capability
The core of agentic capability is the “plan–call–verify–fallback” loop. Evaluation should examine: function selection accuracy, argument-filling accuracy, retry strategy after failures, and completion rate of multi-step tasks. A minimal loop example can illustrate the evaluation points:
{"tool": "search", "args": {"q": "..."}}{"tool": "read_file", "args": {"path": "..."}}{"tool": "run_tests", "args": {"target": "..."}}
By counting the success rate and average number of rounds for each tool, you can identify the model’s weak links in the agent chain.
2.7 Cost, Latency, and Stability
Enterprise adoption must account for cost per task, time to first token, overall latency, and rate-limiting behavior. It is recommended to use “total cost per thousand business tasks” as the measure, incorporating input/output length distributions, retry rates, and cache hit rates. Stability also includes a regression testing mechanism after version updates: every time the model version changes, the internal benchmark should be run automatically to prevent capability regression.
2.8 Ecosystem Integration and Compliance Governance
The integration dimension examines whether the model can be embedded into existing office suites, code hosting workflows, messaging collaboration, and automation orchestration platforms; the governance dimension examines permission isolation, log auditing, data residency, content safety, and observability. Here it is recommended to use generic capability categories, such as object storage, message queues, container platforms, log services, and monitoring/alerting, avoiding binding to any single vendor’s proprietary terms.
3. Reproducible Evaluation Engineering: Turning Subjective Feelings into Data
It is recommended to build evaluation as a pipeline: versioned sample sets, versioned prompt templates, fixed parameters, results stored in a database, and visualized dashboards. A sample structure is shown below:
benchmark/datasets/ # versioned samplesprompts/ # templates and constraintsrunners/ # unified invocation and retriesjudges/ # rule checks + model review + human spot checksreports/ # per-dimension scores and regression comparisons
The key principle is “same-distribution sampling”: the task types, length distribution, and language distribution of the evaluation set should be as close as possible to real online traffic; otherwise, high scores cannot translate into business value.
4. Selection Decision Framework: Weight by Scenario, Not Pursuit of an All-Round Champion
Normalize the scores of the eight dimensions, apply business weights and sum them, then set hard thresholds (such as factual consistency, compliance requirements, and data residency). An actionable process is:
- Clarify the scenario and hard constraints;
- Run internal samples to obtain per-dimension scores;
- Set weights and calculate the weighted total score;
- Run a small-traffic canary and observe real pass rates and costs;
- Establish a regression mechanism and re-test whenever the version updates.
5. Common Pitfalls and Best Practices
Pitfall 1: Only looking at public leaderboards. Leaderboard questions may be contaminated and inconsistent with the business distribution. Pitfall 2: Testing only once. Both the model and the inference configuration change, so regression is mandatory. Pitfall 3: Ignoring long-output stability, leading to truncation or contradictions in later sections. Pitfall 4: Equating context length with effective understanding without recall testing. Pitfall 5: Ignoring cost and governance, leading to successful pilots but failed scaling.
Best practices can be summarized as: complete dimensions, computable metrics, same-distribution samples, reproducible parameters, regression-capable results, and explainable decisions. If you need to quickly build an evaluation and canary environment, you can build a unified evaluation pipeline based on the general cloud capabilities provided by Baidu AI Cloud (such as container platforms, object storage, log services, and monitoring/alerting), thereby upgrading model selection from “experience-based judgment” to “data-driven engineering decisions.”
