How Multimodal LLMs Are Improving Vision and Agent Capabilities: Architecture, Vision Encoders, and Parallel Agent Orchestration
This article explains native multimodal training, a 3D vision encoder that uses native-resolution patch packing, and parallel agent orchestration. It covers how each technique works, where it applies, and which parts readers should verify on their own.
Introduction
Multimodal large language models are moving away from designs that add vision after a language model is built. They are shifting toward native fusion, in which vision and language are trained together. At the same time, AI agents are starting to replace step-by-step serial execution with parallel scheduling. This article covers the architecture, the vision encoder, agent orchestration, and deployment approaches. For each technique, it explains how the mechanism works, where it applies, and which parts readers should verify on their own.
1. Why Bolt-On Vision Often Causes Problems
Traditional multimodal models usually train a text-only large language model first, then attach a vision encoder in front of it. This approach reuses a mature language model, but the two capabilities are learned separately. The language model must re-adapt to the features the vision encoder produces. Later in training, the two components often pull against each other, which can weaken language ability or visual understanding. This is called modality conflict.
Native fusion includes text and visual data in optimization from the pretraining stage. The goal is for both capabilities to develop together in the same semantic space. The cost is a more complex training pipeline. Data mixing ratios and training stability are also harder to control. If a team only needs text capability, or already has a stable bolt-on approach, continuing with the concatenation route is still reasonable.
2. Data Flow in a Native Fusion Architecture
The pipeline has three steps: visual feature extraction, cross-modal projection, and unified modeling in the language backbone.
- Images or videos first pass through a native 3D vision encoder, which produces visual features. Here, “3D” means two spatial dimensions plus one temporal dimension. The encoder models images and videos in a unified spatiotemporal way. It does not refer to 3D point clouds or depth reconstruction.
- An MLP projection layer maps the visual features into the embedding space of the language model. Visual vectors and text token embeddings then share the same dimensional space.
- Visual tokens and text tokens are concatenated into one sequence. A mixture-of-experts (MoE) language backbone models this sequence end to end.
This structure lets the model attend to text and images within the same context. It helps with interleaved image-text input and video question answering. In a mixture-of-experts model, each token activates only some of the experts. Inference cost therefore stays manageable even when the total parameter count is large. However, load across experts can become unbalanced. Teams should monitor the expert activation distribution.
3. Vision Encoder: Native Resolution and Spatiotemporal Modeling
3.1 Patch Packing: Input Without Rescaling
Traditional pipelines resize every image to a fixed size, such as 224x224 or 336x336. Small text and dense charts can lose information during resizing. Patch packing splits an image into fixed-size patches, converts each patch into a vector, and flattens the patches into a one-dimensional sequence. Images with different aspect ratios can then be fed in directly, without forced cropping.
The following is a conceptual sketch and cannot be run directly:
# Conceptual sketch: not a directly runnable implementationPATCH_SIZE = 14 # Side length of a single patch in pixels, determined by the encoder architectureEMBED_DIM = 1024 # Dimension of each patch vectorMAX_SEQ_LEN = 8192 # Maximum number of patches allowed in a single sequencedef pack_patches(image, patch_size=PATCH_SIZE):"""Split an image of any resolution into patches and flatten them into a 1D sequence."""h, w = image.shape[:2]# If the side length is not a multiple of patch_size, pad or crop the image and record which method was usedpatches = split_into_patches(image, patch_size) # shape: [N, patch_size*patch_size*C]tokens = project(patches, EMBED_DIM) # shape: [N, EMBED_DIM]pos_ids = build_2d_position_ids(h // patch_size, w // patch_size)return tokens, pos_ids
Four points need attention during implementation:
- Size alignment: If the side lengths are not multiples of the patch size, choose between padding and cropping, and record the choice. Otherwise, positional information will shift.
- Positional encoding: Flattening into a 1D sequence removes the 2D structure, so the row and column position of each patch must be preserved.
- Packing boundaries: When several images are packed into one batch, use an attention mask or sequence length information. This keeps tokens from different images from attending to each other.
- Length limit: Higher resolution produces more patches. The compute cost of full attention grows roughly with the square of the sequence length. Set a maximum length per sequence. Anything beyond that limit must be scaled down or split into chunks.
3.2 Unified Modeling for Images and Video
A video can be treated as a sequence of frames ordered in time. The encoder uses 3D convolutions or temporal attention to capture changes between adjacent frames. It then maps the video features into the same space as image features. The downstream language backbone can therefore process both types of input the same way.
The two temporal methods involve trade-offs. 3D convolution models local temporal changes directly, but its receptive field is limited. Temporal attention can relate distant frames, but it has a higher memory cost. Frame sampling rate and resolution must be balanced together. More frames preserve more temporal information, but they also produce more tokens.
4. Parallel Agent Orchestration
4.1 The Bottleneck of Serial Execution
When a single agent runs a multi-step task, it usually waits for the previous tool to return a result before choosing the next action. If a task includes web search, code execution, and database queries, the waiting time for each step adds up. Total latency grows with the number of steps.
4.2 Basic Flow of Dynamic Parallel Orchestration
The central scheduler of an orchestration framework analyzes the dependencies between subtasks and schedules them as follows:
- Subtasks with no dependencies are assigned to different sub-agents and run at the same time.
- Subtasks with dependencies wait in a queue and start after their prerequisite tasks finish.
- Sub-agents report their results to the central scheduler. The main agent then synthesizes them into the final output.
4.3 New Risks from Parallelism
Parallel execution introduces problems that do not exist in serial execution. Check each of the following before going live:
- Dependency cycle detection: If subtasks form a circular dependency, the scheduler waits indefinitely. Run cycle detection when building the task graph, and set timeouts.
- Failure handling: When one parallel branch fails, define the retry count, fallback method, or rollback steps in advance. Otherwise, the main agent may receive incomplete results.
- Tool rate limiting: Several branches may call the same external API at once and trigger rate limits. Set a concurrency limit for each tool.
- Result consistency: If multiple branches read and write the same state, check versions or use locks before aggregating. This prevents results from overwriting each other.
4.4 Measuring the Benefit
Whether parallelism reduces latency depends on how many subtasks in the task graph can run at the same time. It also depends on the scheduling overhead and the response time of each tool. This article does not provide specific speedup figures, so no speedup multiplier should be cited from it.
To judge the benefit, run the same tasks on your own workload with serial and parallel execution, using the same tools and retry policy. Record end-to-end latency, task success rate, token consumption, and scheduling overhead. Only results gathered under identical tasks, tools, and retry settings are comparable.
