How to Choose an LLM: Trade-offs Between Context, Multimodality, and Cost
Selecting a large language model requires balancing context window size, multimodal capability, speed, and cost. This article breaks model evaluation into six assessment items mapped to four trade-off dimensions, provides a weighted scoring table for coding and document-processing scenarios, and explains how to set measurable constraints so test results can be clearly judged as pass or fail.
Define the Scenario and Constraints First
Before evaluating any model, answer three questions: What is the primary task? Which conditions are non-negotiable? What is the budget ceiling? Coding and document processing are two very different scenarios. Coding prioritizes code correctness, the ability to locate information within long codebases, and response speed. Document processing prioritizes long-text comprehension, multi-document Q&A, and long-term cost. Lumping both sets of requirements into a single checklist usually produces conclusions with little reference value.
Constraints should be written as verifiable items, for example: “a single request must accommodate a code repository snippet of roughly 150,000 tokens,” “P95 time-to-first-token must not exceed the team’s defined threshold,” or “monthly spend must stay within the team’s approved budget.” Without quantified constraints, there is no way to determine whether a test result passes or fails.
1. Six Assessment Items Mapped to Four Trade-off Dimensions
This article breaks model selection into six assessment items: context window, multimodal input, reasoning mode, response speed, stability and consistency, and cost and subscription. These are grouped into four trade-off dimensions:
| Trade-off Dimension | Corresponding Assessment Item | Core Question |
|---|---|---|
| Context | Context window | How much material fits in one request, and can the model locate information accurately once it fits |
| Multimodality | Multimodal input | Can the model accurately read screenshots, charts, and flow diagrams |
| Speed | Reasoning mode, response speed | Are latency and depth of reasoning acceptable |
| Cost | Cost and subscription | Is long-term spending within budget |
Stability and consistency do not belong to the four dimensions but are scored separately. If results for the same task vary widely, using the model as a primary tool will require more manual review.
2. Scoring Table
The weights below are a suggested starting point; teams should adjust them based on their own business needs. Thresholds should also be set by the team according to business requirements—this article does not provide universal values.
| Assessment Item | Weight (Coding) | Weight (Documents) | Must-Test Items | Pass Criteria |
|---|---|---|---|---|
| Context window | 25% | 35% | Long codebase Q&A, mid-context information retrieval, multi-document Q&A | Retrieval accuracy at the agreed input length meets the threshold |
| Multimodal input | 10% | 15% | Error screenshots, architecture diagrams, images containing tables | Key-element recognition accuracy meets the threshold; the rate of fabricated content is acceptable |
| Speed (reasoning and response) | 30% | 20% | Time-to-first-token, output throughput, end-to-end latency | P95 metrics meet interaction requirements |
| Cost and subscription | 20% | 25% | Per-task cost, monthly cost estimate | Does not exceed the monthly budget |
| Stability and consistency | 15% | 5% | Pass rate and standard deviation across multiple runs of the same task | Pass rate no lower than the threshold; standard deviation within an acceptable range |
In coding scenarios, speed and stability together account for 45%, because code completion and debugging are sensitive to both latency and correctness. In document scenarios, context and cost together account for 60%, because document tasks involve large input volumes, and window utilization efficiency directly determines cost.
3. Test Script Design
Every test run must record the measurement conditions; otherwise, the conclusions cannot be reproduced or verified.
