Large Language Model Selection: Core Evaluation Dimensions and Practices

    Choosing a large language model (LLM) for production is difficult when vendor claims and leaderboard rankings look alike. This article breaks model evaluation into five dimensions—factual consistency, instruction following, self-correction communication, context handling in long conversations, and overall experience—and shows how to turn them into repeatable test cases, structured constraints, automated validation, and monitoring so selection decisions rest on measurable evidence rather than demos.

    1. Why Reputation Cannot Replace Evaluation

    Teams face a familiar problem in real deployments: the number of available LLM services keeps growing, marketing claims are highly homogeneous, and decisions based only on brand recognition, leaderboard position, or a polished demo often fail in production.

    A typical example: asked a knowledge question that requires distinguishing a posthumous name from a temple name, a model returned an incomplete list and mixed rulers who held temple names into the list of posthumous names. More importantly, after the user had already pointed out the conceptual difference, the model did not clarify the conclusion for the user; it launched into a long self-justification unrelated to what the user asked.

    This is not simply a matter of “insufficient knowledge.” It exposes three engineering risks at once: unclear knowledge boundaries, instruction-following drift, and misaligned error-correction communication. Evaluation therefore has to shift from watching demos to defining dimensions, running test cases, and checking stability.

    2. Dimension One: Factual Consistency and Knowledge Boundaries

    Factual consistency is how closely model output matches accepted facts, and how honestly the model represents the limits of its own knowledge. Split test cases into three layers:

    • Stable common knowledge: concept definitions and basic classifications, where accuracy should be near perfect.
    • Long-tail knowledge: obscure entities and fine-grained domain entries, where the focus is recall completeness and whether adjacent concepts get confused.
    • Out-of-boundary questions: the model should state uncertainty explicitly instead of stitching together plausible-looking but wrong content.

    A sketch of an evaluation record:

    1. case = {
    2. "prompt": "List ... and label which category each item belongs to",
    3. "expect": {"recall": "complete", "label_accuracy": "no confusion between adjacent concepts"},
    4. "actual": {"recall": "incomplete", "label_accuracy": "category mixing occurred"},
    5. "verdict": "fail",
    6. "risk": "blurred knowledge boundary"}

    The engineering principle: do not rely on model memory for long-tail knowledge. Use retrieval augmentation to chunk authoritative material into the context, so the model is responsible for organizing and expressing information rather than reciting it.

    3. Dimension Two: Instruction Following and Output Constraints

    Instruction following measures whether the model answers strictly within the given constraints: item counts, output format, role, and what not to do. The incomplete list in the example above is fundamentally a failure to meet count and completeness constraints.

    Make constraints explicit and structured instead of burying them in a long natural-language sentence:

    1. {
    2. "task": "categorized enumeration",
    3. "constraints": {
    4. "min_items": 5,
    5. "output_format": "table",
    6. "must_not": ["items from other categories"]
    7. },
    8. "self_check": ["re-verify category assignment item by item", "state explicitly when the count is insufficient"]
    9. }

    Three practices are worth standardizing: put hard constraints first and express them in a verifiable form; require the model to run an internal check before producing the conclusion; and apply schema validation to structured output, retrying or falling back to human review when validation fails.

    4. Dimension Three: Communication Quality of Self-Correction

    This is the most revealing point in the original example. A model noticing that it may be wrong is a valuable capability. The problem is that it treated the correction process as a private draft and pushed it straight to the user—verbose and off-target. When the user already understands the conceptual difference, what they need is one clear conclusion with its basis, not a transcript of the model’s internal reasoning.

    The practical fix is to separate internal checking from the external conclusion:

    1. [internal] Review: category assignment, concept definitions, count completeness
    2. [external] Conclusion: the previous list mixed categories and has been corrected to ...; the basis is ...

    Evaluate this dimension with three measures: whether the correction addresses the user’s actual request, whether the conclusion comes first, and whether redundancy is controlled. Any implementation that outputs its self-justification verbatim should be recorded as a communication defect, not as being “more rigorous.”

    5. Dimension Four: Context Organization and Long-Conversation Stability

    In multi-turn settings, the model must distinguish what the user already knows from the user’s new request, and avoid repeating explanations. Maintain session state explicitly in prompts and flows, for example with a simple structure that records known premises:

    1. session = {"known_by_user": ["concept A and concept B are different"], "pending": ["provide the corrected full list"]}

    Combine this with retrieval augmentation, result caching, and segmented generation to reduce information drift in long contexts. For high-concurrency workloads, use a message queue to decouple asynchronous tasks, and use logging and monitoring with alerting to track constraint hit rates and the distribution of failure causes for each request.

    6. Dimension Five: Quantifying Overall Experience

    Overall experience is not a subjective feeling; it decomposes into measurable items: task completion rate, constraint hit rate, factual error rate, redundancy, time to first token and end-to-end latency, and fallback quality after failures. Set weights per business scenario—raise the weight on factual consistency for knowledge Q&A, on constraint hit rate for extraction and classification, and on redundancy and tone consistency for customer support.

    A simplified weighted example:

    1. score = 0.35 * factual_consistency + 0.25 * constraint_hit + 0.15 * correction_communication + 0.15 * stability + 0.10 * latency

    7. Implementation: Making Evaluation a Sustainable Engineering Capability

    Selection is not a one-time action but continuous regression. Four steps: build a test set from real business cases covering the stable, long-tail, and boundary layers; structure the constraints and connect them to automated validation; separate internal checking from external expression to control redundancy; and use monitoring, alerting, and logging to watch for metric drift and run regular regressions.

    To run this flow in your own environment, Baidu AI Cloud can host evaluation tasks on its container platform, store cases and results in object storage, and use a message queue for task scheduling, forming a reusable evaluation pipeline. The conclusion is not about declaring one vendor “the best,” but about engineering the evaluation dimensions: once factual consistency, instruction following, correction communication, and stability are all measurable, selection and tuning have a reliable basis.