Technical Analysis of Native Visual Fusion and Parallel Orchestration in Multimodal Agents

    This article explores the technical approaches to building multimodal agents, focusing on native visual-language fusion and parallel agent orchestration. It analyzes the limitations of the late-fusion paradigm, introduces a unified modeling pipeline, and details the key designs of a unified vision encoder. Additionally, it discusses how parallel orchestration frameworks can overcome sequential execution bottlenecks and the engineering challenges they bring.

    1. Background

    Multimodal agents need to process images, videos, text, and tool call results simultaneously. The traditional approach typically involves training a text-only language model first and then integrating a vision encoder at a later stage. While this late-fusion approach is simple to implement, language and vision capabilities often constrain each other. When visual data is introduced, language reasoning capabilities may degrade, and the thin visual adaptation module often leads to significant cross-modal information loss.

    Meanwhile, agent tasks usually consist of multiple steps, such as retrieving documents, reading pages, calling tools, and summarizing results. If all steps are executed sequentially, the total latency is the sum of the time taken by each step. The more complex the task, the longer the wait time. Therefore, the design of multimodal agents must simultaneously address two issues: how to enable visual and language models to learn collaboratively within the same representation space, and how to orchestrate multiple agents to work in parallel.

    2. Native Fusion of Vision and Language

    2.1 Limitations of the Late-Fusion Paradigm

    The training sequence for late-fusion generally follows: train the text model first, freeze or fine-tune it, and finally attach the vision encoder. This pipeline has three typical issues:

    • Inconsistent representation spaces: Visual features are not originally designed for the language model’s embedding space, requiring additional training for alignment.
    • Capability competition: If subsequent multimodal training over-emphasizes image data, text reasoning capabilities may degrade.
    • Information bottleneck: Images are often cropped or resized to a fixed resolution before entering the model, and lost details are difficult to recover later.

    2.2 Unified Modeling Pipeline

    A more effective approach is to incorporate vision and language into the same training objective, forming the following pipeline:

    1. Visual feature extraction: Images or videos are converted into a sequence of features by a vision encoder.
    2. Cross-modal projection: Through a lightweight multilayer perceptron (MLP), visual features are mapped to the embedding dimension of the language model.
    3. Unified modeling by the language backbone: The visual tokens and text tokens are concatenated and modeled end-to-end by the same language backbone.

    The key to this pipeline is that the projected visual tokens and text tokens reside in the same semantic space. The attention mechanism can directly establish associations between them without requiring an additional fusion module.

    The data flow is illustrated as follows (pseudo-code, demonstrating the processing sequence only):

    1. visual_feats = vision_encoder(image_or_video)
    2. visual_tokens = projector(visual_feats)
    3. inputs = concat(visual_tokens, text_tokens)
    4. output = language_backbone(inputs)

    2.3 Decoupled Encoder Training

    The vision encoder and the language backbone can be trained in stages. A common strategy is to first train the vision encoder independently on large-scale image-text data to obtain stable feature representations. During the joint training phase, the encoder is either frozen or updated with a smaller learning rate. This reduces GPU memory pressure and minimizes instability caused by gradient interference in the early stages of training.

    In practice, three types of metrics need to be monitored: whether the loss curves of each modality decrease synchronously, whether text benchmark scores drop, and whether the validation set performance of visual tasks converges. Any abnormal metric should trigger a review of the data ratio or learning rate schedule.

    3. Key Designs of the Unified Vision Encoder

    3.1 Native Resolution Input

    Fixed-resolution preprocessing alters the aspect ratio of images and loses details such as small text and table lines. The native resolution approach splits the image into patches of a fixed size and flattens all patches into a 1D sequence. Images of different sizes only generate sequences of varying lengths, eliminating the need for uniform cropping.

    For example, a 1344×1008 pixel image, when split by a 14-pixel edge, yields a 96×72 grid of 6,912 patches. Text-dense interface screenshots will retain more tokens, while simple icons consume fewer computational resources.

    The illustrative pipeline is as follows:

    1. patches = split_into_patches(image, patch_size)
    2. sequence = flatten(patches)
    3. positional_info = build_2d_position(patches)
    4. features = encoder(sequence, positional_info)

    3.2 Shared Weights for Images and Videos

    Videos can be viewed as a sequence of images along the temporal dimension. A practical approach is to group several consecutive frames (e.g., 4 frames) into a spatiotemporal block, jointly pack the patches from each frame into the same sequence, and feed it to the same encoder. The encoder performs both spatial and temporal attention modeling within a single set of weights.

    Compared to designing a separate branch for videos, sharing weights offers two benefits. First, visual knowledge learned from images can be transferred to video understanding. Second, the model structure is simpler, requiring no module switching during deployment. The trade-off is that the packed sequence becomes longer, increasing the computational load for attention. Therefore, a balance must be struck between frame sampling rate, resolution, and computational cost.

    3.3 Design Trade-offs

    The design of the vision encoder typically involves trade-offs among three variables. Higher resolution yields more detail but heavier computation. Denser frame sampling provides more complete temporal information but longer sequences. A deeper projection layer offers greater expressive power but higher inference latency. Teams should prioritize based on their business scenarios. For instance, document understanding prioritizes resolution, while surveillance video analysis prioritizes temporal coverage.

    4. Parallel Orchestration of Multi-Agents

    4.1 Bottlenecks of Sequential Execution

    When a single agent executes sequentially, each step must wait for the previous one to complete. If a task involves five steps—retrieval, scraping, parsing, calculation, and writing—each taking an average of several seconds, the total latency accumulates to tens of seconds or more. Many of these steps have no dependencies; for example, retrieving from multiple sources simultaneously can easily be executed in parallel.

    4.2 Basic Structure of Parallel Orchestration

    A viable parallel orchestration framework generally includes three roles:

    • Planner: Decomposes the overall task into a sub-task graph with dependencies.
    • Executor: Picks up sub-tasks whose dependencies are met in parallel, calling tools or models to complete the work.
    • Aggregator: Collects sub-task results, checks consistency, and generates the final answer.

    The illustrative scheduling logic is as follows:

    1. plan = planner.decompose(task) # Generate a directed acyclic graph of sub-tasks
    2. while plan.has_pending():
    3. ready = plan.get_ready_nodes() # Retrieve nodes with met dependencies
    4. results = run_in_parallel(ready) # Execute in parallel
    5. plan.mark_done(results)
    6. answer = aggregator.merge(plan.results())

    4.3 Engineering Challenges Introduced by Parallelism

    Parallelism improves throughput but introduces new issues that must be addressed individually:

    • Dependency management: The sub-task graph must be acyclic, and the planner should validate dependencies before execution.
    • State consistency: When multiple executors write to the same shared state, locking or a versioning mechanism is required.
    • Failure handling: If a single subtask fails, appropriate retry or fallback mechanisms should be in place to prevent blocking the entire workflow.