Three Key Dimensions for Evaluating Large Language Models

    Choosing a large language model for real work is no longer about finding a single top score. This article outlines a scenario-based evaluation framework across three dimensions: trustworthy output and task completion, professional reasoning and code generation, and cost, latency, and engineering control. It also describes a reproducible evaluation pipeline and practical model-selection patterns.

    As large language models move into everyday use, the core question for developers and enterprises is no longer whether a usable model exists, but how to judge which kind of model fits a given business. In the past, teams often chose by a single leaderboard or an overall score. Real workloads, however, depend on several capabilities at once: stable and reliable output, multi-step task execution, an understanding of code and scientific problems, and a workable balance among cost, latency, and engineering control. A more practical approach is not to hunt for a fixed “strongest list,” but to build an evaluation framework tied to the scenario.

    1. Trustworthy Output and Closed-Loop Task Execution

    Hallucination control: from “sounds plausible” to “can be checked”

    One of the most basic and important model capabilities is reducing hallucination. Hallucination is not only “a wrong answer.” It is content that looks fluent but cannot be verified when the model lacks sufficient evidence. In customer support, knowledge retrieval, report generation, and code explanation, hallucination directly increases business risk.

    Evaluating hallucination control is not about whether an answer “sounds right.” It is about three abilities:

    • Factual consistency: whether the answer stays consistent with the given materials, context, or tool results;
    • Verifiability: whether the model provides evidence, cites sources, or states uncertainty clearly;
    • Boundary awareness: whether, when evidence is insufficient, it can reasonably refuse, clarify conditions, or ask for more information.

    A practical method is to build three sample types: questions with sufficient evidence, questions with conflicting evidence, and questions with missing evidence. For sufficient evidence, focus on accuracy. For conflicting evidence, focus on whether the model detects the contradiction. For missing evidence, focus on whether it invents an answer anyway. Useful signals include factual error rate, citation hit rate, over-refusal rate, and clarification-question rate.

    Agent task planning: from a single reply to multi-step execution

    If hallucination control decides whether a model can be trusted, agent task planning decides whether it can finish the job. In enterprise automation, operations assistance, data analysis, and approval workflows, the model often has to break a complex goal into steps and call different tools to close the loop.

    Evaluation should cover four stages:

    1. Goal understanding: whether it correctly identifies the objective, constraints, and deliverable;
    2. Plan decomposition: whether it produces a reasonable, executable, low-redundancy sequence of steps;
    3. Tool selection: whether it chooses the right retrieval, computation, storage, or messaging capability for the task;
    4. Failure recovery: whether, when a step fails, it can retry, roll back, or change strategy.

    A typical agent task might be “locate an anomaly from logs and produce a remediation suggestion.” Do not score only the final answer. Also record whether the plan is sound, whether steps are traceable, and whether failures can be recovered. Metrics can include task completion rate, average number of execution steps, tool-call accuracy, recovery success rate, and human takeover rate.

    Illustrative evaluation code:

    1. def evaluate_agent(model, task_cases):
    2. results = []
    3. for case in task_cases:
    4. plan = model.plan(case.goal, case.constraints)
    5. trace = execute_plan(plan, case.tools)
    6. score = {
    7. "goal_hit": check_goal(case.goal, trace.final_output),
    8. "plan_quality": review_plan(plan),
    9. "tool_accuracy": check_tool_usage(trace),
    10. "recovery": check_recovery(trace)
    11. }
    12. results.append(score)
    13. return aggregate(results)

    The point of this pseudocode is not a specific implementation. It shows that agent evaluation must extend from the final answer to the full execution trace.

    2. Professional Reasoning and Code Generation

    Programming ability: correct delivery, not just generated code

    In software development, programming ability shows up in code generation, bug fixing, test completion, API explanation, log analysis, and terminal-command assistance. A common mistake is to treat any generated snippet as strong programming skill. Useful programming ability has several layers:

    • Syntactic correctness: whether the code can be parsed or executed;
    • Functional correctness: whether it meets inputs, outputs, and boundary conditions;
    • Maintainability: whether naming, structure, and error handling are clear;
    • Security: whether there are risks such as injection, privilege escalation, or leakage of sensitive information;
    • Context understanding: whether generation respects the existing project structure, dependencies, and coding conventions.

    For terminal-oriented programming or requirements written in natural language, also check how well the model recovers intent from informal wording. Users often describe needs in business language rather than a complete technical specification. The model then has to map business meaning to a technical implementation.

    A practical mix is “task + unit tests + static checks + human review.” Tasks should not be limited to standard algorithm problems. They should also cover real engineering work such as log parsing, configuration conversion, script repair, data cleaning, and API adaptation. Metrics can include test pass rate, first-fix success rate, code-review issue count, security-scan alert count, and average generation latency.

    Scientific and mathematical reasoning: multi-step constraints and boundary conditions

    The value of scientific and mathematical reasoning is handling problems that need multi-step derivation, unit conversion, formula application, and constraint satisfaction. Unlike open-ended Q&A, these tasks usually have a clearer correctness standard, but they also expose weaknesses in detail.

    Avoid relying only on familiar template problems. Add variants and distractors, for example:

    • Change units and see whether the model converts them incorrectly;
    • Add a hidden constraint and see whether the model drops a condition;
    • Introduce similar but distinct concepts and see whether definitions are confused;
    • Require intermediate steps and check whether the reasoning chain is consistent.

    Relevant metrics include final-answer accuracy, intermediate-step plausibility, unit-error rate, missed-constraint rate, and explanation completeness. In enterprise settings, also check whether the model turns a result into an actionable recommendation rather than stopping at “a calculated number.”

    3. Cost, Latency, and Engineering Control

    Cost is total cost of ownership, not a unit price

    Many selection discussions focus only on the price of a single call. In a real system, cost also includes retries, human review, cache hit rate, context length, output length, and the cost of rolling back failures. A cheaper model that fails often can raise total cost. A more expensive but stable model can lower overall spend.

    Cost evaluation should at least cover:

    • Call cost: base consumption from input and output length;
    • Retry cost: repeated calls caused by failure or low-quality output;
    • Human cost: the share of outputs that need correction, review, or takeover;
    • Infrastructure cost: supporting spend for inference, logging, monitoring and alerting, and object storage;
    • Opportunity cost: the effect of high latency or poor stability on the user experience.

    Latency, throughput, and stability decide whether a system can go live

    In interactive applications, time to first token and full response time directly affect user experience. In batch workloads, throughput and concurrency stability decide whether jobs finish on time. Separate online and offline evaluation:

    • Online scenarios emphasize low latency, streaming output, timeout control, and degradation strategies;
    • Offline scenarios emphasize batch throughput, task queues, failure retries, and result archival.

    Engineering control also includes structured output, permission isolation, audit logs, staged rollout, and rollback. For enterprise use, a model must not only answer; it must be manageable, traceable, and governable.

    4. Building a Reproducible Evaluation Pipeline

    To avoid selection by intuition, use a layered pipeline. First, build a basic capability set covering factual Q&A, long-document summarization, code generation, mathematical reasoning, and instruction following. Second, build a business scenario set from real user questions, historical tickets, repository snippets, and domain documents. Third, build an adversarial set aimed at missing evidence, prompt injection, boundary conditions, and high-risk requests.

    The process has four steps:

    1. Freeze samples: fix the test set and scoring rules so versions remain comparable;
    2. Automatic scoring: compute quantifiable metrics in batch;
    3. Human sampling: have experts review open-ended answers, code quality, and task plans;
    4. Staged validation: observe real behavior on a small share of traffic before widening rollout.

    An illustrative flow:

    1. def model_selection_pipeline(candidate_models, datasets):
    2. report = {}
    3. for model in candidate_models:
    4. basic = run_tests(model, datasets.basic)
    5. business = run_tests(model, datasets.business)
    6. adversarial = run_tests(model, datasets.adversarial)
    7. cost = estimate_cost(model, datasets.business)
    8. report[model.id] = {
    9. "quality": weighted_score(basic, business, adversarial),
    10. "cost": cost,
    11. "latency": measure_latency(model),
    12. "stability": measure_stability(model)
    13. }
    14. return rank_by_scenario(report)

    The point of this pipeline is to make results serve the scenario, not to produce an abstract overall champion.

    5. Selection Guidance for Production Use

    In practice, there is no fixed answer to “the best three models.” It is more useful to group candidates into three capability profiles:

    • Trustworthy execution: strong at fact checking, task planning, and closed-loop workflows; suited to knowledge assistants, automated operations, and complex business processes;
    • Professional reasoning: strong at code, mathematics, and scientific problems; suited to development assistance, data analysis, and specialized computation;
    • Balanced engineering: a workable balance of cost, latency, stability, and general ability; suited to large-scale online services and reuse across scenarios.

    Most organizations will not rely on a single model. A common pattern is “primary model + supporting model + routing”: simple requests take a lower-cost path, complex tasks take a higher-reliability path, and high-risk cases add human review. Shared evaluation, logging, and monitoring make it possible to keep improving the balance among cost, quality, and experience.

    Overall, model selection is shifting from leaderboard-driven choices to evaluation-driven and scenario-driven choices. Only when hallucination control, agent planning, professional reasoning, cost efficiency, and engineering governance are assessed in one framework can teams build large-model applications that are deployable, evolvable, and trustworthy.