Multimodal LLM Evolution and Engineering Deployment: A Selection Guide
This article explains when multimodal capability should be evaluated separately, reviews three technical routes and representative models, and provides practical methods for visual token compression, parameter and activation cost estimation, productization, and model selection.
1. Why Multimodal Capability Needs Separate Evaluation
Pure text models have a limited task range. Users often need a model to read text from screenshots, understand trends in line charts, parse table structures in scanned documents, or even complete multi-step operations based on interface screenshots. These requirements determine the value of multimodal capability.
From a technical perspective, the core problem multimodal models must solve is aligning image features and text features into the same semantic space. Three conditions must hold at the same time: the visual encoder must extract sufficiently fine-grained features; the connector must map visual features into a form that the language model can understand; and the computation and memory footprint during inference must be acceptable for the business. If any one of these conditions fails, the model will perform inconsistently in real scenarios.
Therefore, before introducing multimodal capability, teams should first determine whether visual information is truly the bottleneck of the task. If a text description can cover the information required by the task, the benefits of multimodal capability are often insufficient to offset the additional inference cost.
2. Technical Evolution: Three Routes and Representative Models
The development of multimodal models has roughly gone through three stages. The years and model names listed below come from public papers or release information; before formal selection, the original papers and official documentation should be treated as authoritative.
2.1 Connecting Visual Encoders with Language Models
The foundation of this route is contrastive learning. OpenAI’s CLIP, released in 2021, uses a dual-tower structure: an image encoder and a text encoder output vectors separately, and contrastive loss brings paired image-text vectors closer. CLIP solved the initial alignment problem between vision and language, but it does not generate text itself.
Later models usually connect a pretrained visual encoder to a language model. Flamingo (2022) injects visual information into a frozen language model through cross-attention layers and uses a Perceiver Resampler to compress a variable number of visual features into a fixed number of inputs. BLIP-2 (2023) introduced Q-Former, which uses a set of learnable query vectors to extract information from a frozen image encoder and then passes it to a frozen large language model. LLaVA (2023) has a simpler structure: a projection layer maps CLIP visual features into the embedding space of a decoder-only language model.
LLaVA training is divided into two stages. In the first stage, only the projection layer is trained, using image-text paired data to learn feature mapping. In the second stage, visual instruction tuning teaches the model to answer questions based on images. This two-stage method is relatively low-cost and makes it easy to replace the visual encoder or language model.
The limitations of this route are also clear. Early models mostly used decoder-only language models as decoders, but this does not mean all models do so. Encoder-decoder and dual-tower structures remain valuable for tasks such as retrieval and classification. The visual capability of concatenation-style models depends on the quality of the projection layer, and fine-grained recognition is usually weaker than that of specially trained vision models.
2.2 Introduction of Mixture-of-Experts Architecture
Mixture-of-Experts (MoE) architecture splits the feed-forward network into multiple expert subnetworks, and each token passes only through the few experts selected by the router. Taking top-2 routing as an example, a token activates only 2 of 8 experts, and the parameters of the other experts do not participate in this computation.
The motivation for introducing MoE into multimodal models is to expand model capacity without letting the computation per inference grow linearly with total parameter count. DeepSeek-VL2 (2024) adopts a mixture-of-experts structure in its language part and is one representative of this direction.
The benefits of MoE must be evaluated together with its costs. First, total parameter count determines memory usage; the weights of all experts usually need to be loaded onto devices, so the main reduction in inference cost is computation, not memory. Second, routing may be imbalanced: some experts are called heavily while others sit almost idle, which affects quality and throughput. Training usually requires adding load-balancing loss to mitigate this. Third, MoE models place higher demands on distributed frameworks for training and deployment, and migration cost cannot be ignored.
2.3 Unified Generation and Understanding Frameworks
Another route attempts to convert images into discrete tokens so that images and text use the same autoregressive modeling approach. Chameleon (Meta, 2024) uses early fusion and mixes image tokens and text tokens in the same sequence. Emu3 (2024) uses next-token prediction to unify image understanding and image generation.
The advantage of this design is structural uniformity: understanding and generation can share parameters. However, discretization loses some details in continuous features, so on pure understanding tasks its accuracy is sometimes lower than specialized models that use continuous visual features. When selecting models, teams should decide based on task type whether generation capability is needed. If the business only performs image question answering and document parsing, the advantages of a unified framework may not be useful.
3. Visual Token Compression: How to Calculate the Numbers
The number of visual tokens directly determines input sequence length, which in turn affects inference latency, memory, and cost. The following simplified example illustrates the calculation method.
Assume a 1024×1024 image and a visual encoder patch size of 16 pixels. The image is divided into 64×64 = 4096 patches, and each patch corresponds to one visual token. If 2×2 merging is performed before projection, meaning four adjacent tokens are merged into one, the token count drops to 1024 and the compression ratio is 4×. This number is only illustrative; the actual compression ratio depends on the model structure.
In addition to merging, there are three common compression methods.
The first is query compression such as Q-Former. Regardless of input image size, the output number of visual tokens is fixed, for example 32 or 64. Its advantage is controllable length; its disadvantage is that detail retention is limited by the number of queries.
The second is attention-based token pruning. FastV (2024) observed that in deeper layers, many visual tokens contribute little to the output, so visual tokens with low attention scores can be dropped after a certain layer. This method does not require retraining, but the pruning position and ratio need to be validated on the target task.
The third is dynamic resolution. The model decides the number of split blocks based on image size and content: simple images use fewer tokens, while complex documents use more tokens. This approach is more flexible, but implementation and debugging are more complex.
The risks introduced by compression are concentrated in several scenarios. Small-font text, dense tables, tiny chart ticks, small lesions in medical imaging, and requests that input multiple images at once are all prone to recognition errors when the token budget is insufficient. In multi-image scenarios, each image receives fewer tokens; even if the compression ratio for a single image is not high, overall accuracy may still decline.
Teams are advised to run a resolution gradient test during model selection. Input the same batch of samples at resolutions such as 448, 672, 896, and 1024, and record accuracy, first-token latency, and memory usage. After plotting the curves, teams can find the inflection point where accuracy begins to decline significantly and use it to determine the default resolution and upper limit.
4. Parameter Scale and Activation Cost
The parameter scale and activation cost of multimodal models are two different metrics and should be calculated separately during selection.
Assume a model has 100B total parameters and activates 13B parameters per inference, giving an activation ratio of 13%. According to common rule-of-thumb estimation, forward computation requires about 2 times the activated parameters in floating-point operations per token, or about 26 GFLOPs. This estimate does not include attention computation or visual encoder overhead, but it provides an order-of-magnitude judgment.
Memory usage depends on total parameter count. Stored in FP16, 100B parameters occupy about 200 GB; in INT8, about 100 GB; in INT4, about 50 GB. These numbers include only weights; KV cache, activations, and framework overhead must also be added. This shows that even if activated parameters are few, deployment barriers remain high as long as total parameters are large.
Therefore, a configuration of “large-scale sparse parameters plus low activation cost” suits two types of scenarios. One is services with sufficient memory or multi-card resources, high request volume, and a need to amortize per-inference computation cost. The other is scenarios that require strong knowledge capacity but where a single card or a small number of cards cannot host a dense large model. For teams with limited resources and low request volume, dense small and medium models may be simpler and have lower maintenance costs.
5. Productization: Stages, Architecture, and Risks
Moving multimodal capability from research to product usually goes through four stages: research validation, preview testing, gray release, and full launch. Each stage should have clear exit criteria. For example, the gray stage can be defined as: key task accuracy is not lower than the existing solution, P95 latency does not exceed the business limit, and user complaint rate is not higher than baseline. Only when these conditions are met should the next stage begin.
In terms of architecture, teams need to choose between native multimodality and post-hoc adaptation.
Native multimodality means using image and text data simultaneously during pretraining. Its advantage is that the association between vision and language is established from the underlying parameters, and cross-modal reasoning is usually more natural. Its disadvantages are high training data and compute costs, long iteration cycles, and greater difficulty in replacing the visual encoder or upgrading the language foundation.
Post-hoc adaptation means attaching a visual encoder and connector to an existing language model. Its advantages are lower cost, reuse of mature language models, and faster time to market. Its disadvantage is that visual capability and language capability may be disconnected; when the same question is expressed with a different image, the model’s answer may vary considerably.
The two approaches should not be compared only at the conceptual level. A/B tests should be run on the same set of business samples, comparing accuracy, stability, latency, and unit cost. The test set should include normal samples, boundary samples, and failure samples, rather than judging effectiveness only by public leaderboards.
6. Selection and Deployment Checklist
The following content can be used directly in project reviews and solution comparisons.
6.1 Scenario Scoring Table
Score candidate scenarios across five dimensions, each from 1 to 5: visual information value, text substitution difficulty, call frequency, latency sensitivity, and fault tolerance requirement. Among these, visual information value and text substitution difficulty are the most important. If visual information value is low and a text solution can substitute for it, the text model should be prioritized.
A usable weighted formula is:
Priority score = 0.35 × Visual information value + 0.25 × Text substitution difficulty + 0.20 × Call frequency + 0.10 × Latency sensitivity + 0.10 × Fault tolerance requirement
The higher the score, the more worthwhile it is to prioritize multimodal capability. Weights can be adjusted according to the business, but they need to be fixed at project approval to avoid adjusting weights afterward to support an existing conclusion.
6.2 Cost Estimation Formula
Monthly cost is calculated as follows:
Monthly cost = Daily requests × 30 × [Average input tokens × Input unit price + Average output tokens × Output unit price]
Average input tokens should include both image tokens and text tokens. Many teams count only text length, which leads to budget underestimation.
