How to Build a Reproducible Evaluation Framework for Native Multimodal Inference Models
This article presents a vendor-neutral framework for evaluating large language models and native multimodal inference models in a reproducible way. It defines four core metric categories—accuracy, latency, token consumption, and cost—and explains how inconsistent definitions lead to contradictory comparisons. You will see a five-stage evaluation pipeline covering dataset layering, parameter freezing, concurrency control, repeated sampling, and cost aggregation, along with sample scoring code and a configuration file. The article also shows how to read results structurally rather than by a single score, what additional tests native multimodal models require, and common pitfalls to avoid. All sample figures are treated as illustrative observations, not performance claims.
1. Why Reproducible Model Evaluation Matters
Over the past year, large language models have been iterating at a noticeably faster pace, and leaderboards and self-reported results appear constantly. For developers and enterprise engineering teams, the real pain point is not the lack of a score, but the lack of a reproducible, comparable, and explainable evaluation method. When the same set of questions is run at different times, with different parameters, or under different concurrency levels, the variance in results is often larger than the gap between models.
This article therefore does not focus on any specific vendor product. Instead, it abstracts a general-purpose evaluation framework. A set of preview-version figures from the source material (about 15,000 questions, 74.8% accuracy, 53 seconds average latency, 3,157 tokens on average, and roughly RMB 250.5 per thousand calls) is treated here as “sample observed values” used to illustrate how the metrics interact, not as a performance commitment for any product.
A sound evaluation system must answer at least four questions:
- Is it correct? Accuracy, per-domain accuracy, and error type distribution.
- Is it fast? End-to-end latency, including queueing time, time to first token, and full output latency.
- Is it cost-effective? Token consumption structure (input/output/reasoning) and cost per task.
- Is it stable? Variance across repeated runs, degradation under long context, and degradation curves under concurrency pressure.
2. Rigorous Definitions of Four Core Metrics
Many contradictory comparison conclusions stem from inconsistent metric definitions. Fix the definitions first, then discuss rankings.
2.1 Accuracy
Accuracy must be bound to a dataset and a scoring method. For Chinese logic and text tasks, a dual-track approach of “rule-based scoring + model-based scoring” is recommended: objective questions use exact match or numeric tolerance, while subjective questions use a unified scoring prompt with double sampling by two reviewers. Example:
def score(item, pred):if item["type"] == "choice":return float(pred.strip() == item["answer"])if item["type"] == "numeric":return float(abs(pred - item["answer"]) <= item["tol"])return judge_model(item["question"], item["answer"], pred) # subjective questions
2.2 Latency
Three quantities must be distinguished: queueing latency, time to first token (TTFT), and full generation latency. The “average latency dropped from 64 seconds to 53 seconds” in the source material refers to end-to-end full generation latency, and it is only comparable when question volume, concurrency, and output length distribution are identical.
2.3 Token Consumption
Token consumption needs to be split into three parts: input, output, and reasoning (chain of thought). The observation that “tokens increased slightly from 3,119 to 3,157 while latency actually decreased” usually means, from an engineering perspective, that per-token generation throughput improved, or that scheduling and batching strategies were optimized—not that the model “thought less.”
2.4 Call Cost
Cost = input tokens × input unit price + output tokens × output unit price. When comparing across vendors, always normalize to “per thousand task calls” or “per ten thousand questions”; otherwise, unit price differences get amplified by output length differences.
3. Designing the Evaluation Pipeline
It is recommended to fix the workflow into five stages so that any regression run can be aligned with historical results:
- Dataset layering: Stratified sampling across dimensions such as language and instruction following, reasoning and math, education, finance, legal and administrative affairs, and healthcare and mental health, to prevent long-tail domains from being masked by the total.
- Parameter freezing: Fix temperature, maximum output length, and system prompt version, and record the configuration hash.
- Concurrency control: Fix concurrency levels (for example, three tiers of 4/8/16) and record latency curves for each.
- Repeated sampling: Run each question at least 3 times, and report both mean and standard deviation.
- Cost aggregation: Normalize uniformly to RMB per thousand calls, and separately list the input/output share.
Sample configuration:
eval:dataset: layered_zh_v1repeats: 3concurrency: [4, 8, 16]params: {temperature: 0.0, max_output: 2048}metrics: [accuracy, ttft, latency, tokens_in, tokens_out, cost_per_1k]
4. Reading Results: From Total Score to Structure
In the sample observations, the total score rose from 72.5% to 74.8% (+2.3 percentage points), but the structural changes are more valuable:
- Language and instruction following +4.9%: This indicates stronger parsing and constraint retention for complex, tedious Chinese instructions, which directly determines whether agent workflows can be deployed reliably.
- Reasoning and math +3.3%, reaching 85.1%: Math and logic are “verifiable capabilities,” so improvements here are more credible than gains on subjective questions.
- Education +3.8%, healthcare and mental health holding at 88.7%: High scores in vertical domains often come from knowledge density and expression standards; beware of training data contamination, and it is advisable to keep a private holdout set.
- Latency down while tokens slightly up: This is a typical signal of inference efficiency optimization, which should translate in engineering terms into “higher concurrency capacity under the same budget.”
It should be emphasized that a single leaderboard ranking (for example, moving from 6th to 2nd) can only serve as a reference, because rankings are highly sensitive to dataset composition and scoring strategy.
5. Additional Evaluation for Native Multimodal Capabilities
The real differentiator of native multimodal reasoning models is cross-modal joint throughput: simultaneous input of long videos, audio, images, and large codebases. A pure text Chinese evaluation set can only probe the tip of the iceberg of their capabilities. Three additional types of tests are recommended:
- Cross-modal alignment: Provide a chart + table + text, and require structured conclusions as output.
- Long-context degradation: Gradually increase input from 8K to the maximum window, and observe the accuracy inflection point.
- Codebase-level understanding: Cross-file dependency reasoning and defect localization, with metrics of localization hit rate and fix pass rate.
6. Common Pitfalls and Engineering Recommendations
- Do not compare total scores across datasets; first align the stratification ratios.
- Do not ignore output length; the longer the output, the less comparable cost and latency become.
- Do not look only at the mean; long-tail questions determine the lower bound of user experience, so examine P95 latency and the worst 5% accuracy.
- Cost optimization paths: streamline prompts, replace ultra-long context with retrieval augmentation, cache results, and route by difficulty tier to models of different sizes.
7. Conclusion
The goal of evaluation is not to produce a nice ranking, but to form a regression-capable engineering baseline. Binding accuracy, latency, token structure, and unit cost into the same report, combined with a layered dataset and fixed parameters, is what enables rational technology selection during rapid model iteration. If you need to carry real business traffic, it is recommended to build a continuous evaluation and canary release loop on top of the baseline above, combined with general cloud capabilities such as container platforms, logging services, and monitoring and alerting.
