Evaluating the New Generation of Open-Weight Multimodal Small Models

    This article evaluates the new generation of open-weight multimodal small models, covering their dense and mixture-of-experts variants, how to interpret benchmark scores, how to build a reliable custom evaluation set, how to estimate hardware and KV-cache costs, and how to validate function calling, structured output, and agent workflows before production deployment. It also provides a practical deployment checklist and common evaluation pitfalls.

    1. What This Generation of “Small Models” Actually Adds

    A year later, a new generation of open-weight model families has been released together, with four tiers:

    • Two lightweight tiers for on-device and edge deployment, at roughly 2 billion and 4 billion parameters.
    • Two main tiers for servers and single-workstation deployment: a dense model with about 30 billion parameters, and a Mixture-of-Experts model with about 26 billion total parameters and about 4 billion activated parameters per forward pass.

    The official release also includes both pretrained base models and instruction-tuned versions. The family claims support for more than 140 languages, a maximum context window of up to 256,000 tokens, and a third-place ranking among open-weight models on a third-party public leaderboard, behind two models developed in China.

    The real selling point of this generation is not simply that another model size has been added. Instead, it consolidates capabilities that were previously spread across multiple models and versions into one family:

    • Multimodal input with images and text.
    • Very long context windows.
    • Function calling.
    • Structured output constraints.
    • Support for agent-style long-horizon tasks.
    • A deployment range spanning servers, PCs, phones, and single-board computers.

    For engineering teams, this changes the selection discussion. Instead of asking “should we switch models?”, the question becomes more deterministic: “Which tier should we use, what quantization should we apply, and which evaluations should we run?”

    2. Dense vs. Mixture-of-Experts: Understanding Two Architectural Paths

    1. Parameter count, activated parameters, and memory usage are not the same thing

    Mixture-of-Experts architectures are often misunderstood as automatically saving resources. A more precise statement is: MoE reduces the compute cost per token, not the memory required to hold the weights.

    A MoE model with 26 billion total parameters and 4 billion activated parameters still needs to store all 26 billion parameters in memory during inference. In FP16, that is approximately 52 billion bytes of weights. For each token, however, only the activated parameter path, around 4 billion parameters, is processed.

    The benefit is performance close to a much larger dense model, while maintaining compute costs closer to a smaller dense model. The tradeoff is that total weight memory does not decrease, and performance is more sensitive to memory bandwidth and the stability of expert routing.

    Dimension Dense model MoE model
    Compute per token Proportional to total parameters Only the activated subset is used; significantly lower
    Weight memory Proportional to total parameters Proportional to total parameters; it does not decrease
    High-concurrency throughput Moderate Usually better due to lower compute cost
    Small batch / single-request latency Stable Excellent, but dependent on routing and scheduling
    Quantization accuracy risk Relatively manageable Expert layers can be more sensitive to quantization; verify layer by layer
    On-device feasibility Smaller tiers may be viable Generally not suitable for on-device deployment

    2. First principles for model selection

    On-device and edge deployment

    For phones, PCs, single-board devices, and offline terminals, prioritize the lightweight tiers. The important metrics are peak memory usage, cold-start time, per-token latency, and power consumption, not leaderboard scores.

    For multimodal inputs, teams should expect to apply resolution or frame-rate trimming. Otherwise, visual tokens can consume too much of the effective context.

    Single-machine or small-cluster inference services

    The main dense tier requires roughly 16–20 GB of memory after 4-bit quantization, making it suitable for a consumer-grade GPU or an entry-level professional GPU.

    The MoE tier can provide better latency in low-concurrency scenarios, but it still requires memory for all expert weights. In high-concurrency settings, teams should invest in more careful batching and caching strategies.

    Quality and cost priorities

    Across general knowledge, mathematical reasoning, and code generation, the MoE tier typically outperforms the lightweight tiers of the same generation by about 3–8 percentage points. It also has lower inference cost, making it one of the most cost-effective options for production workloads.

    3. How to Read Benchmark Scores: A Four-Layer Evaluation System

    1. Look at balance before absolute scores

    The official comparison is informative. On a set of general benchmarks, the latest dense tier with about 30 billion parameters scores approximately:

    • 85% on general knowledge understanding.
    • 89% on competition-level mathematical reasoning.
    • 80% on real-world code generation.
    • 84% on graduate-level scientific question answering.

    The same-generation MoE tier scores approximately:

    • 83% on general knowledge understanding.
    • 88% on competition-level mathematical reasoning.
    • 77% on real-world code generation.
    • 82% on graduate-level scientific question answering.

    The previous generation dense tier with about 27 billion parameters scores approximately:

    • 68% on general knowledge understanding.
    • 21% on competition-level mathematical reasoning.
    • 29% on real-world code generation.
    • 42% on graduate-level scientific question answering.

    The value of these numbers is not only in the absolute scores. Two observations matter more.

    First, all four dimensions improve substantially. This suggests the model is not improving through one narrow benchmark while leaving other capabilities unchanged.

    Second, the improvements on long-chain reasoning tasks such as mathematics and code are much larger than the improvements on knowledge recall tasks. This indicates that the gains come mainly from better reasoning, not simply from better memorization.

    When evaluating models, teams should be cautious about models with one extremely high score and otherwise mediocre results. Such scores may reflect adaptation to a particular benchmark rather than general capability.

    2. Build a custom golden evaluation set

    Public benchmarks can be affected by prompt-format sensitivity, inconsistent scoring functions, and training-data contamination. Cross-model comparisons based only on public benchmarks have limited confidence.

    A practical approach is to build a custom golden set:

    1. golden_set/
    2. |-- multimodal/ # chart reading, scanned-document OCR, UI screenshot understanding; >=100 items per category
    3. |-- long_context/ # retrieval and aggregation tasks with 200k+ tokens; answers placed at the beginning, middle, and end
    4. |-- tool_call/ # single-tool, multi-tool, parallel-tool, invalid-parameter, and no-tool scenarios
    5. |-- structured/ # extraction and classification with JSON Schema constraints, including nested fields and arrays
    6. `-- regression/ # real production bad cases; rerun after every change

    Each sample should include:

    • Input.
    • Expected output.
    • Automatically checkable assertions, such as exact match, schema validation, numeric tolerance, or unit-test pass rate.

    The evaluation process should fix temperature and decoding parameters. Run the same model version at least three times and report both mean and variance. This helps prevent random variation from being mistaken for a real capability difference.

    3. Specialized validation for multimodal and long-context capabilities

    Multimodal validation

    Test four categories separately:

    1. Object presence and localization: “What is in the image, and where is it?”
    2. Visual reasoning with calculation: reading values from an image and performing arithmetic.
    3. Chart trend extrapolation.
    4. OCR combined with structured extraction.

    Pay special attention to how resolution scaling and image chunking strategies affect results. Also test instruction following when text and images are mixed.

    Long-context validation

    Do not rely only on simple “needle-in-a-haystack” retrieval tests. Add at least three types of evaluation:

    1. Multi-hop aggregation across more than 100,000 tokens, where the answer requires combining information from both the beginning and the end of the input.
    2. Structured extraction from long documents, where truncation at the end can cause missing fields.
    3. Instruction persistence in long conversations, checking whether format constraints defined early are still followed after dozens of turns.

    Also record time-to-first-token latency and throughput degradation as context length grows.

    4. Multilingual support and tokenizer efficiency

    Claimed support for 140 languages does not automatically mean equal experience across all languages. Tokenizer efficiency matters.

    For the same semantic content, the token count in Chinese, Japanese, Korean, Arabic, and low-resource languages may be 2–4 times higher than in English. This erodes effective context and increases inference cost.

    Teams should measure token expansion rates for each target language and establish separate quality baselines for languages with high token expansion.

    4. Translating Scores into a Hardware Bill

    Weight memory

    Weight memory estimation is straightforward:

    parameters × bytes per parameter

    For a 30-billion-parameter model:

    • FP16: approximately 60 GB.
    • 8-bit: approximately 30 GB.
    • 4-bit: approximately 16–18 GB.

    In practice, teams should reserve an additional 10%–20% for quantization metadata, alignment, and inference-framework overhead.

    KV cache is the real long-context cost

    For long-context inference, KV cache is often the dominant memory consumer. It grows linearly with sequence length.

    1. def kv_cache_gb(layers, kv_heads, head_dim, seq_len, batch=1, bytes_per_elem=2):
    2. """2 accounts for both K and V caches; bytes_per_elem=2 means FP16"""
    3. elems = 2 * layers * kv_heads * head_dim * seq_len * batch
    4. return elems * bytes_per_elem / (1024 ** 3)
    5. # Example: 48 layers, 8 KV heads, head_dim=128, FP16
    6. print(kv_cache_gb(48, 8, 128, 256 * 1024)) # ≈ 48 GB for one request
    7. print(kv_cache_gb(48, 8, 128, 256 * 1024, bytes_per_elem=0.5)) # ≈ 12 GB with 4-bit KV

    The conclusion is straightforward: for a model that supports 256,000-token context, the KV cache of a single long request can be larger than the model weights themselves.

    This means that production concurrency is often limited by KV cache, not by raw compute. Possible mitigations include:

    • Paged KV cache management to reduce fragmentation and improve concurrency density.
    • KV quantization.
    • Sliding-window attention and hybrid attention mechanisms.
    • Prefix caching reuse, which is especially valuable for system prompts and long-document question answering.
    • Context compression and retrieval-augmented preprocessing.

    When planning capacity, load-test with the formula:

    weights + KV cache × concurrency + framework overhead

    Do not rely only on whether the model weights fit in memory.

    5. Function Calling and Structured Output: The Foundation for Agent Scenarios

    Function calling and structured output determine whether a model can be integrated into real business systems rather than remaining in a demo.

    Teams should validate these capabilities at four levels:

    1. Callability: The model correctly identifies when a tool should be called, and the tool name, parameter names, types, and enum values exactly match the schema.
    2. Robustness: The model does not incorrectly trigger tool calls when many irrelevant tools are present, and can correctly answer directly when it determines that no tool is needed.
    3. Multi-step and parallel calls: The model can return multiple tool calls in one step, adjust later parameters based on tool results, and retry reasonably after failures.
    4. Structured output stability: Even with higher temperature or noisy input, the generated JSON remains parseable and complete.

    In engineering practice, teams should not rely on the model “voluntarily” producing valid JSON. Use constrained decoding, which masks invalid tokens during generation according to the schema, and add server-side validation, one repair attempt, and a fallback mechanism.

    1. def call_with_schema(model, messages, schema, tools=None, max_repair=1):
    2. resp = model.generate(
    3. messages=messages,
    4. tools=tools, # tool declarations; may be empty
    5. response_schema=schema, # structured output constraint
    6. temperature=0.2,
    7. )
    8. for _ in range(max_repair + 1):
    9. try:
    10. data = validate(resp.json, schema)
    11. return data
    12. except (JSONDecodeError, SchemaError) as e:
    13. resp = model.generate(
    14. messages=messages + [{"role": "system",
    15. "content": f"Previous output was invalid: {e}. Return only JSON that conforms to the schema."}],
    16. response_schema=schema,
    17. temperature=0.0,
    18. )
    19. return fallback(messages) # fallback: human review or rule-based extraction

    For edge and on-device deployments, teams must also verify that the lightweight tier retains usable tool-calling ability after quantization. This is one of the most common places where quantization damage appears, and it must be tested directly rather than inferred.

    6. Validating Agent Workflow Fit

    The difference between agents and single-turn question answering is that errors accumulate.

    If a single step has a 95% success rate, a 20-step task has a theoretical success rate below 36%.

    Therefore, agent suitability should be evaluated across four dimensions:

    • Long-horizon consistency: After dozens of turns, does the model still follow the output format and role constraints defined at the beginning?
    • Context management: When the context window is exceeded, can the model summarize and preserve key information rather than simply truncating content?
    • Self-correction: After a tool error, can the model understand the error message and adjust parameters instead of repeating the same failed call?
    • Observability: Can each step be recorded, including input summaries, tool calls, parameters, latency, and token usage?

    Teams should implement at least log collection, metric monitoring, and alerting. Set thresholds for success rate, average steps, timeout rate, and cost per task.

    7. Ecosystem and Engineering Deployment Checklist

    One advantage of the new generation is that it is released with support for mainstream inference runtimes, cross-platform on-device engines, and vendor-hosted images. This makes “one model, multiple deployment targets” a normal pattern.

    A recommended deployment sequence is:

    1. Capability validation
      Use the custom golden set to compare two or three candidate tiers. Produce a capability matrix and a distribution of failure cases.

    2. Cost load testing
      Plan capacity using weights + KV cache × concurrency. Determine the quantization strategy and batching policy.

    3. Service deployment
      Containerize the inference service with a unified interface. Store model weights in object storage with versioning. Use image pre-pulling to reduce cold-start time.

    4. Canary release and regression testing
      Start with a small traffic percentage. Compare the new version against the old version using A/B testing. Automatically roll back if any core metric regresses beyond the threshold.

    5. Compliance review
      Confirm that the license terms of the selected model weights allow commercial use and redistribution for the target scenario. Complete content-safety filtering policy configuration.

    6. Continuous evaluation
      Collect production bad cases and feed them back into the evaluation pipeline. Evaluation should become a continuous process, not a one-time step before launch.

    For teams using Baidu AI Cloud, this workflow can be supported by container platforms for inference services, object storage for versioned model and dataset management, logging and monitoring services for quality observation, and model-service and developer platforms to connect evaluation with deployment.

    8. Five Common Misconceptions

    • Relying only on aggregate leaderboard rankings: Different leaderboards have different scoring criteria and contamination levels. Cross-leaderboard comparisons are often meaningless.
    • Treating MoE as a memory-saving solution: MoE saves compute, not weight memory.
    • Assuming maximum context length equals effective context length: A model that claims 256,000-token context is not necessarily still able to aggregate information accurately at 200,000 tokens. This must be tested.
    • Ignoring tokenizer efficiency: Token expansion for low-resource languages increases both cost and latency.
    • Replacing business evaluation with public benchmarks: The final decision should be based on pass rates and unit costs measured on the team’s own golden evaluation set.

    Conclusion

    The significance of the new generation of open-weight multimodal small models is that it combines multimodal input, long context, tool calling, structured output, and on-device deployment into a tiered, deterministic engineering option. This makes “small models doing heavy work” move from concept to deliverable engineering practice.

    However, the core of model selection is not reproducing leaderboard numbers. It is three things:

    • Use a custom evaluation set to confirm capability boundaries.
    • Use memory and KV-cache formulas to confirm cost ceilings.
    • Use constrained decoding and observability to confirm stability floors.

    If these three things are done well, a model generation upgrade becomes a parameter and configuration replacement rather than a high-risk reconstruction.