How to Choose a Large Language Model: Capability Boundaries and Hallucination Control

    This guide explains why choosing a large language model is a matter of scenario fit rather than leaderboard rankings. It breaks capability evaluation into measurable dimensions—factual accuracy and hallucination rate, instruction following and tool use, quota and engineering constraints, and multimodal spatial understanding—and outlines a practical selection workflow built on a custom business test set, automated scoring rules, canary rollout, and quarterly re-testing. It also covers risk-control principles such as traceable conclusions, human review of high-risk output, and default skepticism toward open-ended questions.

    1. The Real Problem: Scenario Fit, Not Rankings

    Many developers start model selection by asking “which model is the strongest,” but the question itself has no constraints. In a real project, model capability is only one decision variable. You also have to weigh call quota, response stability, context length, structured output support, and data compliance requirements. Feedback from an earlier discussion—“the capability is on par with competitors, but the quota is less than a quarter of theirs”—illustrates a common misconception: treating a lead on general-purpose leaderboards as a direct gain for your own business scenario.

    A more sensible approach is to segment by scenario first. If your workload is mainly creative writing, brainstorming, or conversational companionship, how pleasant the model’s expression feels carries more weight. If the task involves factual retrieval, code generation, or structured extraction, accuracy and reproducibility come first. These two categories often favor opposite model traits, which is the root cause of sharply split user reviews for the same set of models.

    2. Breaking Down Capabilities: Turning “Feel” into Measurable Metrics

    2.1 Factuality and Hallucination Rate

    Hallucination is a shared problem across all large models today; the difference lies only in how often it triggers and how it manifests. The typical high-risk case is an open-ended question: when no definite answer exists, some models tend to produce a complete narrative with high confidence. It reads clearly and coherently, yet contains fabricated details. The engineering response is not to swap models but to introduce retrieval augmentation that constrains answers to traceable source material.

    A simplified validation flow:

    1. def grounded_answer(question, retrieve, llm):
    2. docs = retrieve(question) # Retrieve traceable passages
    3. if not docs:
    4. return "Insufficient evidence to answer" # Explicit refusal beats fabrication
    5. prompt = f"Answer only from the material below; state explicitly if information is missing:\n{docs}\nQuestion: {question}"
    6. return llm(prompt)

    The key design point is to allow refusal. Tracking the refusal rate as a monitoring metric usually reduces business risk more effectively than chasing answer completeness.

    2.2 Instruction Following and Tool Use

    The success or failure of complex tasks usually depends on whether the model follows constraints strictly, not on its prose quality. When evaluating, build test cases with explicit prohibitions—for example, “do not use a certain parameter” or “must output fixed fields”—and observe whether the model oversteps. In the earlier discussion, the same technical question produced opposite conclusions at different reasoning tiers, a typical sign of instruction-following instability: higher reasoning tiers tend to check documentation, while lower tiers are more likely to give agreeable answers that follow the assumptions embedded in the question.

    2.3 Quota and Engineering Constraints

    Quota directly shapes architecture. When quota is tight, workable strategies include: routing high-frequency simple requests to a lightweight model and escalating complex ones; adding semantic caching for repeated questions; and splitting long documents into batches for processing and aggregation. Tiered routing can typically spread consumption significantly without sacrificing quality on critical paths.

    2.4 Multimodal and Spatial Understanding

    Mixed image-and-text tasks demand strong spatial-relation understanding. A common failure mode in testing: some local shape in the image genuinely resembles another object, but the overall semantics are completely different; a model that latches onto local features alone will produce a wrong localization. The reliable practice is to require the model to output coordinates or region descriptions for key conclusions and run a second cross-validation, rather than accepting an unverifiable natural-language explanation.

    3. A Practical Selection Workflow

    1. Build a set of 30 to 50 of your own business test cases covering four categories: factual Q&A, structured extraction, code, and multimodal.
    2. Define an automated judgment rule for each case, such as field completeness rate, citation traceability rate, and number of prohibited-item violations.
    3. Compare models horizontally under the same prompt and the same temperature setting, recording failure types rather than scores alone.
    4. Roll out to a small traffic canary, continuously collecting refusal rate and manual correction rate.
    5. Re-test every quarter. Models iterate fast, and historical conclusions typically stay fresh for only about one quarter.

    4. Risk-Control Principles

    Whichever general-purpose large model you choose, three bottom lines apply: key conclusions must be traceable; high-risk output must be reviewed by a human; and open-ended questions with no definite answer should be met with default skepticism. Probabilistic model output has no 100% accuracy rate. Keeping final judgment in the hands of the process and the responsible owner is the prerequisite for stable delivery. If you need stronger control, you can use general-category capabilities on platforms such as Baidu AI Cloud—for example log service, monitoring and alerting, and object storage—to fill in the audit and record-keeping steps.