Evaluating Multimodal LLMs: Speed, Recognition Accuracy, and Model Selection
This article provides a systematic framework for evaluating the speed and multimodal capabilities of large language models. It breaks down inference performance into time-to-first-token and output throughput, compares native multimodal architectures with module-based pipelines, and outlines a reproducible testing methodology for image recognition accuracy. The guide also covers API integration practices, a batch evaluation workflow, and a practical decision framework for model selection, helping development teams move from subjective impressions to measurable, data-driven comparisons.
1. Why a Systematic Evaluation of Model Speed and Multimodal Ability Matters
Large language model release cycles are becoming shorter, and each new version often adjusts three things at once: response speed, input modalities, and output quality. For developers, this means every update has the potential to impact user experience and cost structure. Judging a model based on a few manual conversations is unreliable—conclusions are easily skewed by prompt wording, network conditions, and the selection of test samples.
Some newer models are still in internal preview phases, and their endpoint URLs, rate limits, and model identifiers may change. Before a model is officially released, it is well suited for establishing a standardized evaluation workflow. Teams can record evaluation results as part of a model selection profile and reuse the process directly when future versions are released.
The evaluation framework described in this article applies to any large model service that supports text and image input, independent of any single vendor’s proprietary interface.
2. Breaking Down the Evaluation Dimensions
2.1 Inference Speed: Differentiating Time to First Token from Output Throughput
“Fast” is a vague claim. From an engineering perspective, speed should be split into two metrics:
- Time to First Token (TTFT): The duration from sending a request to receiving the first output fragment. This directly drives a user’s perception of responsiveness. It is affected by network round trips, queueing, prompt length, and the model’s prefill phase.
- Output throughput (Tokens Per Second): The number of tokens generated per second during the decoding phase. This determines the total time required to produce long-form output and is influenced by model size, inference framework, and server-side load.
Both metrics should be recorded separately. Input length, output length, and concurrency must be fixed across tests; otherwise, comparisons between models are meaningless. Also note that the number of chunks returned by a streaming interface is only an approximation of the token count. To measure precisely, use the usage fields provided by the service provider.
2.2 Native Multimodal Support: Understanding Two Technical Approaches
Multimodal capabilities are typically implemented in one of two ways:
- Modular pipeline: A separate vision component (such as an OCR engine or image captioning model) precedes the language model. The image is converted to text first, then processed by the LLM. The advantage is that each module can be swapped independently. The drawback is that information can be lost during conversion—for example, row-column relationships in tables or color encoding in charts.
- Native multimodal architecture: The model is trained on text and images simultaneously, with images participating in inference within a unified representation space. This approach typically preserves more layout and spatial information but places higher demands on training data and compute.
For application developers, the value of a native multimodal model lies in reducing pipeline stages. A task that previously required “extract, structure, then reason” can potentially be collapsed into a single call. That does not mean modular pipelines are obsolete. In cost-sensitive scenarios that only need fixed fields extracted, a dedicated recognition module may still be the better choice.
2.3 Image Recognition Accuracy: Building a Reproducible Test Set
Test set design is critical to accuracy evaluation. Group images by type, and include samples of varying difficulty within each group:
| Sample Type | Typical Content | Key Assessment Focus |
|---|---|---|
| Structured tables | Financial reports, statistical data sheets | Row-column correspondence, numeric reading, merged cells |
| Documents and receipts | Invoices, scanned contracts | Small font text, stamp occlusion, field localization |
| Charts | Line charts, bar charts | Axis reading, trend interpretation, legend matching |
| People and scenes | Everyday photos, ID photos | Attribute recognition, object counting, spatial relationships |
The following metrics are recommended for evaluation:
- Field accuracy = number of correctly identified fields / total number of annotated fields
- Completeness recall = number of annotated fields covered by the model output / total number of annotated fields
- Consistency = the proportion of identical outputs across repeated requests for the same sample, measuring output stability
Annotations should be completed independently by two people, with disagreements adjudicated by a third reviewer. This reduces the impact of annotation error on the final conclusions.
3. Integration Configuration and Engineering Practices
3.1 API Key and Configuration Management
When integrating any model service, follow these principles:
- Endpoint URLs, model identifiers, and API keys should be injected via environment variables or a dedicated secret management service. Never hardcode them into source code or logs.
- Model identifiers should be decoupled from business configuration so versions can be switched without code changes.
- For model identifiers that carry a version number or an expiration date, confirm their lifecycle before production use and plan a fallback strategy.
export LLM_BASE_URL="https://your-provider.example.com/v1"export LLM_API_KEY="<retrieved from your secret manager>"export LLM_MODEL_ID="<model identifier to be evaluated>"
3.2 A Unified Call Wrapper
It is recommended to build a thin wrapper around model calls in your business code. This allows you to switch models or providers by changing configuration only, without touching the business logic. The example below shows how to capture time-to-first-token and total request duration simultaneously. Note that endpoint paths and field names follow the provider’s documentation; the example only demonstrates a common structure.
import osimport timeimport requestsBASE_URL = os.environ["LLM_BASE_URL"]API_KEY = os.environ["LLM_API_KEY"]MODEL_ID = os.environ["LLM_MODEL_ID"]def timed_chat(prompt: str) -> dict:"""Send a streaming request and return TTFT, total elapsed time, and chunk count."""payload = {"model": MODEL_ID,"messages": [{"role": "user", "content": prompt}],"stream": True,}headers = {"Authorization": f"Bearer {API_KEY}"}start = time.perf_counter()first_chunk_at = Nonechunk_count = 0with requests.post(f"{BASE_URL}/chat/completions",json=payload,headers=headers,stream=True,timeout=120,) as resp:resp.raise_for_status()for raw in resp.iter_lines():if not raw or not raw.startswith(b"data: "):continueif raw == b"data: [DONE]":breakif first_chunk_at is None:first_chunk_at = time.perf_counter()chunk_count += 1end = time.perf_counter()return {"ttft": (first_chunk_at - start) if first_chunk_at else None,"total": end - start,"chunks": chunk_count,}
3.3 Request Structure for Image and Text Input
Multimodal requests typically place text and images in the same message content list. Images can be passed via a public URL, or embedded as a base64-encoded string. The latter is convenient for testing but requires attention to request body size limits. Compress or downscale images as needed.
import base64def build_image_message(question: str, image_path: str) -> dict:with open(image_path, "rb") as f:b64 = base64.b64encode(f.read()).decode("utf-8")return {"role": "user","content": [{"type": "text", "text": question},{"type": "image_url","image_url": {"url": f"data:image/png;base64,{b64}"},},],}
Maximum image dimensions, supported formats, and the number of images allowed per request are all subject to the provider’s documentation. Validate the request structure with a small sample set before running the full evaluation.
4. Batch Evaluation Workflow
A single test run is not enough to support a model selection decision. Follow these steps:
- Freeze the test set: Use no fewer than 50 samples per category. Store ground-truth annotations and a version number for the test set.
- Control the variables: Use the same prompt template, same image resolution, and same concurrency. Run the test three times at different times of day and take the median.
- Log raw data: Save the request latency, returned text, and usage information for every call so results can be audited later.
- Conduct manual spot checks: Randomly sample a portion of the automatically scored results and review them manually to check whether the auto-scoring rules introduced bias.
- Produce a report: Summarize the mean, median, and distribution range of each metric, and note the test date and environment.
Speed metrics fluctuate with server-side load. For longitudinal comparisons, repeat the tests across multiple time points rather than relying on a single run.
5. Model Selection Decision Framework
After the evaluation is complete, weigh the following dimensions collectively rather than focusing on any single metric:
| Dimension | Key Question | Decision Impact |
|---|---|---|
| Response speed | Does TTFT meet interactive requirements? | Determines whether streaming output and preloading are necessary |
| Multimodal accuracy | Does field-level accuracy meet the business threshold? | Determines whether a separate recognition module can be removed |
| Cost | Per-call price and image processing overhead | Affects the feasibility of large-scale usage |
| Stability | Output consistency across identical inputs | Affects the reliability of automated workflows |
| Lifecycle | Is the model in preview or nearing deprecation? | Affects long-term maintenance and migration efforts |
In practice, a “primary plus fallback” dual-model strategy can be useful. The primary model handles normal traffic; the fallback model takes over if the primary becomes unavailable or degrades in quality. The switching logic should live in the wrapper layer, and the fallback model should be periodically validated against the test set to ensure it still works correctly.
6. Important Considerations
- Data compliance: Images often contain personal information or business secrets. Anonymize data before testing and confirm the provider’s data retention and usage policies.
- Cost control: Multimodal requests are typically more expensive than text-only requests. Set a budget cap for the testing phase and record the average cost per sample category.
- Prompt stability: The same prompt can behave very differently across model versions. Revalidate key prompts after switching models.
- Use of community feedback: Experiences shared on social media can be informative, but sample sizes, test environments, and prompts are usually opaque. They should not be used as the sole basis for a selection decision.
7. Conclusion
Evaluating a large model’s speed and multimodal capabilities comes down to converting vague impressions into measurable metrics, then using a fixed test set and a unified call wrapper to make the results reproducible. Time-to-first-token, output throughput, field accuracy, and output consistency form a practical four-metric evaluation framework. Once this workflow is institutionalized, every new model release can be compared quickly and objectively, with data driving the decision to switch.
