Multimodal LLM Architecture Explained: Vision Encoding and Agent Orchestration
A technical breakdown of natively multimodal large model architectures, covering vision encoders, cross-modal projection, decoupled training, parallel agent orchestration, and the engineering trade-offs involved in each design choice.
Why Multimodal Models Need a Different Architecture
Two main routes have emerged in the development of multimodal large models. One treats the language model as the core and bolts on vision capabilities later. The other treats images, video, and text as foundational modalities from the pretraining stage onward, optimizing them jointly. This article focuses on the second route, explaining what problem each design choice solves, what it costs, and what conditions engineers need to verify in practice.
Two Problems with Late-Stage Fusion
The traditional approach is to first train a strong text-only language model, then attach a vision encoder that maps images into the text semantic space. This lowers the barrier to development, but it commonly produces two problems.
The first is modality competition. Image features and text features differ significantly in distribution, so after direct concatenation, the model may favor one modality over the other. In practice, teams sometimes observe language capabilities improving while visual understanding degrades—and sometimes the reverse. Whether this happens depends on data ratios and training methods; it is not inevitable and must be validated with your own evaluation sets.
The second is information loss from fixed resolution. Many vision encoders resize or crop inputs to a fixed size. For high-resolution documents, long screenshots, and small text, this discards critical details.
In response, newer designs follow two principles. Architecturally, vision and language sit in the same modeling framework from the start. In training, capabilities across both modalities improve in sync. This allows vision to serve as an independent channel through which agents perceive their environment, rather than a mere add-on input to the language model.
A Three-Layer Structure: Encoding, Projection, and the Language Backbone
Models in this category typically have three layers, each with a clear responsibility, yet tightly coupled in how data flows between them.
The first layer is visual feature extraction. It converts images or video into numerical representations. Compared with traditional 2D convolutional networks or a standard ViT, some newer designs introduce 3D positional encodings and spatiotemporal attention, so a single set of parameters can handle both single images and sequences of video frames. This reduces the cost of maintaining multiple encoders, but parameter count and compute requirements rise accordingly—something to evaluate at deployment time.
The second layer is cross-modal projection. The vectors output by the vision encoder must be mapped into the language model’s embedding space. The common approach is a multilayer perceptron (MLP), typically combining linear transformations with nonlinear activations such as GELU or SiLU. This combination gives stronger mapping capacity than a purely linear layer. The projection layer’s input dimension is determined by the vision encoder, while its output dimension must match the language model’s hidden dimension. Whether to freeze it, and how to initialize it, directly affects early training stability, so it needs dedicated tuning.
The third layer is the language backbone. Many models adopt a Mixture-of-Experts (MoE) structure: the network contains multiple parallel feedforward experts, and each token activates only a subset of them during the forward pass. Total parameters can be much larger, while per-inference compute scales only with activated parameters. The trade-offs are more complex routing training and the need to handle uneven expert load.
Three Design Choices in the Vision Encoder
Vision encoder design centers on three areas.
1. Native-Resolution Input
Instead of resizing images to a fixed size, this approach splits the image into equal-sized patches and packs them into a sequence. Different images can produce different numbers of patches, preserving a wide range of aspect ratios and resolutions.
Native resolution does not mean unlimited resolution. The number of patches directly determines the attention sequence length, and attention cost grows quickly with sequence length. Deployments therefore need a maximum visual token count. Images exceeding the limit must either be processed in chunks or downsampled. Memory usage varies accordingly, so it’s best to benchmark peak memory and latency at different resolutions on your target hardware.
2. Unified Spatiotemporal Modeling
The encoder shares most parameters across images and video. Video is treated as a sequence of images along the time axis: in addition to spatial attention, temporal attention is added to capture motion between frames. Downstream tasks can therefore handle single-frame screenshots and multi-frame clips with a consistent representation, reducing adaptation cost. However, temporal attention significantly increases compute for video inputs, so a frame-count cap is also necessary.
3. Multi-Level Feature Fusion
Shallow features preserve details like textures and edges, while deeper features lean toward semantics and object relationships. Fusing both through a feature pyramid lets the model perform fine-grained recognition as well as whole-scene understanding. This fusion adds structural complexity, and whether it’s worth adopting depends on how much detail your task requires.
Decoupled Training: Separating Three Stages
Large-scale multimodal training often fails due to instability. If the vision encoder and language backbone are trained end-to-end jointly from the start, gradient fluctuations from the vision side can disturb the language model, causing oscillation or even divergence. Decoupled training breaks the process into stages, each optimizing a well-defined set of objectives.
The table below summarizes typical settings for the three stages.
| Stage | Trainable Modules | Primary Goal | Key Controls |
|---|---|---|---|
| Stage 1 | Vision encoder | Masked reconstruction to learn general visual representations | Data scale, masking ratio |
| Stage 2 | Projection layer and vision encoder, language backbone partially frozen | Cross-modal alignment to close the distribution gap between vision and text | Contrastive loss weight, learning rate |
| Stage 3 | All parameters | End-to-end optimization for agent tasks | Learning rate decay, data ratios |
Specific values for data volume, learning rate, and batch size depend on model scale and available compute; refer to the official technical reports. Each stage should have convergence criteria—for example, validation loss plateauing over consecutive steps. If a stage’s metrics go awry, roll back to the previous checkpoint rather than continuing to train.
Parallel Agent Orchestration
When a single agent executes complex tasks serially, latency accumulates with each step. Take the example of generating a visual report from customer service chat logs: the traditional pipeline sequentially performs text extraction, intent classification, and chart generation. If some steps are independent of each other, they can run in parallel.
A dynamic parallel orchestration framework typically has three components.
- Dependency analysis: determine data dependencies between steps based on task structure, identifying branches that can run in parallel.
- Load allocation: assign branches to sub-agents while considering both compute resource usage and expected runtime, so that no single sub-agent becomes a bottleneck.
- Result aggregation: merge results once branches complete, with consistency checks. If a branch fails, there should be retry or rollback mechanisms.
Parallelism adds overhead. The more sub-agents there are, the higher the coordination cost and resource contention, so you need a maximum parallelism level and resource caps per task. As for latency gains, results vary widely across task sets, baseline configurations, and concurrency settings, so this article doesn’t cite specific multipliers. To evaluate the benefit, compare serial versus parallel execution on your own tasks, recording both quality metrics and failure rates.
Data Ratios and Evaluation
Training data is usually switched in phases. Early on, text dominates to solidify language ability. In the middle and later phases, the proportion of interleaved image-text data, video data, and agent trajectory data gradually increases. The goal is to reduce the degradation of existing capabilities as new modalities are learned. To judge whether it works, evaluate both language and vision capabilities separately at the end of each phase.
Common evaluation tasks include code generation, mathematical reasoning, visual question answering, UI operation, and agent task execution. Among these, vision-grounded agent tasks are particularly representative—for example, locating on-screen elements from a UI screenshot, or analyzing a chart and recommending actions. These tasks require both understanding the image and translating that understanding into actions.
When reading evaluation results, check several things: benchmark name and version, evaluation date, models compared, metric definitions, and statistical methodology. Rankings or “leading” claims lacking this information are hard to use as a basis for model selection.
Practical Questions Before Adoption
If you’re planning to use models like this in a project, start with these questions.
How to choose: clarify your input types first. If you mainly process high-resolution documents, native-resolution support matters most. If you mainly process short videos, confirm the frame-count cap and the compute cost of temporal attention.
What to watch: before deployment, measure memory, latency, and throughput on your target hardware—don’t rely solely on numbers from papers. Also keep an evaluation set that covers your real business scenarios.
Common mistakes: treating benchmark scores as business results; ignoring the impact of visual token counts on memory; setting no limits in parallel orchestration, letting sub-agents exhaust resources.
Conclusion
Natively fusing vision and language is an important path toward building agents. Moving from late-stage fusion to unified modeling brings more stable training and more complete visual information, at the cost of greater architectural and engineering complexity. For developers, understanding the problem each design choice solves—and the price it exacts—is more valuable than memorizing any single model’s ranking.
