Native Multimodal Mixture-of-Experts: Architecture and Deployment Practice
This article explains how to evaluate and operate native multimodal mixture-of-experts (MoE) models in production. It covers workload profiling, total vs. activated parameters, native vision checks, KV cache and prefix reuse, task-level cost accounting, and versioned rollout—so teams can judge quality, tail latency, and cost on the same real requests.
Profile the workload before you choose a model
Multimodal cost is driven by task shape. Form extraction may ingest a full image but emit only a few fields. Technical Q&A often combines long input with longer explanations. Agents typically issue multiple model calls per job and inject tool results each round. The same model can therefore show very different time-to-first-token (TTFT), output speed, and per-task spend.
Before selection, measure text input length, image count and size, output-length distribution, and rounds per task. Separate context that can be reused from context that must be recomputed. Keep peak traffic and long-session samples: average latency describes typical experience but hides bursts of multi-image requests and long generations that occupy concurrency.
Mixture of experts: total parameters and activated parameters answer different questions
In a mixture-of-experts (MoE) design, some layers are split into experts, and a router selects a subset for each token. Total parameters mainly reflect storage of the full weights. Activated parameters describe how much of the network actually computes for a token. Do not treat them as interchangeable: fewer activated parameters does not mean you only load those weights at deploy time. Different requests—and even different tokens in one request—can hit different experts.
Lower compute per token also does not automatically mean higher throughput. When experts span multiple accelerators, tokens may be shuffled and gathered across devices. If traffic concentrates on a few experts, hot devices can slow the whole batch even when others have spare capacity. Load tests should track device utilization, cross-device communication time, and request tail latency—not predict production from activated-parameter size alone.
Treat prefill and decode separately. Asymmetric encode/decode setups can use different compute configs. Prefill processes existing text and image representations and shows up in TTFT (which also includes queueing). Decode generates token by token and mainly drives sustained output speed. For interactive products, starting the answer sooner and finishing it faster are distinct experience metrics.
Native vision: verify what the model actually reads
Native multimodality means visual input can participate in understanding and generation inside one model stack, without first transcribing every image to text on the application side. That does not mean there is no image preprocessing or vision encoder, and it does not mean any image-capable endpoint will reliably handle small text, table layout, or chart reasoning. Scaling, cropping, and representation choices all affect retained detail.
Offline evaluation should split vision work into checkable subtasks. For receipts, score date, amount, and currency separately. For tables, verify row–column relationships and units. For charts, distinguish misread axes from correct reads with wrong arithmetic. Include skewed, occluded, low-resolution, and multi-page samples so demos on clean images do not stand in for production.
Let the model say “cannot confirm” instead of forcing every field. Deterministic checks (amount totals, date ranges) can run as rules first. If errors would trigger payment, approval, or record changes, route ambiguous cases to human review. That keeps multimodal input convenient without amplifying a single recognition mistake.
Distinguish runtime KV cache from cross-request prefix reuse
In autoregressive generation, the key–value cache (KV cache) stores attention keys and values from prior positions so later tokens do not recompute those states. Long context and high concurrency grow cache footprint. Smaller caches ease device memory, but concurrency still depends on weight memory, compute, scheduling, and whether cache read/restore becomes a new bottleneck. Compare peak memory, throughput, and tail latency under the same input length, output target, and concurrency.
Cross-request prefix caching is a separate capability. Stable prefixes reduce duplicate work only if the serving stack supports reuse and the request matches its rules. For agents, put stable system rules, output constraints, and tool descriptions first; put the current question, time, and tool results later. Do not freeze permissions, facts, or business state just to raise hit rate. Validate whether text and images share the same reuse rules.
Cache metrics should answer two questions: how much input was actually reused, and whether reuse improved user experience. Request hit rate can mislead: many short hits may not offset a few long requests that recompute everything. Record reused input volume, TTFT, and task cost, then compare cold-cache vs. warm-cache runs.
Account for cost per completed task
If billing splits cache-hit input, cache-miss input, and output, multiply each volume by its unit price and sum. Keep units consistent. If images are metered separately, map them to the invoice line items; do not infer token cost from image count. With time-of-day pricing, weight forecast cost by actual usage per window—do not treat the cheapest hour as all-day cost.
For agents, a practical metric is total cost in a window divided by successfully completed tasks. Include failed attempts, automatic retries, and required review calls. A model with cheaper short turns can still cost more if it often rereads images or repairs structured fields. Cap rounds, output, and time per task so large raw tool payloads are not repeatedly fed back.
Optimization order matters. First remove invalid calls, duplicated tool results, and verbose output; then shift schedules or add capacity. Deferrable batch jobs can wait for cheaper windows; interactive work must weigh queue delay against savings.
Design for version changes
The model ID in an application request may not stay bound to one backend revision. Compatible APIs can still change output format, vision results, latency, and cost after upgrades or temporary routing. Log the requested ID, any version the service reports, call time, usage, and error type. If the true version is unknown, mark it unknown—do not treat the request ID as a version credential. Logs need not keep raw images or sensitive text by default.
Before a switch, run a fixed desensitized set: core text tasks, multimodal tasks, long-context requests, and structured output. During canary, watch success rate, field accuracy, TTFT, end-to-end latency, and cost per successful task. If some flows may fall back to text-only, define when that is allowed; if visual evidence is required, do not treat missing image analysis as success. Writes need idempotency so timeouts and retries do not double-submit.
Acceptance is the same business bar on one set of real requests: did the task get done correctly, did the slowest cohort still finish on time, and what did each successful task actually cost. Only then can you tell whether sparse activation, native vision, and cache reuse deliver durable gains.
