LLM Selection Guide: Capability Dimensions, Deployment Models, and Governance

    This guide explains how to select large language models by starting with a task profile rather than leaderboards. It covers capability dimensions, evaluation, cost, deployment patterns, and governance so teams can choose replaceable, observable, and controllable architectures.

    LLM Selection Guide: Capability Dimensions, Deployment Models, and Governance

    1. Start with a task profile, not a model leaderboard

    A common mistake in large language model (LLM) selection is to collect benchmark comparisons and pick a model from the ranking. Leaderboards only show relative results on specific datasets. They do not answer whether a workload is usable, whether cost is controllable, or whether production will be stable. A better approach is to build a task profile first and break business needs into dimensions that can be evaluated, constrained, and governed.

    A complete task profile should include at least:

    1. Task type: Q&A, summarization, information extraction, code generation, complex reasoning, multimodal understanding, or multi-step agent execution.
    2. Input/output characteristics: short text, long documents, code repositories, images, audio, or video as input; natural language, structured data, function-call arguments, or action steps as output.
    3. Quality requirements: accuracy, recall, factual consistency, format compliance, tool-call success rate, and similar metrics.
    4. Performance constraints: time to first token, end-to-end latency, throughput, concurrency, and timeout/retry policy.
    5. Cost bounds: cost per call, cost per task, monthly budget, and peak versus off-peak traffic.
    6. Deployment and compliance: whether hosted APIs are allowed, whether private deployment is required, and whether sensitive data, audit logs, regional limits, and access isolation apply.
    7. Operability: canary releases, version rollback, prompt management, evaluation-set regression, and online monitoring and alerting.

    Abstracting “different needs imply different candidate priorities” yields capability combinations rather than a product list:

    • General reasoning, complex development, and computer-use tasks: prioritize strong reasoning, stable tool use, multi-step planning, error recovery, and structured output.
    • Complex knowledge work and long-horizon coding: prioritize long-context consistency, repository-level understanding, cross-file dependency analysis, task decomposition, and persistent memory.
    • Multimodal and platform integration: prioritize image, audio, and video understanding, plus integration cost with existing platforms, data flows, and business systems.
    • Efficient APIs and cost control: prioritize throughput, latency, cache hit rate, batching, quota management, and cost per successful task.
    • Chinese, multimodal, and long context: prioritize Chinese corpus quality, long-document retrieval augmentation, multimodal alignment, and complex instruction following.
    • Efficient agents: prioritize function calling, state management, tool orchestration, observability, permission control, and failure retry.
    • Open weights and self-hosted deployment: prioritize weight availability, license constraints, inference-framework fit, quantization, hardware utilization, and private operations cost.

    This capability map is more stable than a product ranking because it does not depend on a specific model generation. It reduces selection to technical capability and engineering constraints.

    2. Core capability dimensions

    2.1 Reasoning and tool use

    Complex reasoning and development are rarely single-turn generation. They form a loop: understand the problem, plan, call tools, check results, and revise. Evaluate:

    • Whether multi-step reasoning stays stable and does not drop constraints mid-task
    • Whether tool arguments are correct and error returns are recognized and retried
    • Whether structured output is reliable against JSON Schema or business protocols
    • Whether long tasks stay aligned with the original goal
    • Whether ambiguous instructions trigger clarification instead of fabricated facts

    Do not rely on single-item accuracy. Use tasks with a tool environment (simulated queries, writes, file operations, state changes) and measure completion rate, average steps, tool misuse rate, and human takeover rate.

    2.2 Complex knowledge work and long-horizon coding

    The difficulty is long context, many dependencies, and long cycles. Focus on:

    • Stable recall of key facts in long context
    • Correct tracking of cross-file and cross-module dependencies
    • Generated code that compiles, tests, and remains maintainable
    • Adherence to existing style and constraints
    • Consistency of interfaces, data structures, and behavior across multi-turn edits

    Do not evaluate only “generate a snippet.” Use near-real repository tasks: bug fixes, tests, refactors, interface migrations, and documentation updates. Metrics should include compile pass rate, test pass rate, regression failure rate, human edit volume, and average repair rounds.

    2.3 Multimodal and platform ecosystem integration

    Multimodal capability is more than image recognition. It includes mixed text-image understanding, table and chart parsing, video temporal understanding, and audio transcription with semantic extraction. Clarify:

    • Whether input modalities cover the business scenario
    • Whether multimodal outputs can combine with text and structured fields
    • Robustness to low-quality images, blurry screenshots, and complex tables
    • Integration cost with data pipelines, object storage, content moderation, and retrieval
    • Support for batch processing and asynchronous jobs

    Platform integration should mean generic capabilities: identity, permission models, audit logs, message queues, object storage, monitoring, and orchestration—not binding to one vendor. For cloud delivery, general compute, containers, object storage, logging, and monitoring (for example categories offered by Baidu AI Cloud) can underpin sample management, batch inference, result archival, and online observability.

    2.4 API efficiency and cost control

    Compare cost per effective task, not unit price alone. Include input/output length, retry rate, cache hit rate, tool-call cost, human review cost, and rework from failures. A generic cost model:

    1. task_cost =
    2. input_token_cost
    3. + output_token_cost
    4. + tool_or_retrieval_cost
    5. + retry_and_rework_cost
    6. + human_review_cost

    Optimization levers:

    • Tiered routing: simple tasks on a low-cost path, complex tasks on a high-quality path
    • Caching: cache stable Q&A, templated summaries, and repeated queries
    • Batching: merge offline requests to raise throughput and lower unit cost
    • Distillation and smaller substitutes: generate training data with a large model, then cover high-frequency simple cases with a smaller model
    • Quantization and inference optimization: in private deployments, raise hardware utilization via quantization, batched inference, and memory optimization
    • Prompt and context compression: drop irrelevant context and raise useful information density

    Illustrative routing:

    1. function choose_route(task, candidates, budget):
    2. feasible = candidates.filter(c =>
    3. c.p95_latency <= task.latency_sla &&
    4. c.context_window >= task.required_context &&
    5. c.compliance_level >= task.compliance_level
    6. )
    7. if feasible.is_empty():
    8. return "escalate_to_human_or_relax_constraint"
    9. return feasible.min_by(c =>
    10. c.estimated_cost(task) +
    11. c.risk_penalty(task) +
    12. c.retry_penalty(task)
    13. )

    The point is to fold latency, context, compliance, cost, and risk into one routing decision—not a specific API or parameter.

    2.5 Chinese, multimodal, and long context

    For Chinese, evaluate more than fluency: knowledge coverage, term consistency, industry phrasing, and special text (classical, policy, legal). For long context:

    • Whether recall of key information is stable by position in long documents
    • Whether conflicting facts across documents are detected
    • Whether long context makes latency and cost unacceptable
    • Whether retrieval augmentation, sectional summaries, and citation tracing are needed

    When multimodal and long context combine, evaluate mixed layout documents, scans, tables, screenshots, and video captions. Evaluation sets should match real traffic, not only clean samples.

    2.6 Agent capability

    Agents are about controllable execution. Examine:

    • Whether tool descriptions are easy for the model to interpret
    • Whether function-call arguments are valid
    • Whether multi-tool orchestration is stable
    • Whether execution state can persist and recover
    • Whether failures can roll back or request human confirmation
    • Whether the full path is observable: prompts, tool inputs, returns, latency, and error codes

    Agents should not hold high-risk write privileges by default. Use least privilege, staged approval, sandboxed execution, and operation audit. For money, permissions, or production data, require a human confirmation step.

    2.7 Open weights and self-hosted deployment

    This path fits strong isolation, cost control, and customization. Assess:

    • Whether the license allows commercial use and redistribution
    • Whether weights are fully available and hardware-specific
    • Maturity of inference frameworks and quantization
    • Throughput, latency, and operations cost after private deployment
    • Completeness of fine-tuning, distillation, and evaluation tooling
    • Sustainability of security patches and version upgrades

    Self-hosting is not automatically cheaper. Include hardware depreciation, cluster operations, model upgrades, hardening, and labor in total cost of ownership.

    3. A reusable evaluation system

    Use three layers: offline evaluation, scenario evaluation, and online canary.

    Offline evaluation quickly maps capability boundaries: general reasoning, code, multimodal, long context, and tool use. Scenario evaluation uses real, de-identified enterprise samples, task-shaped test sets, and pass/fail criteria. Online canary uses small-traffic A/B tests for user satisfaction, task completion, latency, cost, and complaint rate.

    Record structured metadata per sample:

    1. {
    2. "task_id": "case_001",
    3. "capability": "reasoning|code|multimodal|long_context|agent",
    4. "input_length": 0,
    5. "required_context": 0,
    6. "constraints": {
    7. "latency_sla_ms": 0,
    8. "compliance_level": "internal|sensitive|public"
    9. },
    10. "score": {
    11. "accuracy": 0.0,
    12. "format_valid": true,
    13. "tool_success": 0.0,
    14. "stability": 0.0
    15. },
    16. "risk_tags": ["hallucination", "tool_misuse", "data_leak"]
    17. }

    Avoid leakage and overfitting: isolate test sets from prompt-tuning sets, refresh them regularly, and keep hard cases and regression sets. For generative tasks, combine automatic metrics, human review, and business outcomes—do not rely on a single score.

    4. Deployment architecture and governance

    Typical modes are hosted API, private deployment, and hybrid. Hosted APIs are fast to launch and elastic, suited to validation and bursty traffic. Private deployment keeps data under control for sensitive and high-compliance work. Hybrid keeps sensitive tasks private and general tasks hosted, with a unified gateway for routing, audit, and rate limiting.

    Governance should include at least:

    • Access and audit: role-based control of models, tools, and data; full call-chain records
    • Data masking and isolation: mask sensitive fields before they reach the model; isolate test and production
    • Content safety and compliance: filter inputs and outputs; retain audit logs
    • Observability: latency, error rate, token use, tool success, and human takeover
    • Version management: unified control of prompts, evaluation sets, routing policy, and model versions, with canary and rollback
    • SLA and degradation: timeouts, retries, circuit breaking, and fallback paths so a single failure does not take down the business

    5. Delivery roadmap

    Four steps: (1) inventory business tasks and build a capability map; (2) run a small POC on de-identified samples for quality, cost, and compliance; (3) canary a low-risk scenario and stand up monitoring and regression; (4) route by task tier and expand to complex and agent workloads. Follow “evaluate first, route second, scale last” so short-lived leaderboards or one-off demos do not drive the decision.

    LLM selection is an engineering decision, not a product ranking. Unify task profiles, capability dimensions, evaluation, cost models, deployment architecture, and governance to choose a fit for the business and keep the stack replaceable, observable, and controllable as models change.