Native Multimodal Agents: Technical Architecture Explained

    This article breaks down the technical architecture of native multimodal agents, focusing on why bolt-on vision modules struggle with real tasks. It explains how a unified representation and shared context at the architecture layer, staged training at the training layer, and a verifiable toolchain at the tool layer bring perception, reasoning, and execution into a single loop. It also covers evaluation dimensions and practical deployment advice for building reliable multimodal applications.

    1. The Starting Problem: Why Bolt-On Vision Cannot Support Real Tasks

    In real business scenarios, a large amount of information exists in visual form: web interfaces, mobile screenshots, design mockups, scanned documents, surveillance footage, and screen recordings of operations. No matter how capable a text-only model is, it can only process the parts that have been transcribed into text, and the transcription process itself loses critical information such as layout, hierarchy, control states, and time-ordered actions.

    A common approach is to chain a vision module in front of a language model, converting images into descriptions before handing them to the model for reasoning. This “after-the-fact patch” has three structural flaws:

    1. Information bottleneck: vision is first compressed into short text, and subsequent reasoning can no longer look back at the original pixel details.
    2. Disconnect between perception and reasoning: descriptions are generated by the upstream module while decisions are made by the downstream model. The two have misaligned goals, which easily produces plausible but unverifiable conclusions, commonly known as hallucination.
    3. Broken execution chain: real tasks often require “see-think-act” to happen continuously. The bolt-on structure lacks a unified action space and feedback channel, making it hard to close the loop.

    The idea behind native multimodal agents is to treat vision as a first-class citizen: unify representation at the architecture layer, unify objectives at the training layer, and unify actions at the tool layer, so that perception, reasoning, and execution converge into the same loop.

    2. Architecture Layer: Unified Representation and Shared Context

    The core of the native approach is not “adding an encoder,” but letting different modalities enter the same context and the same set of parameters.

    • Unified token space: images are split into patches and mapped into token sequences with the same dimensionality as text. Position encoding must express both 2D spatial relationships and temporal relationships; for video, a time axis is added on top of space.
    • Shared attention context: visual tokens and text tokens interact within the same attention mechanism, so the model can re-focus on a specific region of the original patches at any step of reasoning, avoiding irreversible information loss caused by early compression.
    • Balancing resolution and cost: the number of patches directly determines context length and compute. In engineering, hierarchical representations are typically used: a low-resolution overview globally, with key regions enlarged on demand locally, forming a two-stage “glance then zoom” perception.
    • Unified action space: abstracting clicks, text input, scrolling, switching, and API calls into structured action tokens that share the same decoding process as text and visual tokens. What the model outputs is executable structured instructions rather than natural-language suggestions.

    A schematic unified sequence structure can be expressed as:

    1. [task instruction tokens] [screen patch tokens] [history action tokens]
    2. [current observation tokens] -> [structured action tokens]

    The key point is that observations and actions alternately enter the same context, forming a trajectory memory that can keep accumulating.

    3. Training Layer: Building Capabilities in Stages

    Native capabilities come from the training strategy, not from a single trick. A common industry path is a four-stage progression.

    1. Alignment pre-training: training on a large mixed corpus of image-text, video, and text, with the goal of making visual tokens and language tokens alignable in the same space, forming basic perception.
    2. Fine-grained perception enhancement: adding tasks such as document layout, interface controls, chart reading, and small-object localization to strengthen sensitivity to precise positions and values. This is the dividing line between interface operation and document understanding.
    3. Trajectory-level agent training: using “observation-action-feedback” interaction trajectories for training, so the model learns to keep observing when information is insufficient and to fall back and retry after failures, rather than giving a conclusion in one shot. Reward design usually mixes outcome correctness with process soundness, avoiding the short-sightedness of only looking at the final state.
    4. Capability retention and anti-forgetting: keeping a substantial proportion of pure text and code samples in the mixed data to prevent multimodal training from eroding language ability. This is also the source of the evaluation goal “vision improves without text encoding regressing.”

    Engineering also requires attention to the data loop: real-scenario logs, after desensitization and annotation, flow back to form a hard-case set for targeted reinforcement, which is more effective than simply expanding data volume.

    4. Toolchain Layer: Making Execution Verifiable

    The last link of the loop is execution and feedback. Practical approaches include:

    • Environment adaptation layer: wrapping different terminals, browsers, and document parsing capabilities into a unified action interface, shielding underlying differences.
    • Observable state: returning structured state after each action, such as the layer tree, a list of clickable elements, and parsed text blocks, reducing the model’s reliance on guessing from pixels.
    • Safety boundaries: setting confirmation and rollback mechanisms for high-risk actions, with sensitive data minimized and desensitized during collection and backflow.
    • Evaluation and tracing: recording trajectories, elapsed time, and failure reasons in a unified way, and connecting to logging services and monitoring alerts for regression and diagnosis.

    If relying on cloud infrastructure, general service categories are usually sufficient: container platforms host inference services, object storage keeps desensitized samples, message queues smooth out traffic peaks and troughs, and logging and monitoring systems handle observability.

    5. Capability Evaluation: Do Not Look at a Single Score

    Evaluation should cover four dimensions to avoid a single-point optimum masking weaknesses:

    1. Perception accuracy: accuracy of small-text recognition, value reading, and control localization.
    2. Task completion rate: whether end-to-end tasks achieve the goal, rather than whether steps “look right.”
    3. Process efficiency: number of steps, elapsed time, and retries, which directly affect usability.
    4. Language and code retention: whether mixed capabilities regress, which determines whether unified deployment is possible.

    The two highly difficult tasks mentioned in the original technical analysis, design-mockup-to-code and mobile operation, essentially examine “fine-grained fidelity” and “long-horizon decision-making” respectively. They can serve as reference coordinates for the capability matrix, but specific numbers should be re-measured against your own data and scenarios.

    6. Deployment Recommendations

    • Start from a narrow scenario: first choose high-frequency, verifiable, low-cost-of-failure processes, such as form filling, information verification, and document structuring.
    • Establish an observation-first strategy: allowing the model to zoom into key regions before deciding is usually more compute-efficient than a one-shot long context.
    • Treat structured output as a contract: fix the action format and validate it, rejecting and falling back on illegal actions directly.
    • Continuously feed back hard cases: forming a data flywheel is the main source of long-term improvement.

    The value of native multimodal agents lies not in replacing text models, but in bringing vision into the same decision loop, making perception traceable, reasoning verifiable, and execution closed-loop. Understanding this technical path is more helpful for building reliable multimodal applications than chasing any single metric.