Multimodal Agent Architecture: Joint Training and Parallel Orchestration
This article examines a shift in multimodal agent design from staged text-then-vision training to joint vision-language optimization and parallel task orchestration. It covers a three-layer native fusion architecture, native-resolution and shared image-video encoding, Mixture-of-Experts routing for long multimodal sequences, dynamic parallel scheduling, evaluation caveats, and deployment risks. Readers gain a practical view of the technical trade-offs and engineering checks needed to move multimodal agents from benchmark demonstrations toward stable production use.
1. Why Change the Original Multimodal Route
Traditional multimodal large models often use a staged “text first, vision later” route. Teams first train a language model on a large-scale pure-text corpus, then attach a vision encoder and a projection layer to map image features into the language space. This approach has lower training cost, but it brings two problems. First, the language backbone is already close to convergence in the later training stage, so the vision encoder can only be frozen or fine-tuned with a low learning rate. Visual information can hardly improve the language representation in reverse, leaving a semantic gap between modalities. Second, when an agent executes complex tasks, it usually proceeds serially through perception, reasoning, and action. The latency of each step adds up, and the longer the task, the more noticeable the waiting time.
A new generation of designs addresses these two problems in two directions. The first is joint optimization, where vision and language are trained end-to-end on the model foundation. The second is parallel scheduling, where separable subtasks are assigned to multiple agents for simultaneous processing at the execution level. The two act on model structure and task execution respectively, and belong to the same system design.
1.1 Comparison of Two Routes
| Dimension | Staged pipeline | Joint optimization |
|---|---|---|
| Training method | Text pretraining followed by a vision module | End-to-end vision-language training |
| Gradient backpropagation | Weak backpropagation from vision to language | Language-task gradients can flow back to the vision encoder |
| Visual adaptation | Biased toward general image captioning | Adjusts dynamically with tasks such as code and math |
| Main cost | Limited modality alignment | High training resource demand and complex data mixing |
| Main risk | Semantic gap between modalities | Training may be unstable; modality losses need monitoring |
2. Native Vision-Language Fusion
2.1 Division of Labor Across Three Layers
The architecture has three layers: visual feature extraction, cross-modal projection, and unified modeling in the language backbone. An image is first converted into sequence features by the vision encoder, then aligned to the language semantic space through an MLP projection layer, and finally enters the language backbone together with text tokens for autoregressive modeling. The vision encoder parameters are updated continuously throughout training, rather than only receiving low-rank fine-tuning in a late stage. In this way, gradients from language tasks can be propagated back to the vision layer, and the two modalities can reinforce each other.
The direct effect of joint training is that visual features are no longer fixed as generic image-captioning vectors. In code generation tasks, the encoder pays more attention to layout structure and indentation hierarchy. In math tasks, it pays more attention to formula symbols and geometric shapes. This adjustment comes from gradient sharing, and a late-stage pipeline approach can hardly achieve the same degree.
2.2 Native Resolution and Video Modeling
The vision encoder has two notable design choices.
The first is native-resolution input. Traditional approaches usually resize images to 224×224 or 336×336 and then split them into uniform patches. Document screenshots, images with extreme aspect ratios, and detail-dense high-resolution images can easily lose text strokes and chart tick marks during resizing. The scheme described here splits an image into patches and flattens them directly into a one-dimensional sequence, without resizing or cropping. Sequence length varies with input size, so the language backbone needs stronger long-sequence processing capability, which directly affects memory usage and inference cost.
The second is a shared encoder for images and video. A common approach adds a temporal module or a 3D convolution branch on top of the image encoder, which increases parameters and introduces transfer loss between images and video. The scheme described here treats four consecutive frames as a spatiotemporal unit, packs the 2D patches of multiple frames into a sequence, and sends them to the same encoder for joint spatial-temporal attention. Temporal information is obtained through joint packing of multi-frame patches, while encoder weights are shared by images and video. This approach does not require an independent video branch and can better reuse knowledge from image pretraining.
3. Language Backbone and MoE Routing
The sequence length of multimodal input is usually much longer than that of pure text. High-resolution images and long videos can both produce tens of thousands of tokens. If a dense Transformer processes all tokens, computation grows quadratically with sequence length. Therefore, the language backbone adopts a Mixture-of-Experts (MoE) structure, activating only a subset of experts each time. The total parameter count is large, while per-call computation is small.
MoE has two main engineering issues.
The first is load balancing. When the number of tokens received by different experts varies too much, some experts are undertrained while others become computation hotspots. Common handling methods include adding auxiliary losses or adjusting dynamic routing strategies.
The second is multimodal routing preference. The routing distributions of text tokens and visual tokens may differ systematically. If visual tokens are concentrated in a small number of experts over time, multimodal capability will be constrained by those experts.
In deployment, the following metrics can be used to observe routing status:
- The share of tokens received by each expert, to check whether any expert stays near zero or is clearly too high for a long time;
- Routing entropy, calculated separately by modality, to determine whether the distribution gap between vision and text is too large;
- Auxiliary loss weight, recorded over training, to judge whether the balancing constraint is too strong or too weak.
Specific thresholds need to be determined according to training scale and expert count; the article does not provide unified values.
4. Dynamic Parallel Orchestration
4.1 Latency Problem in Serial Chains
Take “extract data from a webpage and generate an analysis report” as an example. The task usually goes through page parsing, field location, data extraction, analytical reasoning, and text generation in sequence. Each step depends on the output of the previous step, so total latency equals the sum of the latency of all steps. Model inference itself already takes seconds, and when serial chains stack up, the experience of long tasks degrades noticeably.
4.2 Basic Approach to Orchestration
Dynamic parallel orchestration splits a complex task into semantically relatively independent subtasks, and a scheduler assigns the subtasks to idle agent instances. Steps with data dependencies remain serial; for example, data must be obtained before analysis can be performed. Steps that do not depend on each other can run in parallel; for example, data acquisition and analysis-rule definition can be performed at the same time. The scheduler makes decisions based on real-time load, dependencies, and agent expertise.
Under the assumptions that the dependency graph can be sufficiently parallelized, scheduling and merging overhead can be ignored, and resources are sufficient, end-to-end latency can approach the length of the critical path rather than the sum of all step times. In reality, these assumptions are often only partially met, so actual gains need to be measured.
4.3 Checklist for Parallel Orchestration
Orchestration is not just calling models concurrently multiple times. Before deployment, it is advisable to check the following items:
- Dependency analysis: Are the inputs and outputs between subtasks fully defined, and is there information loss after splitting?
- Conflict resolution: When multiple agents give inconsistent conclusions, should voting, confidence ranking, or human review be used? This must be defined in advance.
- Resource quotas: Set memory and concurrency limits for each type of agent to prevent high-resolution visual input from crowding out other tasks.
- Failure rollback: When a subtask fails, can it be retried, degraded, or only that branch rerun without affecting the entire task?
The quality of handling these engineering issues often affects actual results more than the model weights themselves.
5. Evaluation Results and Open-Source Value
The article notes that the model performs well on public benchmarks for code generation, visual question answering, mathematical reasoning, agent tasks, and computer operation. In tasks that combine visual understanding with code generation, such as writing frontend code from a UI design image, the advantage is relatively clear. This conclusion is consistent with the cross-modal alignment capability brought by joint vision-language training.
However, comparison results need to be viewed in light of the evaluation protocol. Readers should check the benchmark names and versions, whether evaluation is zero-shot, whether tool calling is enabled, and whether the parameter scale and inference settings are consistent with the compared models. Without this information, it is difficult to judge quality from scores alone.
From the trend perspective, two points are worth noting. First, joint optimization is becoming a mainstream route for multimodal models, and end-to-end collaborative training between the vision encoder and the language backbone is gradually becoming a standard configuration. Second, once model capability reaches a certain level, task execution efficiency will become a key area of competition. As a system-level technology, parallel orchestration will become more valuable as task complexity increases.
6. Deployment Risks
The results of parallel orchestration need human review or rule constraints. When multiple agents produce conflicting conclusions, without a clear adjudication mechanism, erroneous conclusions may be output directly. High-resolution visual input significantly increases sequence length and memory usage, so input size limits and concurrency quotas should be set, and costs should be measured with real data before launch.
Conclusion
Multimodal agents are moving from being able to complete tasks toward completing them stably and efficiently. Joint optimization makes vision and language representations more consistent, MoE structures control computation cost, and parallel orchestration shortens task waiting time. For developers, in addition to focusing on the model itself, attention should also be paid to modality loss balance during training, modality fairness in routing, and the quality of task splitting and dependency analysis. These details determine whether a technology can move from a paper to a production environment.
